将Github Pages导出为独立的网站

时间:2017-02-07 18:10:02

标签: github jekyll github-pages

我使用GitHub中的Web界面从存储库创建了一个GitHub页面。所以我在https://username.github.io/repo/提供了我的项目网页。现在我想导出构成它的所有文件 - 我的存储库中的 - (index.html/css,...)到项目文件夹中包含整个网站。

我该怎么做?

1 个答案:

答案 0 :(得分:0)

<p>You need to build the Jekyll site locally:</p> <h1>Clone you repo</h1> <p>Clone the github repo with <code>git clone githubrepo</code>. Then enter the directory <code>cd githubrepo</code></p> <h1>Build the site</h1> <p><a href=" https:="" jekyllrb.com="" docs="" installation"="" rel="nofollow noreferrer"/>在计算机中安装jekyll并执行jekyll build的最后一个字符,当前文件夹将生成./_site

您的所有网站文件都将位于_site目录中。