forked from docs/cloud-firewall
Update tox.ini && conf.py file
Co-authored-by: tischrei <tino.schreiber@t-systems.com> Co-committed-by: tischrei <tino.schreiber@t-systems.com>
This commit is contained in:
parent
47b077a01e
commit
3dd078e8cc
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
from git import Repo
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
extensions = [
|
extensions = [
|
||||||
'otcdocstheme',
|
'otcdocstheme',
|
||||||
@ -115,3 +117,9 @@ latex_documents = [
|
|||||||
u'Cloud Firewall - API Reference',
|
u'Cloud Firewall - API Reference',
|
||||||
u'OpenTelekomCloud', 'manual'),
|
u'OpenTelekomCloud', 'manual'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Get the Git commit values for last updated timestamp on each page
|
||||||
|
repo = Repo(search_parent_directories=True)
|
||||||
|
commit = repo.head.commit
|
||||||
|
current_commit_hash = commit.hexsha
|
||||||
|
current_commit_time = commit.committed_datetime.strftime('%Y-%m-%d %H:%M')
|
@ -8,4 +8,5 @@ reno>=3.1.0 # Apache-2.0
|
|||||||
otc-sphinx-directives>=0.1.0
|
otc-sphinx-directives>=0.1.0
|
||||||
sphinx-minify>=0.0.1 # Apache-2.0
|
sphinx-minify>=0.0.1 # Apache-2.0
|
||||||
git+https://gitea.eco.tsi-dev.otc-service.com/infra/otc-metadata.git#egg=otc_metadata
|
git+https://gitea.eco.tsi-dev.otc-service.com/infra/otc-metadata.git#egg=otc_metadata
|
||||||
setuptools
|
setuptools
|
||||||
|
gitpython
|
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
from git import Repo
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
extensions = [
|
extensions = [
|
||||||
'otcdocstheme',
|
'otcdocstheme',
|
||||||
@ -111,3 +113,9 @@ html_copy_source = False
|
|||||||
|
|
||||||
# -- Options for PDF output --------------------------------------------------
|
# -- Options for PDF output --------------------------------------------------
|
||||||
latex_documents = []
|
latex_documents = []
|
||||||
|
|
||||||
|
# Get the Git commit values for last updated timestamp on each page
|
||||||
|
repo = Repo(search_parent_directories=True)
|
||||||
|
commit = repo.head.commit
|
||||||
|
current_commit_hash = commit.hexsha
|
||||||
|
current_commit_time = commit.committed_datetime.strftime('%Y-%m-%d %H:%M')
|
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
from git import Repo
|
||||||
|
from datetime import datetime
|
||||||
|
|
||||||
extensions = [
|
extensions = [
|
||||||
'otcdocstheme',
|
'otcdocstheme',
|
||||||
@ -115,3 +117,9 @@ latex_documents = [
|
|||||||
u'Cloud Firewall - User Guide',
|
u'Cloud Firewall - User Guide',
|
||||||
u'OpenTelekomCloud', 'manual'),
|
u'OpenTelekomCloud', 'manual'),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Get the Git commit values for last updated timestamp on each page
|
||||||
|
repo = Repo(search_parent_directories=True)
|
||||||
|
commit = repo.head.commit
|
||||||
|
current_commit_hash = commit.hexsha
|
||||||
|
current_commit_time = commit.committed_datetime.strftime('%Y-%m-%d %H:%M')
|
Loading…
x
Reference in New Issue
Block a user