怎么预览 GitHub 项目里的网页或 Demo?

方法一:在项目源代码页面链接前缀那加上http://htmlpreview.github.io/?

比如:http://htmlpreview.github.io/?https://github.com/Eaaon/VideoJS-demo/blob/master/official-demo/official_code.html

方法二:使用 Githubpages

1、将Github Pages中的Source的NONE换成master branch或者其他分支,点击保存

怎么预览 GitHub 项目里的网页或 Demo?_第1张图片

2、再打开https://eaaon.github.io/VideoJS-demo/就可以看到效果

怎么预览 GitHub 项目里的网页或 Demo?_第2张图片

如果想看到里面的html文件,直接访问就行了。例如https://eaaon.github.io/VideoJS-demo/card-demo/one.html

你可能感兴趣的:(怎么预览 GitHub 项目里的网页或 Demo?)