How to upload html documentation generated from sphinx to github?

后端 未结 3 1585
傲寒
傲寒 2021-01-31 20:28

I just documented loads of my code and learnt how to use sphinx to generate the documentation. I want to include that into my github project page but I do not know how to. Does

3条回答
  •  花落未央
    2021-01-31 21:10

    github will serve static content for you using their github pages feature. Essentially, you create a branch called gh-pages, into which you commit your static pages. The pages are then served at you.github.com/yourproject.

    See the instructions at http://pages.github.com/.

    You will likely run into an issue using Sphinx on github, because Sphinx uses directories with leading underscores. You can fix this by adding a file called .nojekyll in the the directory with the generated sphinx html.

提交回复
热议问题