mirror of
https://github.com/Mailu/Mailu.git
synced 2025-02-11 13:25:44 +02:00
Insert a dynamic template for multiversion rendering
This commit is contained in:
parent
8746fafc14
commit
70c32787d6
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/'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user