-
Notifications
You must be signed in to change notification settings - Fork 499
/
conf.py
63 lines (45 loc) · 1.56 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
55
56
57
58
59
60
61
62
63
# -*- coding: utf-8 -*-
import os
import subprocess
import sphinx_rtd_theme
read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'
if read_the_docs_build:
subprocess.call('cd ..; doxygen', shell=True)
# -- Project information -----------------------------------------------------
project = 'flashlight'
copyright = '2018, Flashlight Contributors'
author = 'Flashlight Contributors'
version = 'v0.1'
# -- General configuration ---------------------------------------------------
extensions = [
'sphinx.ext.githubpages',
'sphinx.ext.graphviz',
'breathe'
]
breathe_projects = {"flashlight" : "../build/xml"}
breathe_default_project = "flashlight"
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
highlight_language = 'c++'
pygments_style = 'sphinx'
# -- Options for HTML output -------------------------------------------------
def setup(app):
app.add_stylesheet("css/styles.css")
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_static_path = ['_static']
# -- Options for HTMLHelp output ---------------------------------------------
htmlhelp_basename = 'flashlightdoc'
# -- Options for LaTeX output ------------------------------------------------
latex_elements = {
}
latex_documents = [
(master_doc, 'flashlight.tex', 'flashlight Documentation',
'Flashlight Contributors', 'manual'),
]
# -- Options for manual page output ------------------------------------------
man_pages = [
(master_doc, 'flashlight', 'flashlight Documentation',
[author], 1)
]