forked from dephell/dephell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconf.py
More file actions
112 lines (88 loc) · 2.98 KB
/
Copy pathconf.py
File metadata and controls
112 lines (88 loc) · 2.98 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#!/usr/bin/env python3
# built-in
import os
import sys
from datetime import date
from pathlib import Path
# external
import alabaster
from recommonmark.parser import CommonMarkParser
from recommonmark.transform import AutoStructify
sys.path.append(os.path.abspath('../'))
extensions = [
'alabaster',
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.todo',
'sphinx.ext.coverage',
'sphinx.ext.viewcode',
'sphinx.ext.githubpages',
]
templates_path = ['_templates']
source_parsers = {
'.md': CommonMarkParser,
}
source_suffix = ['.rst', '.md']
master_doc = 'index'
project = 'DepHell'
copyright = '{}, Gram (@orsinium)'.format(date.today().year)
author = 'Gram (@orsinium)'
version = '0.8.2'
release = version
language = None
exclude_patterns = []
todo_include_todos = True
pygments_style = 'sphinx'
html_theme = 'alabaster'
html_theme_path = [alabaster.get_path()]
html_static_path = [str(Path(__file__).parent.parent / 'assets')]
html_theme_options = {
'logo': 'logo.png',
'logo_name': 'false',
'description': 'Python project management',
'sidebar_width': '240px',
'show_powered_by': 'false',
'caption_font_size': '20px',
# 'color': '#2c3e50',
'github_banner': 'true',
'github_user': 'dephell',
'github_repo': 'dephell',
'github_type': 'star',
'extra_nav_links': {
'Home': 'https://dephell.org/',
'GitHub repository': 'https://github.com/dephell/dephell',
'Create an issue': 'https://github.com/dephell/dephell/issues/new',
},
}
# -- Options for HTMLHelp output ------------------------------------------
# Output file base name for HTML help builder.
htmlhelp_basename = 'dephelldoc'
# -- Options for LaTeX output ---------------------------------------------
# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'dephell.tex', 'DepHell Documentation',
'@orsinium', 'manual'),
]
# -- Options for manual page output ---------------------------------------
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [(master_doc, 'dephell', 'DepHell Documentation', [author], 1)]
# -- Options for Texinfo output -------------------------------------------
# Grouping the document tree into Texinfo files. List of tuples
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'dephell', 'DepHell Documentation',
author, 'DepHell', 'One line description of project.', 'Miscellaneous'),
]
# https://github.com/rtfd/recommonmark/blob/master/docs/conf.py
def setup(app):
config = {
# 'url_resolver': lambda url: github_doc_root + url,
'auto_toc_tree_section': 'Contents',
'enable_eval_rst': True,
}
app.add_config_value('recommonmark_config', config, True)
app.add_transform(AutoStructify)