You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 8, 2023. It is now read-only.
This project is designed to help you get around the github-pages Jekyll
behaviour of ignoring top level directories starting with an underscore.
This is solved in a much neater way by creating a .nojekyll in the root
of you github-pages which will disable Jekyll as described here and here.
This makes this project largely useless! Thank you to acdha for making me aware of this.
What?
A Python script for preparing the html output of the Sphinx documentation
system for github pages.
It renames any top level folders which start with an underscore and edits any
references to them within the html files.
Why?
GitHub processes the incoming html with Jekyll which believes top level folders
starting with an underscore are special and does not let their content be accessible
to the server. This is incompatible with Sphinx which uses underscores at the
start of folder names for static content.
Usage
The sphinxtogithub.py script can be run on the command line or used as a
Sphinx extension.
Extension
Place the script on the PYTHONPATH and add sphinxtogithub to the
extensions list in the conf.py file in your Sphinx project:
extensions = [ "sphinxtogithub" ]
Additionally there are three config variables you can use to control the
extension. The first enables/disables the extension, the second enables verbose
output and the third determines the encoding which is used to read & write
files. The first two are True by default and the third is set to utf-8:
Unit tests can be run using the setuptools test target. eg:
$ python setup.py test
Alternatives
dinoboff's project
github-tools provides similar
functionality combined with a much more comprehensive set of tools for helping
you to manage Python based projects on github.