代码拉取完成,页面将自动刷新
Page hosted on GitHub | Page hosted on Gitee码云
GitHub | Gitee码云
记录平时遇到的问题和解决方法.
[!NOTE]
- Github pages will automatically update the contents in
gh-pages
.- Gitee pages require manual updates.
[!COMMENT|label: Usage]
- File structure Run the following two commands in the same root folder.
The file structure should be like this:git clone git@github.com:xinntao/records.git git clone -b gh-pages git@github.com:xinntao/records.git records-gh-pagesNote that in order to trigger the GitHub actions, we should also copy the- root |--- records |--- records-gh-pages.github
folder to the records-gh-pages branch for the fist time.- Update the master branch in the
records
folder.- Build the gitbook:
gitbook build
- In the
records
repo, copy the contents in_book
folder torecords-gh-pages
:cp -r _book/* ../records-gh-pages
- Push to remotes:
- For records:
git push origin master
- For records-gh-pages:
git push origin gh-pages
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。