|
32 | 32 | language = 'en'
|
33 | 33 |
|
34 | 34 | extensions = [
|
35 |
| - 'sphinx.ext.intersphinx', |
36 |
| - 'sphinx.ext.autodoc', |
37 |
| - 'sphinx.ext.mathjax', |
38 |
| - 'sphinx.ext.viewcode', |
39 |
| - 'sphinxcontrib.httpdomain', |
40 |
| -] |
| 35 | + 'sphinx.ext.intersphinx', |
| 36 | + 'sphinx.ext.autodoc', |
| 37 | + 'sphinx.ext.mathjax', |
| 38 | + 'sphinx.ext.viewcode', |
| 39 | + 'sphinxcontrib.httpdomain', |
| 40 | + ] |
41 | 41 |
|
42 | 42 | templates_path = ['_templates']
|
43 | 43 | source_suffix = '.rst'
|
|
47 | 47 | suppress_warnings = ['image.nonlocal_uri']
|
48 | 48 | pygments_style = 'default'
|
49 | 49 |
|
50 |
| -intersphinx_mapping = { # Is this where those mystery links are specified? |
51 |
| - 'rtd': ('https://docs.readthedocs.io/en/latest/', None), |
52 |
| - 'sphinx': ('http://www.sphinx-doc.org/en/stable/', None), |
53 |
| -} |
| 50 | +intersphinx_mapping = { |
| 51 | + 'rtd': ('https://docs.readthedocs.io/en/latest/', None), |
| 52 | + 'sphinx': ('http://www.sphinx-doc.org/en/stable/', None), |
| 53 | + 'python': ('https://docs.python.org/3/', None), |
| 54 | + } |
54 | 55 |
|
55 | 56 | html_theme = 'sphinx_rtd_theme'
|
56 | 57 | html_theme_options = {
|
57 |
| - 'logo_only': False, # True will show just the logo |
58 |
| -} |
| 58 | + 'logo_only': False, # True will show just the logo |
| 59 | + } |
59 | 60 | html_theme_path = ["../.."]
|
60 |
| -#html_logo = "logo/pyms.png" |
61 |
| -html_show_sourcelink = False # True will show link to source |
| 61 | +# html_logo = "logo/pyms.png" |
| 62 | +html_show_sourcelink = False # True will show link to source |
62 | 63 |
|
63 | 64 | html_context = {
|
64 |
| - # Github Settings |
65 |
| - "display_github": True, # Integrate GitHub |
66 |
| - "github_user": "domdfcoding", # Username |
67 |
| - "github_repo": "domdf_python_tools", # Repo name |
68 |
| - "github_version": "master", # Version |
69 |
| - "conf_py_path": "/", # Path in the checkout to the docs root |
70 |
| -} |
| 65 | + # Github Settings |
| 66 | + "display_github": True, # Integrate GitHub |
| 67 | + "github_user": "domdfcoding", # Username |
| 68 | + "github_repo": "domdf_python_tools", # Repo name |
| 69 | + "github_version": "master", # Version |
| 70 | + "conf_py_path": "/", # Path in the checkout to the docs root |
| 71 | + } |
71 | 72 |
|
72 | 73 | htmlhelp_basename = slug
|
73 | 74 |
|
74 | 75 | latex_documents = [
|
75 |
| - ('index', '{0}.tex'.format(slug), project, author, 'manual'), |
76 |
| -] |
| 76 | + ('index', '{0}.tex'.format(slug), project, author, 'manual'), |
| 77 | + ] |
77 | 78 |
|
78 | 79 | man_pages = [
|
79 |
| - ('index', slug, project, [author], 1) |
80 |
| -] |
| 80 | + ('index', slug, project, [author], 1) |
| 81 | + ] |
81 | 82 |
|
82 | 83 | texinfo_documents = [
|
83 |
| - ('index', slug, project, author, slug, project, 'Miscellaneous'), |
84 |
| -] |
| 84 | + ('index', slug, project, author, slug, project, 'Miscellaneous'), |
| 85 | + ] |
85 | 86 |
|
86 | 87 |
|
87 | 88 | # Extensions to theme docs
|
88 | 89 | def setup(app):
|
89 |
| - from sphinx.domains.python import PyField |
90 |
| - from sphinx.util.docfields import Field |
91 |
| - |
92 |
| - app.add_object_type( |
93 |
| - 'confval', |
94 |
| - 'confval', |
95 |
| - objname='configuration value', |
96 |
| - indextemplate='pair: %s; configuration value', |
97 |
| - doc_field_types=[ |
98 |
| - PyField( |
99 |
| - 'type', |
100 |
| - label=_('Type'), |
101 |
| - has_arg=False, |
102 |
| - names=('type',), |
103 |
| - bodyrolename='class' |
104 |
| - ), |
105 |
| - Field( |
106 |
| - 'default', |
107 |
| - label=_('Default'), |
108 |
| - has_arg=False, |
109 |
| - names=('default',), |
110 |
| - ), |
111 |
| - ] |
112 |
| - ) |
| 90 | + from sphinx.domains.python import PyField |
| 91 | + from sphinx.util.docfields import Field |
| 92 | + |
| 93 | + app.add_object_type( |
| 94 | + 'confval', |
| 95 | + 'confval', |
| 96 | + objname='configuration value', |
| 97 | + indextemplate='pair: %s; configuration value', |
| 98 | + doc_field_types=[ |
| 99 | + PyField( |
| 100 | + 'type', |
| 101 | + label=_('Type'), |
| 102 | + has_arg=False, |
| 103 | + names=('type',), |
| 104 | + bodyrolename='class' |
| 105 | + ), |
| 106 | + Field( |
| 107 | + 'default', |
| 108 | + label=_('Default'), |
| 109 | + has_arg=False, |
| 110 | + names=('default',), |
| 111 | + ), |
| 112 | + ] |
| 113 | + ) |
0 commit comments