-
Notifications
You must be signed in to change notification settings - Fork 3
/
conf.py
54 lines (40 loc) · 1.16 KB
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- coding: utf-8 -*-
import sys, os
import sphinx_rtd_theme
from sphinx.highlighting import lexers
from pygments.lexers.web import PhpLexer
from pygments.lexers.web import HtmlLexer
from pygments.lexers.web import JsonLexer
from datetime import datetime
lexers['php'] = PhpLexer(startinline=True)
lexers['php-annotations'] = PhpLexer(startinline=True)
lexers['html'] = HtmlLexer(startinline=True)
lexers['json'] = JsonLexer(startinline=True)
extensions = ['sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.todo',
'sphinx.ext.coverage',
'sphinx.ext.imgmath',
'sphinx.ext.ifconfig']
source_suffix = '.rst'
master_doc = 'index'
project = 'Netgen Layouts'
copyright = 'Netgen'
author = 'Netgen'
version = ''
release = ''
exclude_patterns = ['_build']
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_static_path = ['_static']
templates_path = ['_templates']
html_theme_options = {
'collapse_navigation': True,
'display_version': True,
}
html_context = {
'copyright_url': 'https://netgen.io',
'current_year': datetime.utcnow().year
}
def setup(app):
app.add_css_file("css/style.css")