记录

Page hosted on GitHub | Page hosted on Gitee码云
GitHub | Gitee码云

记录平时遇到的问题和解决方法.

[!TIP] 本仓库在 GitHubGitee码云 同步. 欢迎在 GithubGitee码云 贡献.


[!NOTE]

  • Github pages will automatically update the contents in gh-pages.
  • Gitee pages require manual updates.

[!COMMENT|label: Usage]

  1. File structure Run the following two commands in the same root folder.
     git clone git@github.com:xinntao/records.git
     git clone -b gh-pages git@github.com:xinntao/records.git records-gh-pages
    
    The file structure should be like this:
     - root
     |--- records
     |--- records-gh-pages
    
    Note that in order to trigger the GitHub actions, we should also copy the .github folder to the records-gh-pages branch for the fist time.
  2. Update the master branch in the records folder.
  3. Build the gitbook: gitbook build
  4. In the records repo, copy the contents in _book folder to records-gh-pages: cp -r _book/* ../records-gh-pages
  5. Push to remotes:
    • For records: git push origin master
    • For records-gh-pages: git push origin gh-pages
Copyright © Xintao all right reserved,powered by Gitbook修改时间: 2020-07-27 00:43:50

results matching ""

    No results matching ""