4b97afa676
This will cause CI to build docs for specific branches when they are pushed to, and to copy the result into a subdirectory of the docs/ directory, instead of the root. The task will also update a "versions.json" file, for the pages to be able to display/select other versions. The doc template is changed slightly to display a select field on top of the quick search, using some js to fill the versions from the generated versions.json file, and to change url when a different version is selected. This has been tested with a local server, trying to emulate the doc structure, but the CI part hasn't been really tested. Known Issues: - the version.json file contains all versions configured to build, but the doc for these might not have been generated yet, which would result in 404 errors. - the logic doesn't know if the current page of the doc exists for the selectable versions, so this will also result in 404 errors when switching to a version that didn't have the current doc page.. - the url manipulation logic is a bit dirty, as it assumes that the path is always of the form of /docs/<version>/…. - theming could certainly be slightly improved. |
||
---|---|---|
.. | ||
sources | ||
Makefile | ||
README.md | ||
__init__.py | ||
autobuild.py | ||
doc-requirements.txt | ||
gallery.py |
README.md
Kivy - Documentation
You can access the latest documentation on the web:
Contributing
If you intend on editing and contributing documentation, assure the kivy source code is up to date before proceeding. If your documentation is outdated, it could result in merge conflicts.
Install Sphinx
-
With pip:
pip install sphinx
-
With apt-get:
apt-get install python-sphinx
-
With MacPorts:
port install py34-sphinx
-
On Windows (or from inside your virtualenv):
Get pip (https://pypi.python.org/pypi/pip). You'll use it to install the dependencies.
To install pip, run
python setup.py install
in the pip directory. Now run:pip install sphinxcontrib-blockdiag sphinxcontrib-seqdiag
pip install sphinxcontrib-actdiag sphinxcontrib-nwdiag
Or just use the provided doc-requirements.txt:
pip install -r doc-requirements.txt
Building the documentation
Generate documentation using make: make html
.
Documentation will be accessible in build/html/
.