mirror of
https://github.com/optim-enterprises-bv/Mailu.git
synced 2025-11-01 02:27:47 +00:00
Insert a dynamic template for multiversion rendering
This commit is contained in:
2
docs/_templates/layout.html
vendored
Normal file
2
docs/_templates/layout.html
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
{% set version=github_version %}
|
||||
{% extends "!layout.html" %}
|
||||
11
docs/conf.py
11
docs/conf.py
@@ -4,7 +4,7 @@
|
||||
|
||||
extensions = ['sphinx.ext.imgmath',
|
||||
'sphinx.ext.viewcode']
|
||||
templates_path = []
|
||||
templates_path = ['_templates']
|
||||
source_suffix = '.rst'
|
||||
master_doc = 'index'
|
||||
project = 'Mailu'
|
||||
@@ -27,3 +27,12 @@ html_sidebars = {
|
||||
'searchbox.html',
|
||||
]
|
||||
}
|
||||
|
||||
# Theme options
|
||||
html_context = {
|
||||
'display_github': True,
|
||||
'github_user': 'mailu',
|
||||
'github_repo': 'mailu',
|
||||
'github_version': 'master',
|
||||
'conf_py_path': '/docs/'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user