记录
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-pages
Note 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