Skip to main content
Sign in
Snippets Groups Projects
Commit 240b823f authored by Honza Mach's avatar Honza Mach
Browse files

Added output of build metadata to autogenerated documentation.

parent c8ec933e
Branches devel
No related tags found
No related merge requests found
......@@ -22,10 +22,15 @@
import os
import sys
import json
#lib = os.path.abspath(os.path.join(os.path.dirname(__file__), './pyzenkit'))
lib = os.path.abspath(os.path.dirname(__file__))
sys.path.insert(0, lib)
# -- Load custom metadata ------------------------------------------------------
with open('metadata.json') as json_metadata_file:
custom_metadata = json.load(json_metadata_file)
def setup(app):
app.add_config_value('build_suite', custom_metadata['suite'], 'env')
# -- General configuration ------------------------------------------------
......@@ -89,6 +94,14 @@ pygments_style = 'sphinx'
# If true, `todo` and `todoList` produce output, else they produce nothing.
todo_include_todos = True
rst_epilog = """
.. |codename| replace:: **{codename}**
.. |suite| replace:: *{suite}*
.. |bversion| replace:: *{bversion}*
.. |revision| replace:: ``{revision}``
.. |bnumber| replace:: *- {bnumber}*
""".format(**custom_metadata)
# -- Options for HTML output ----------------------------------------------
......
......
.. _section-api:
.. _section-api-pyzenkit:
API
================================================================================
......
......
.. _section-pyzenkit-architecture:
Application architecture
================================================================================
......
......
......@@ -4,6 +4,14 @@
Welcome to PyZenKit - Python script and daemon toolkit's documentation!
================================================================================
.. note::
Please be aware, that this version of documentation is appropriate for:
* version: |bversion|
* distribution: |codename| (|suite|)
* Git revision: |revision|
.. warning::
Although production code is based on this library, it should still be considered
......
......
{"codename":"local","suite": "unstable","bversion":"unknown","revision":"latest","bnumber":"unknown"}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment