我试图在GitHub页面上托管iPython幻灯片,并将其作为幻灯片公开使用。我用以下方法制作了幻灯片:
jupyter nbconvert make_presentation.ipynb --to slides --post serve
它创建了make_presentation.slides.html
。幻灯片在本地运行良好,如预期。我配置了一个新的GitHub repo,它成功地服务于Reveal.js
测试页:http://richardafolabi.github.io/Presentation_js/index.html
但是,在GitHub页面上,我的幻灯片只显示静态html页面而不是幻灯片放映:http://richardafolabi.github.io/Presentation_js/make_presentation.slides.html
index.html
和{
有人知道为什么我的幻灯片在本地工作,但不能远程工作?iPython幻灯片还有哪些其他托管选项?在
问题在于显示.js资产。您正在尝试加载:
http://richardafolabi.github.io/Presentation_js/reveal.js/js/reveal.js
但正确的道路是:
http://richardafolabi.github.io/Presentation_js/js/reveal.js
尝试更改所有资源的路径,它将起作用;-)删除'显示.js/'。在
或更改资产文件夹,可能会更快。
相关问题 更多 >
编程相关推荐