1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- .. _github_pages:
- =======================
- Hosting on GitHub Pages
- =======================
- You use `GitHub Pages <github_pages_website_>`_ to host documentation generated by ``sphinx-multiversion``.
- Setting up the ``gh-pages`` Branch
- ==================================
- First, you need to create a ``gh-pages`` branch and disable Jekyll.
- .. code-block:: bash
- git checkout
- touch .nojekyll
- git add .nojekyll
- git commit -m "Disable Jekyll"
- Then, switch back to the branch you were on and build the documentation using ``sphinx-multiversion``:
- .. code-block:: bash
- mkdir html
- sphinx-multiversion docs/ html/
- If everything worked fine, you now need to switch back to your ``gh-pages`` branch and commit the data there:
- .. code-block:: bash
- git checkout gh-pages
- for dirname in html
|