add officel projet docs 97/2797/1
authorWuKong <rebirthmonkey@gmail.com>
Mon, 26 Oct 2015 09:50:08 +0000 (10:50 +0100)
committerWuKong <rebirthmonkey@gmail.com>
Mon, 26 Oct 2015 09:50:08 +0000 (10:50 +0100)
Change-Id: I4d3cd5f6806f25b7aa2cdd20415de9fd835a5c5a
Signed-off-by: WuKong <rebirthmonkey@gmail.com>
docs/etc/conf.py [new file with mode: 0644]
docs/etc/opnfv-logo.png [new file with mode: 0644]
docs/how-to-use-docs/documentation-example.rst [new file with mode: 0644]
docs/how-to-use-docs/index.rst [new file with mode: 0644]

diff --git a/docs/etc/conf.py b/docs/etc/conf.py
new file mode 100644 (file)
index 0000000..18deb8b
--- /dev/null
@@ -0,0 +1,34 @@
+import datetime\r
+import sys\r
+import os\r
+\r
+try:\r
+    __import__('imp').find_module('sphinx.ext.numfig')\r
+    extensions = ['sphinx.ext.numfig']\r
+except ImportError:\r
+    # 'pip install sphinx_numfig'\r
+    extensions = ['sphinx_numfig']\r
+\r
+# numfig:\r
+number_figures = True\r
+figure_caption_prefix = "Fig."\r
+\r
+source_suffix = '.rst'\r
+master_doc = 'index'\r
+pygments_style = 'sphinx'\r
+html_use_index = False\r
+\r
+pdf_documents = [('index', u'OPNFV', u'OPNFV Project', u'OPNFV')]\r
+pdf_fit_mode = "shrink"\r
+pdf_stylesheets = ['sphinx','kerning','a4']\r
+#latex_domain_indices = False\r
+#latex_use_modindex = False\r
+\r
+latex_elements = {\r
+    'printindex': '',\r
+}\r
+\r
+project = u'OPNFV: Template documentation config'\r
+copyright = u'%s, OPNFV' % datetime.date.today().year\r
+version = u'1.0.0'\r
+release = u'1.0.0'\r
diff --git a/docs/etc/opnfv-logo.png b/docs/etc/opnfv-logo.png
new file mode 100644 (file)
index 0000000..1519503
Binary files /dev/null and b/docs/etc/opnfv-logo.png differ
diff --git a/docs/how-to-use-docs/documentation-example.rst b/docs/how-to-use-docs/documentation-example.rst
new file mode 100644 (file)
index 0000000..81c9f02
--- /dev/null
@@ -0,0 +1,86 @@
+.. two dots create a comment. please leave this logo at the top of each of your rst files.\r
+.. image:: ../etc/opnfv-logo.png \r
+  :height: 40\r
+  :width: 200\r
+  :alt: OPNFV\r
+  :align: left\r
+.. these two pipes are to seperate the logo from the first title\r
+|\r
+|\r
+How to create documentation for your OPNFV project\r
+==================================================\r
+\r
+this is the directory structure of the docs/ directory that can be found in the root of your project directory\r
+\r
+.. code-block:: bash\r
+\r
+    ./etc\r
+    ./etc/opnfv-logo.png\r
+    ./etc/conf.py\r
+    ./how-to-use-docs\r
+    ./how-to-use-docs/documentation-example.rst\r
+    ./how-to-use-docs/index.rst\r
+\r
+To create your own documentation, Create any number of directories (depending on your need) and place in each of them an index.rst.\r
+This index file must refence your other rst files.\r
+\r
+* Here is an example index.rst\r
+\r
+.. code-block:: bash\r
+\r
+  Example Documentation table of contents\r
+  =======================================\r
+\r
+  Contents:\r
+\r
+  .. toctree::\r
+     :numbered:\r
+     :maxdepth: 4\r
+\r
+     documentation-example.rst\r
+\r
+  Indices and tables\r
+  ==================\r
+\r
+  * :ref:`search`\r
+\r
+  Revision: _sha1_\r
+\r
+  Build date: |today|\r
+\r
+\r
+The Sphinx Build\r
+================\r
+\r
+When you push documentation changes to gerrit a jenkins job will create html documentation.\r
+\r
+* Verify Jobs\r
+For verify jobs a link to the documentation will show up as a comment in gerrit for you to see the result.\r
+\r
+* Merge jobs\r
+\r
+Once you are happy with the look of your documentation you can submit the patchset the merge job will \r
+copy the output of each documentation directory to http://artifacts.opnfv.org/$project/docs/$name_of_your_folder/index.html\r
+\r
+Here are some quick examples of how to use rst markup\r
+\r
+This is a headline::\r
+\r
+  here is some code, note that it is indented\r
+\r
+links are easy to add: Here is a link to sphinx, the tool that we are using to generate documetation http://sphinx-doc.org/\r
+\r
+* Bulleted Items\r
+\r
+  **this will be bold**\r
+\r
+.. code-block:: bash\r
+\r
+  echo "Heres is a code block with bash syntax highlighting"\r
+\r
+\r
+Leave these at the bottom of each of your documents they are used internally\r
+\r
+Revision: _sha1_\r
+\r
+Build date: |today|\r
diff --git a/docs/how-to-use-docs/index.rst b/docs/how-to-use-docs/index.rst
new file mode 100644 (file)
index 0000000..8af7427
--- /dev/null
@@ -0,0 +1,30 @@
+.. OPNFV Release Engineering documentation, created by\r
+   sphinx-quickstart on Tue Jun  9 19:12:31 2015.\r
+   You can adapt this file completely to your liking, but it should at least\r
+   contain the root `toctree` directive.\r
+\r
+.. image:: ../etc/opnfv-logo.png\r
+  :height: 40\r
+  :width: 200\r
+  :alt: OPNFV\r
+  :align: left\r
+\r
+Example Documentation table of contents\r
+=======================================\r
+\r
+Contents:\r
+\r
+.. toctree::\r
+   :numbered:\r
+   :maxdepth: 4\r
+\r
+   documentation-example.rst\r
+\r
+Indices and tables\r
+==================\r
+\r
+* :ref:`search`\r
+\r
+Revision: _sha1_\r
+\r
+Build date: |today|\r