-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconf.py
156 lines (132 loc) · 5.07 KB
/
conf.py
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# Copyright © 2020 Hartmut Goebel <[email protected]>
#
# This file is part of PyInstaller Hook Sample.
#
# PyInstaller Hook Sample is free software; you can redistribute it
# and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3 of
# the License, or (at your option) any later version.
#
# PyInstaller Hook Sample is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with the PyInstaller Hook Sample. If not, see
# <http://www.gnu.org/licenses/>.
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
# -- Path setup --------------------------------------------------------------
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import sys, os
import sphinx_rtd_theme
import CodeChat.CodeToRest
# sys.path.insert(0, os.path.abspath('.'))
# -- Project information -----------------------------------------------------
project = 'PyInstaller Hooksample'
copyright = '2020, the PyInstaller Development Team'
author = 'PyInstaller Development Team'
# Short version
version = "0.0"
# The full version, including alpha/beta/rc tags
release = '0.0'
# -- General configuration ---------------------------------------------------
# A string of reStructuredText that will be included at the end of every source
# file that is read.
rst_epilog = (
# Provide a convenient way to refer to a source file's name.
"""
.. |docname| replace:: :docname:`name`
""")
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"CodeChat.CodeToRestSphinx",
"sphinx_rtd_theme"
]
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
#
# **Important:** Do **NOT** add ``CodeChat.css`` to this list; this will
# instruct Sphinx not to copy it to the ``_static`` directory, where it
# is needed to properly lay out CodeChat output.
exclude_patterns = [
# Misc files.
"Thumbs.db",
".DS_Store",
"_build",
"README.rst",
"build",
"dist",
"_venv",
".tox",
".pytest_cache",
"**/.pytest_cache",
"**/*.egg-info",
# editor artifacts
"sphinx-enki-info.txt",
# A file used by the program, but not for documentation.
"src/pyi_hooksample/message.txt",
#
'conf.py',
'.gitignore',
'*requirements.txt',
'Makefile',
'setup.py',
'*.bat',
'readthedocs.yml',
'MANIFEST.in',
]
# The suffix of source filenames.
source_suffix = ".rst"
# master toctree document.
master_doc = "index"
# `keep_warnings: If true, keep warnings as "system message"
# paragraphs in the built documents. **CodeChat note**: This should
# always be True; doing so places warnings next to the offending text
# in the web view, making them easy to find and fix.
keep_warnings = True
# -- Options for CodeChat processing -----------------------------------------
# `CodeChat_lexer_for_glob` is a dict of {glob_, lexer_alias}, which
# uses lexer_alias (e.g. a pygments lexer's `short name) to analyze
# any file which matches the given glob-style pattern.
CodeChat_lexer_for_glob = {
# CSS files are auto-detected as a CSS + Lasso file by Pygments,
# causing it to display incorrectly. Define them as CSS only.
"*.css": "CSS",
# These files use ``#`` as a comment. So does Perl. Ugly...
"MANIFEST.in": "Perl",
".gitignore": "Perl",
"*.cfg": "Perl",
"*.dat": "Perl",
"*.txt": "Perl",
}
# -- Options for HTML output -------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "sphinx_rtd_theme"
# `html_static_path <http://sphinx-doc.org/config.html#confval-html_static_path>`_:
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files, so
# a file named ``default.css`` will overwrite the builtin ``default.css``.
# **CodeChat note:** Include the path to CodeChat's static files.
html_static_path = CodeChat.CodeToRest.html_static_path()
# Fix up styles for the ReadTheDocs theme.
html_css_files = ['CodeChat_sphinx_rtd_theme.css']
# Insert a 'Last updated on:' timestamp at every page bottom.
html_last_updated_fmt = "%Y-%m-%d"
html_copy_source = False
html_show_sourcelink = False