GitHub直接查看HTML【项目网站一种制作方法】

版权声明:转载请注明 https://blog.csdn.net/weixin_41923961/article/details/82926650

首先写好项目的HTML文件,托管在GitHub上。用GitHub的HTML viewer查看。

第一种方法:

GitHub & BitBucket HTML Preview

在HTML文件的地址前面加上htmlpreview.github.io/?

htmlpreview.github.io/?文件地址

https://fordtin.github.io/仓库名/文件地址

第二种方法:

在github上demo的仓库页面,点击“setting”按钮;

  1. 找到GitHub Pages版块,选择Source为“master branch”,然后保存(或者在Theme Chooser处,点击Change theme,进入页面后选择主题保存,这样也可以);

  2. 页面会出现一个新链接,在链接后面加上demo的HTML文件名,即可跳转到demo显示的页面。

猜你喜欢

转载自blog.csdn.net/weixin_41923961/article/details/82926650