]> git.madduck.net Git - etc/vim.git/blob - docs/conf.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

add sphinx docs skeleton (#71)
[etc/vim.git] / docs / conf.py
1 # -*- coding: utf-8 -*-
2 #
3 # Configuration file for the Sphinx documentation builder.
4 #
5 # This file does only contain a selection of the most common options. For a
6 # full list see the documentation:
7 # http://www.sphinx-doc.org/en/stable/config
8
9 # -- Path setup --------------------------------------------------------------
10
11 # If extensions (or modules to document with autodoc) are in another directory,
12 # add these directories to sys.path here. If the directory is relative to the
13 # documentation root, use os.path.abspath to make it absolute, like shown here.
14 #
15 import os
16 import sys
17
18 import recommonmark
19
20
21 sys.path.insert(0, os.path.abspath('.' ))
22
23 # -- Project information -----------------------------------------------------
24
25 project = 'Black'
26 copyright = '2018, Łukasz Langa and contributors to Black'
27 author = 'Łukasz Langa and contributors to Black'
28
29 # Autopopulate version
30 import black
31 # The short X.Y version.
32 # TODO: fix for 2 digit month
33 version = f'{black.__version__[:4]}'
34 # The full version, including alpha/beta/rc tags.
35 release = black.__version__
36
37 # -- General configuration ---------------------------------------------------
38
39 # If your documentation needs a minimal Sphinx version, state it here.
40 #
41 # needs_sphinx = '1.0'
42
43 # Add any Sphinx extension module names here, as strings. They can be
44 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
45 # ones.
46 extensions = [
47     'sphinx.ext.autodoc',
48     'sphinx.ext.intersphinx',
49 ]
50
51 # Add any paths that contain templates here, relative to this directory.
52 templates_path = ['_templates']
53
54 source_parsers = {
55     '.md': 'recommonmark.parser.CommonMarkParser',
56 }
57
58 # The suffix(es) of source filenames.
59 # You can specify multiple suffix as a list of string:
60 source_suffix = ['.rst', '.md']
61
62 # The master toctree document.
63 master_doc = 'index'
64
65 # The language for content autogenerated by Sphinx. Refer to documentation
66 # for a list of supported languages.
67 #
68 # This is also used if you do content translation via gettext catalogs.
69 # Usually you set "language" from the command line for these cases.
70 language = None
71
72 # List of patterns, relative to source directory, that match files and
73 # directories to ignore when looking for source files.
74 # This pattern also affects html_static_path and html_extra_path .
75 exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
76
77 # The name of the Pygments (syntax highlighting) style to use.
78 pygments_style = 'sphinx'
79
80
81 # -- Options for HTML output -------------------------------------------------
82
83 # The theme to use for HTML and HTML Help pages.  See the documentation for
84 # a list of builtin themes.
85 #
86 html_theme = 'alabaster'
87
88 html_sidebars = {
89     '**': [
90         'about.html',
91         'navigation.html',
92         'relations.html',
93         'sourcelink.html',
94         'searchbox.html'
95     ]
96 }
97
98 html_theme_options = {
99     'show_related': True,
100     'description': 'The uncompromising Python code formatter',
101     'github_user': 'ambv',
102     'github_repo': 'black',
103     'github_button': True,
104     'show_powered_by': True,
105     'fixed_sidebar': True,
106 }
107
108
109 # Add any paths that contain custom static files (such as style sheets) here,
110 # relative to this directory. They are copied after the builtin static files,
111 # so a file named "default.css" will overwrite the builtin "default.css".
112 html_static_path = ['_static']
113
114 # Custom sidebar templates, must be a dictionary that maps document names
115 # to template names.
116 #
117 # The default sidebars (for documents that don't match any pattern) are
118 # defined by theme itself.  Builtin themes are using these templates by
119 # default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
120 # 'searchbox.html']``.
121 #
122 # html_sidebars = {}
123
124
125 # -- Options for HTMLHelp output ---------------------------------------------
126
127 # Output file base name for HTML help builder.
128 htmlhelp_basename = 'blackdoc'
129
130
131 # -- Options for LaTeX output ------------------------------------------------
132
133 latex_elements = {
134     # The paper size ('letterpaper' or 'a4paper').
135     #
136     # 'papersize': 'letterpaper',
137
138     # The font size ('10pt', '11pt' or '12pt').
139     #
140     # 'pointsize': '10pt',
141
142     # Additional stuff for the LaTeX preamble.
143     #
144     # 'preamble': '',
145
146     # Latex figure (float) alignment
147     #
148     # 'figure_align': 'htbp',
149 }
150
151 # Grouping the document tree into LaTeX files. List of tuples
152 # (source start file, target name, title,
153 #  author, documentclass [howto, manual, or own class]).
154 latex_documents = [
155     (master_doc, 'black.tex', 'Documentation for Black',
156      'Łukasz Langa and contributors to Black', 'manual'),
157 ]
158
159
160 # -- Options for manual page output ------------------------------------------
161
162 # One entry per manual page. List of tuples
163 # (source start file, name, description, authors, manual section).
164 man_pages = [
165     (master_doc, 'black', 'Documentation for black',
166      [author], 1)
167 ]
168
169
170 # -- Options for Texinfo output ----------------------------------------------
171
172 # Grouping the document tree into Texinfo files. List of tuples
173 # (source start file, target name, title, author,
174 #  dir menu entry, description, category)
175 texinfo_documents = [
176     (master_doc, 'Black', 'Documentation for Black',
177      author, 'Black', 'The uncompromising Python code formatter',
178      'Miscellaneous'),
179 ]
180
181
182 # -- Options for Epub output -------------------------------------------------
183
184 # Bibliographic Dublin Core info.
185 epub_title = project
186 epub_author = author
187 epub_publisher = author
188 epub_copyright = copyright
189
190 # The unique identifier of the text. This can be a ISBN number
191 # or the project homepage.
192 #
193 # epub_identifier = ''
194
195 # A unique identification for the text.
196 #
197 # epub_uid = ''
198
199 # A list of files that should not be packed into the epub file.
200 epub_exclude_files = ['search.html']
201
202
203 # -- Extension configuration -------------------------------------------------
204
205 # -- Options for intersphinx extension ---------------------------------------
206
207 # Example configuration for intersphinx: refer to the Python standard library.
208 intersphinx_mapping = {'https://docs.python.org/3/': None}