From 4422d1d6812da14497eaa47393899d08909d09b8 Mon Sep 17 00:00:00 2001 From: m00133142 Date: Tue, 3 Nov 2015 11:59:06 -0800 Subject: [PATCH] Example as code, documentation template for sphinx build This code will be pushed to each project creating a docs/ directory This servers as an example and template for you (the developers) to create your own project documentation JIRA: RELENG-15 Change-Id: I603132df92b5f8e9a500786e38639abefadad227 Signed-off-by: m00133142 --- docs/etc/conf.py | 34 ++++++++++ docs/etc/opnfv-logo.png | Bin 0 -> 2829 bytes docs/how-to-use-docs/documentation-example.rst | 86 +++++++++++++++++++++++++ docs/how-to-use-docs/index.rst | 30 +++++++++ 4 files changed, 150 insertions(+) create mode 100644 docs/etc/conf.py create mode 100644 docs/etc/opnfv-logo.png create mode 100644 docs/how-to-use-docs/documentation-example.rst create mode 100644 docs/how-to-use-docs/index.rst diff --git a/docs/etc/conf.py b/docs/etc/conf.py new file mode 100644 index 00000000..00660351 --- /dev/null +++ b/docs/etc/conf.py @@ -0,0 +1,34 @@ +import datetime +import sys +import os + +try: + __import__('imp').find_module('sphinx.ext.numfig') + extensions = ['sphinx.ext.numfig'] +except ImportError: + # 'pip install sphinx_numfig' + extensions = ['sphinx_numfig'] + +# numfig: +number_figures = True +figure_caption_prefix = "Fig." + +source_suffix = '.rst' +master_doc = 'index' +pygments_style = 'sphinx' +html_use_index = False + +pdf_documents = [('index', u'OPNFV', u'OPNFV Project', u'OPNFV')] +pdf_fit_mode = "shrink" +pdf_stylesheets = ['sphinx','kerning','a4'] +#latex_domain_indices = False +#latex_use_modindex = False + +latex_elements = { + 'printindex': '', +} + +project = u'OPNFV: Template documentation config' +copyright = u'%s, OPNFV' % datetime.date.today().year +version = u'1.0.0' +release = u'1.0.0' diff --git a/docs/etc/opnfv-logo.png b/docs/etc/opnfv-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..1519503eba764f7a00877b9b8bdbbd37fd3707c6 GIT binary patch literal 2829 zcmV+o3-a`dP)3)28sjxMC?FF++Bq$U6w!I|Q zuDk75d^``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