b8390eb84d
Document REST v2 with autodocs Change-Id: Ib43d2237ebb0f8ef9f8d18e70182d7cc5f2f0828
25 lines
727 B
Markdown
25 lines
727 B
Markdown
# Sphinx DOC hints
|
|
|
|
## Migrating from Openstack Wiki
|
|
|
|
* Install pandoc
|
|
* Copy wiki code into a file, e.g. `source.mw`
|
|
* Convert to .rst
|
|
|
|
pandoc --from=mediawiki --to=rst --output=doc/source/dsl/dsl_v1.rst doc/source/dsl/source.mw
|
|
|
|
* To make code samples fancy:
|
|
|
|
TODO: figure how to make YAML samples look nicer with `code::` directive
|
|
|
|
## Using autodoc with sphinxcontrib.pecanwsme.rest and wsmeext.sphinxext plugins
|
|
|
|
TODO: why REST URL is not generated with parameters?
|
|
|
|
## Running sphinx-audobuild
|
|
|
|
[auto-loader](https://pypi.python.org/pypi/sphinx-autobuild/0.2.3) - rules for convenient development https://pypi.python.org/pypi/sphinx-autobuild/0.2.3. install, and run:
|
|
|
|
sphinx-autobuild doc/source doc/build
|
|
|