-
Notifications
You must be signed in to change notification settings - Fork 0
/
cyverse_sphinx_conf.py
82 lines (67 loc) · 1.95 KB
/
cyverse_sphinx_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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Version 2.0, May 2020
# -*- coding: utf-8 -*-
import sys
import os
from recommonmark.parser import CommonMarkParser
from recommonmark.transform import AutoStructify
extensions = [
'sphinx.ext.autodoc',
]
project = 'YOUR PROJECT NAME HERE'
copyright = '2020, CyVerse'
author = 'CyVerse'
version = '2.0'
release = '2.0'
language = None
source_parsers = {
'.md': CommonMarkParser,
}
source_suffix = ['.rst']
common_static_path = os.path.join(os.path.dirname(__file__), 'static')
templates_path = ['_templates']
html_static_path = ['_static', common_static_path]
exclude_patterns = ['_build']
master_doc = 'index'
pygments_style = 'sphinx'
todo_include_todos = False
html_theme = 'sphinx_rtd_theme'
htmlhelp_basename = 'CyVerse_Documentation'
latex_elements = {}
latex_documents = [
(master_doc, 'CyVerseDocumentation.tex', 'CyVerse Documentation',
'CyVerse', 'manual'),
]
man_pages = [
(master_doc, 'CyVerse Documentation', 'CyVerse Documentation',
[author], 1)
]
texinfo_documents = [
(master_doc, 'CyVerse Documentation', 'CyVerse Documentation',
author, 'CyVerse', 'CyVerse',
'Miscellaneous'),
]
# Bibliographic Dublin Core info.
epub_title = project
epub_author = author
epub_publisher = author
epub_copyright = copyright
epub_exclude_files = ['search.html']
def setup(app):
app.add_config_value(
'recommonmark_config',
{
'enable_auto_toc_tree': True,
'enable_eval_rst': True,
'auto_toc_tree_section': 'Contents',
},
True
)
app.add_transform(AutoStructify)
app.add_stylesheet('cyverse.css')
app.add_stylesheet('detail-expand.css')
app.add_stylesheet('question-answer.css')
#uncomment to enable table sorting app.add_javascript('jquery.tablesorter.min.js')
app.add_javascript('cyverse.js')
app.add_javascript('detail-expand.js')
app.add_javascript('question-answer.js')
app.add_javascript('intercom-script-for-learning.js')