The documentation for the Celadon Project should be written in ReStructuredText (ReST)
AKA .rst
, which makes it easy to build parsable, command-line readable, indexed, and search-friendly documentation and APIs with Sphinx.
To build documentation with Sphinx, ensure your system has these prerequisites:
The instructions for installing these varies according to OS. On a basic out-of-the-box Ubuntu-like OS (which usually has Python installed by default), check your python version you might need something like:
$ sudo apt-get install python-pip
$ sudo pip install -U sphinx sphinx-autobuild
$ python -c 'print __import__("sphinx").__version__'
1.3.1
We have confirmed Sphinx installed. The next step is to clone Gitlab repository to our local machine.
$ git clone https://github.com/projectceladon/projectceladon-documentation.git
Finally are we ready to run make
. Be sure to cd
to the source/
directory where your .rst
files are, before running make html
, or the doc format of your choice.
$ make html
>
sphinx-build -b html -d _build/doctrees . _build/html
Running Sphinx v1.3.1
making output directory...
.
.
.
build succeeded, 0 warnings.
Build finished. The HTML pages are in _build/html.
Open one of the .html pages in a web browser to view the rendered documentation.
For tips on how to contribute documentation formatted in the .rst style needed to integrate beautifully on the clearlinux.org website, please see Theming Sphinx.