Skip to main content
Homepage
Explore
Search or go to…
/
Sign in
Explore
Primary navigation
Project
P
Pyzenkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
713
Mentat
Pyzenkit
Commits
240b823f
Commit
240b823f
authored
Aug 3, 2017
by
Honza Mach
Browse files
Options
Downloads
Patches
Plain Diff
Added output of build metadata to autogenerated documentation.
parent
c8ec933e
Branches
devel
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
conf.py
+16
-3
16 additions, 3 deletions
conf.py
doc/_doclib/api.rst
+1
-1
1 addition, 1 deletion
doc/_doclib/api.rst
doc/_doclib/architecture.rst
+2
-0
2 additions, 0 deletions
doc/_doclib/architecture.rst
manual.rst
+8
-0
8 additions, 0 deletions
manual.rst
metadata.json
+1
-0
1 addition, 0 deletions
metadata.json
with
28 additions
and
4 deletions
conf.py
+
16
−
3
View file @
240b823f
...
...
@@ -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 ----------------------------------------------
...
...
...
...
This diff is collapsed.
Click to expand it.
doc/_doclib/api.rst
+
1
−
1
View file @
240b823f
.. _section-api:
.. _section-api
-pyzenkit
:
API
================================================================================
...
...
...
...
This diff is collapsed.
Click to expand it.
doc/_doclib/architecture.rst
+
2
−
0
View file @
240b823f
.. _section-pyzenkit-architecture:
Application architecture
================================================================================
...
...
...
...
This diff is collapsed.
Click to expand it.
manual.rst
+
8
−
0
View file @
240b823f
...
...
@@ -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
...
...
...
...
This diff is collapsed.
Click to expand it.
metadata.json
0 → 100644
+
1
−
0
View file @
240b823f
{
"codename"
:
"local"
,
"suite"
:
"unstable"
,
"bversion"
:
"unknown"
,
"revision"
:
"latest"
,
"bnumber"
:
"unknown"
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment