如何在Github中预览你的HTML代码
2018-10-07 本文已影响0人
point_chen
1.首先把html等文件上传到仓库。

2.点击setting,找到Github Pages,将none改成master branch 然后会出现一个网址。



将这个网址作为前缀,后缀为你要预览的html文件名
例如仓库里有一个test.html 那么完整网址就是 https://sf-chen.github.io/baiduweb/test.html
可以在readme里面写<a href="https://sf-chen.github.io/baiduweb/test.html">demo</a>