File: README.rst

package info (click to toggle)
bootstrap-vz 0.9.11%2B20180121git-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,244 kB
  • sloc: python: 8,800; sh: 813; makefile: 16
file content (44 lines) | stat: -rw-r--r-- 1,649 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
:orphan:


Documentation
=============
Both the end-user and developer documentation is combined into a single sphinx
build (the two were previously split between github pages and sphinx).


Building
--------
To build the documentation, simply run ``tox -e docs`` in the project root.
Serving the docs through http can be achieved by subsequently running
``(cd docs/_build/html; python -m SimpleHTTPServer 8080)`` and accessing them
on ``http://localhost:8080/``.


READMEs
-------
Many of the folders in the project have a README.rst which describes
the purpose of the contents in that folder.
These files are automatically included when building the documentation,
through use of the `include`__ directive.

__ http://docutils.sourceforge.net/docs/ref/rst/directives.html#including-an-external-document-fragment

Include files for the providers and plugins are autogenerated
through the sphinx conf.py script.


Links
-----
All links in rst files outside of ``docs/`` (but also ``docs/README.rst``) that
link to other rst files are relative and reference folder names when the link
would point at a README.rst otherwise. This is done to take advantage of the
github feature where README files are displayed when viewing its parent folder.
When accessing the ``manifests/`` folder for example, the documentation for how
manifests work is displayed at the bottom.

When sphinx generates the documentation, these relative links are
automatically converted into relative links that work inside the generated
html pages instead.
If you are interested in how this works, take a look at the
link transformation module in ``docs/transform_github_links``.