Copying Doxygen Documentation from gh-pages branch into a subfolder of Master branch

后端 未结 1 739
闹比i
闹比i 2020-12-04 00:49

Currently I have a Travis build that generates Doxygen documentation and then uploads this into a gh-pages branch on my GitHub. We also have a website that is c

相关标签:
1条回答
  • 2020-12-04 01:41

    You can go on as is (upload the documentation in the gh-branch), but add one more step:

     git submodule update --remote
    

    You can declare a branch content as submodule of another branch

    git checkout master
    git rm -r gh-pages # save your data first
    git submodule add -b gh-pages -- /remote/url/of/your/own/repo
    git commit -m "ADd gh-pages branch as submodule"
    git push
    

    Since that submodule will follow the latest commit of its own branch, a git submodule update --remote done in master will be enough to update the content of the gh-pages subfolder (root directory of the submodule).


    Note: Since August 2016, you can publish your pages right from the master branch (not always the gh-pages branch)

    That would simplify your issue.

    0 讨论(0)
提交回复
热议问题