Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Resources for creating ONAP documents

Latest ONAP Documents:

ONAP Documentation Creation:

Pandoc:


Pandoc – Converting Word Docs to rst

Pandoc installation:

Running pandoc:

Running Pandoc
pando	c -s mydoc.docx -t rst -o mydoc.rst


Testing – Testing rst files using SPHINX

SPHINX (Python Doc Generator)

Sphinx Docs:
Sphinx and rst:
Install Sphinx:
index.rst
  • Must be in the docs root directory


Example index.rst:
.. This work is licensed under a Creative
Commons Attribution 4.0 International License.

APPC Documentation Repository
-----------------------------
.. toctree::
:maxdepth: 2
  
	APPC LCM API Guide/APPC LCM API Guide
	APPC Client Library Guide/APPC Client Library Guide  
	APPC Logging Guide/APPC Logging Guide
	APPC User Guide/APPC User Guide  
	APPC OAM API Guide/APPC OAM API Guide 
	APPC CDT Guide/APPC CDT Guide



conf.py
  • Required to test the rst using Sphinx
  • Must be copied into the docs root directory after clo0ning from gerrit
  • Must be removed from docs root before submitting changes back to gerrit
    • (Won’t necessarily hurt anything but it’s just messy)

Using Sphinx to generate test html

  • Once rst updates are made you can generate sample html using sphinx:

    sphinx-build -b html /home/myhome/appc/docs /home/myhome/test
  • No labels