Description
This document explains how collective.developermanual package is maintained and how changes are pushed.
This document concerns those who:
collective.developermanual is open-for-anyone-to-edit documentation for Plone developers in Sphinx format, living in Plone's collective Github version control system (anyone can get commit access, or, even easier, submit pull requests from their own github fork of the repository).
Sphinx is a tool that makes it easy to create intelligent and beautiful documentation, written by Georg Brandl and licensed under the BSD license.
The collective.developermanual checkout contains buildout.cfg recipes to:
First you need to install Git for your operating system to be able to retrieve the necessary source code:
sudo apt-get install git-core # Debian-based Linux
or:
sudo port install git-core # Mac, using MacPorts
Note
You must not have Sphinx installed in your Python environment (this will be the case if you installed it using easy_install, for example). Remove it, as it will clash with the version created by buildout. Use virtualenv if you need to have Sphinx around for other projects.
Then clone collective.developermanual from GitHub:
git clone git://github.com/collective/collective.developermanual.git
Run buildout to install Sphinx. First step: bootstrap:
python2.6 bootstrap.py
./bin/buildout
This will always report an error, but the bin/ folder is created and populated with the required scripts. Now you need to checkout all the source code using the mr.developer tool:
./bin/develop co ""
Run buildout again:
./bin/buildout
The documentation is automatically synced to readthedocs.org by the readthedocs.org bot.
Pushing changes to GitHub is enough to publish the changes.
http://readthedocs.org pages have the Google Analytics script installed. Please ask on the #plone.org IRC channel for data access.
This creates the docs/html folder from the source documents in the source folder, by compiling all the collective.developermanual pages, using the sphinx-build command from buildout:
./bin/sphinx-build source build
If you want to build everything from the scratch, to see all warnings:
rm -rf build
./bin/sphinx-build
When sphinx-build is run it copies stylesheets from sources to build.
For live editing of CSS styles you might want to do:
cp source/_static/plone.css build/_static
Then copy back:
cp build/_static/plone.css source/_static
Note
Firefox does not follow symlinks on file:// protocol, and cannot load CSS files from them.
More info
An example sphinx.css is provided with collective.developermanual.
sphinx.css assumes that a special Sphinx page.html template is used. This template is modified to wrap everything which Sphinx outputs in the sphinx-content CSS class, so we can nicely separate them from standard Plone styles.
page.html can be found at sources/_templates/page.html.
The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.
For basic information about updating this manual and Sphinx format please see Writing and updating the manual guide.