Debian Codegraph @

docs/conf.py

raw
1 #!/usr/bin/env python3
2 # -*- coding: utf-8 -*-
3 #
4 # Datasette documentation build configuration file, created by
5 # sphinx-quickstart on Thu Nov 16 06:50:13 2017.
6 #
7 # This file is execfile()d with the current directory set to its
8 # containing dir.
9 #
10 # Note that not all possible configuration values are present in this
11 # autogenerated file.
12 #
13 # All configuration values have a default; values that are commented out
14 # serve to show the default.
15
16 # If extensions (or modules to document with autodoc) are in another directory,
17 # add these directories to sys.path here. If the directory is relative to the
18 # documentation root, use os.path.abspath to make it absolute, like shown here.
19 #
20 # import os
21 # import sys
22 # sys.path.insert(0, os.path.abspath('.'))
23
24
25 # -- General configuration ------------------------------------------------
26
27 # If your documentation needs a minimal Sphinx version, state it here.
28 #
29 # needs_sphinx = '1.0'
30
31 # Add any Sphinx extension module names here, as strings. They can be
32 # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
33 # ones.
34 extensions = ["sphinx.ext.extlinks", "sphinx.ext.autodoc", "sphinx_copybutton"]
35
36 extlinks = {
37 "issue": ("https://github.com/simonw/datasette/issues/%s", "#%s"),
38 }
39
40 # Add any paths that contain templates here, relative to this directory.
41 templates_path = ["_templates"]
42
43 # The suffix(es) of source filenames.
44 # You can specify multiple suffix as a list of string:
45 #
46 # source_suffix = ['.rst', '.md']
47 source_suffix = ".rst"
48
49 # The master toctree document.
50 master_doc = "index"
51
52 # General information about the project.
53 project = "Datasette"
54 copyright = "2017-2022, Simon Willison"
55 author = "Simon Willison"
56
57 # Disable -- turning into –
58 smartquotes = False
59
60 # The version info for the project you're documenting, acts as replacement for
61 # |version| and |release|, also used in various other places throughout the
62 # built documents.
63 #
64 # The short X.Y version.
65 version = ""
66 # The full version, including alpha/beta/rc tags.
67 release = ""
68
69 # The language for content autogenerated by Sphinx. Refer to documentation
70 # for a list of supported languages.
71 #
72 # This is also used if you do content translation via gettext catalogs.
73 # Usually you set "language" from the command line for these cases.
74 language = "en"
75
76 # List of patterns, relative to source directory, that match files and
77 # directories to ignore when looking for source files.
78 # This patterns also effect to html_static_path and html_extra_path
79 exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
80
81 # The name of the Pygments (syntax highlighting) style to use.
82 pygments_style = "sphinx"
83
84 # If true, `todo` and `todoList` produce output, else they produce nothing.
85 todo_include_todos = False
86
87
88 # -- Options for HTML output ----------------------------------------------
89
90 # The theme to use for HTML and HTML Help pages. See the documentation for
91 # a list of builtin themes.
92 #
93 html_theme = "furo"
94
95 # Theme options are theme-specific and customize the look and feel of a theme
96 # further. For a list of options available for each theme, see the
97 # documentation.
98 html_theme_options = {
99 "sidebar_hide_name": True,
100 }
101
102 # Add any paths that contain custom static files (such as style sheets) here,
103 # relative to this directory. They are copied after the builtin static files,
104 # so a file named "default.css" will overwrite the builtin "default.css".
105 html_static_path = ["_static"]
106
107 html_logo = "datasette-logo.svg"
108
109 html_css_files = [
110 "css/custom.css",
111 ]
112 html_js_files = ["js/custom.js"]
113
114 # -- Options for HTMLHelp output ------------------------------------------
115
116 # Output file base name for HTML help builder.
117 htmlhelp_basename = "Datasettedoc"
118
119
120 # -- Options for LaTeX output ---------------------------------------------
121
122 latex_elements = {
123 # The paper size ('letterpaper' or 'a4paper').
124 #
125 # 'papersize': 'letterpaper',
126 # The font size ('10pt', '11pt' or '12pt').
127 #
128 # 'pointsize': '10pt',
129 # Additional stuff for the LaTeX preamble.
130 #
131 # 'preamble': '',
132 # Latex figure (float) alignment
133 #
134 # 'figure_align': 'htbp',
135 }
136
137 # Grouping the document tree into LaTeX files. List of tuples
138 # (source start file, target name, title,
139 # author, documentclass [howto, manual, or own class]).
140 latex_documents = [
141 (
142 master_doc,
143 "Datasette.tex",
144 "Datasette Documentation",
145 "Simon Willison",
146 "manual",
147 ),
148 ]
149
150
151 # -- Options for manual page output ---------------------------------------
152
153 # One entry per manual page. List of tuples
154 # (source start file, name, description, authors, manual section).
155 man_pages = [(master_doc, "datasette", "Datasette Documentation", [author], 1)]
156
157
158 # -- Options for Texinfo output -------------------------------------------
159
160 # Grouping the document tree into Texinfo files. List of tuples
161 # (source start file, target name, title, author,
162 # dir menu entry, description, category)
163 texinfo_documents = [
164 (
165 master_doc,
166 "Datasette",
167 "Datasette Documentation",
168 author,
169 "Datasette",
170 "One line description of project.",
171 "Miscellaneous",
172 ),
173 ]