Insert a dynamic template for multiversion rendering

master
kaiyou 7 years ago
parent 8746fafc14
commit 70c32787d6

@ -0,0 +1,2 @@
{% set version=github_version %}
{% extends "!layout.html" %}

@ -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…
Cancel
Save