Skip to content

Commit 3d4a545

Browse files
committed
Add conf.py
1 parent dfcf8e1 commit 3d4a545

File tree

1 file changed

+102
-0
lines changed

1 file changed

+102
-0
lines changed

docs/source/conf.py

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
"""
4+
Configuration for Sphinx.
5+
"""
6+
7+
# pylint: disable=invalid-name
8+
9+
import os
10+
import sys
11+
12+
import mock_vws
13+
14+
sys.path.insert(0, os.path.abspath('.'))
15+
16+
extensions = [
17+
'sphinx.ext.autodoc',
18+
'sphinx.ext.intersphinx',
19+
'sphinx.ext.napoleon',
20+
'sphinx_autodoc_typehints',
21+
'sphinxcontrib.spelling',
22+
]
23+
24+
templates_path = ['_templates']
25+
source_suffix = '.rst'
26+
master_doc = 'index'
27+
28+
project = 'VWS Python'
29+
copyright = '2018, Adam Dangoor' # pylint: disable=redefined-builtin
30+
author = 'Adam Dangoor'
31+
32+
# The version info for the project you're documenting, acts as replacement for
33+
# |version| and |release|, also used in various other places throughout the
34+
# built documents.
35+
version = vws.__version__
36+
release = version.split('+')[0]
37+
38+
language = None
39+
40+
# The name of the syntax highlighting style to use.
41+
pygments_style = 'sphinx'
42+
html_theme = 'alabaster'
43+
44+
# Custom sidebar templates, must be a dictionary that maps document names
45+
# to template names.
46+
#
47+
# This is required for the alabaster theme
48+
# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
49+
html_sidebars = {
50+
'**': [
51+
'relations.html', # needs 'show_related': True theme option to display
52+
'searchbox.html',
53+
],
54+
}
55+
56+
# Output file base name for HTML help builder.
57+
htmlhelp_basename = 'VWSPYTHONdoc'
58+
autoclass_content = 'init'
59+
intersphinx_mapping = {
60+
'python': ('https://docs.python.org/3.7', None),
61+
'docker': ('http://docker-py.readthedocs.io/en/stable', None),
62+
}
63+
nitpicky = True
64+
warning_is_error = True
65+
nitpick_ignore = [
66+
('py:exc', 'RetryError'),
67+
# See https://bugs.python.org/issue31024 for why Sphinx cannot find this.
68+
('py:class', 'typing.Tuple'),
69+
('py:class', 'typing.Optional'),
70+
('py:class', '_io.BytesIO'),
71+
('py:class', 'docker.types.services.Mount'),
72+
]
73+
74+
html_show_copyright = False
75+
html_show_sphinx = False
76+
html_show_sourcelink = False
77+
78+
html_theme_options = {
79+
'show_powered_by': 'false',
80+
}
81+
82+
html_sidebars = {
83+
'**': [
84+
'about.html',
85+
'navigation.html',
86+
'searchbox.html',
87+
],
88+
}
89+
90+
# Don't check anchors because many websites use #! for AJAX magic
91+
# http://sphinx-doc.org/config.html#confval-linkcheck_anchors
92+
linkcheck_anchors = False
93+
# Retry link checking to avoid transient network errors.
94+
linkcheck_retries = 5
95+
linkcheck_ignore = [
96+
# Requires login.
97+
r'https://developer.vuforia.com/targetmanager',
98+
]
99+
100+
spelling_word_list_filename = '../../spelling_private_dict.txt'
101+
102+
autodoc_member_order = 'bysource'

0 commit comments

Comments
 (0)