github实现预览功能
2017-02-04 本文已影响18人
嘿菠萝
-
homePage,个人主页
1.首先新建一个仓库,项目名为你的github用户名加.github.io


2.成功后,点击settings

3.继续,选择master branch,然后save

4.新建一个index.html文件,直接输入地址,或直接点链接即可访问,默认访问index,不同路径需输入对应的本地库的相应路径

5.预览


-
projectPage
新建仓库


设置,选择master branch


访问方式同上,默认显示的是index.html文件,其他文件要显示要写上具体的路径,如https://github.com/sofaxiu/works/demo.html
!](https://img.haomeiwen.com/i1990074/f1d3bd6751bc9416.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)o
本文是自己的整理笔记,如对您有用,转载时请注明出处