记录
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.githubfolder to the records-gh-pages branch for the fist time.- Update the master branch in the
recordsfolder.- Build the gitbook:
gitbook build- In the
recordsrepo, copy the contents in_bookfolder 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