You can use Sphinx output for GitHub pages but you have to defeat GitHub Pages' built-in behaviour first as it attempts to build documentation. You don't need it to do that as Sphinx does that nicely. All you want is to have GitHub host the pages generated by Sphinx.
-
Put documentation source in
/docs/source
-
Ensure documentation is published to somewhere like
/docs/build/html
-
Add an empty
.nojekyll
to/docs
-
Put an
index.html
in/docs
that simply redirects to the Sphinx documentation. That file should just contain:<meta http-equiv="refresh" content="0; url=./build/html/index.html" />
-
Build the documentation from the
/docs
directory with./make-docs.sh
(which simply executessphinx-build -b html source build/html
) -
Commit and push the documentation, including the build directory and its files
-
Enable GitHub Pages in GitHub using the Master Branch with docs option
That's it!
If you have forked this repository remember to keep it synchronised if you want to keep up-to-date. With a fresh clone of the fork you can accomplish this using the following command sequence: -
$ git remote add upstream https://github.com/InformaticsMatters/okd-orchestrator.git
$ git fetch upstream
$ git merge upstream/master
See GitHub's help on the topic in its Syncing a fork page.