加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Github Pages

发布时间:2020-12-14 16:38:49 所属栏目:百科 来源:网络整理
导读:User or organization site 新建项目,名称为 sunchenguang.github.io ,项目根目录 index.html ,访问 https://sunchenguang.github.io 即是主页。 不同的项目只需要把项目的打包后的文件复制过来 - project - index.html - static - js - css- index.html-

User or organization site

新建项目,名称为sunchenguang.github.io,项目根目录index.html,访问https://sunchenguang.github.io即是主页。

不同的项目只需要把项目的打包后的文件复制过来

- project
    - index.html
    - static
        - js
        - css
- index.html
- README.md

访问https://sunchenguang.github.io/project即能访问指定项目主页

在个人站可以放多个打包好的项目,方便快捷

Project site

项目 -> settings -> Github Pages -> source

source有多种选择。会访问对应分支或目录下的index.html

  • master

  • master /docs

  • gh-pages

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读