Simplify the docs configuration

master
kaiyou 6 years ago
parent 8fa80c1589
commit 13e3862ca7

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

@ -11,9 +11,9 @@ master_doc = 'index'
project = 'Mailu' project = 'Mailu'
copyright = '2018, Mailu authors' copyright = '2018, Mailu authors'
author = 'Mailu authors' author = 'Mailu authors'
version = release = 'latest' version = release = os.environ.get('VERSION', 'master')
language = None language = None
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store', 'Dockerfile', 'docker-compose.yml']
pygments_style = 'sphinx' pygments_style = 'sphinx'
todo_include_todos = False todo_include_todos = False
html_theme = 'sphinx_rtd_theme' html_theme = 'sphinx_rtd_theme'
@ -35,7 +35,7 @@ html_context = {
'display_github': True, 'display_github': True,
'github_user': 'mailu', 'github_user': 'mailu',
'github_repo': 'mailu', 'github_repo': 'mailu',
'github_version': os.environ.get('VERSION', 'master'), 'github_version': version,
'versions': [ 'versions': [
('1.5', '/1.5/'), ('1.5', '/1.5/'),
('master', '/master/') ('master', '/master/')

Loading…
Cancel
Save