annotate gcc/jit/docs/conf.py @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 # -*- coding: utf-8 -*-
kono
parents:
diff changeset
2 #
kono
parents:
diff changeset
3 # libgccjit documentation build configuration file, created by
kono
parents:
diff changeset
4 # sphinx-quickstart on Wed Jul 30 13:39:01 2014.
kono
parents:
diff changeset
5 #
kono
parents:
diff changeset
6 # This file is execfile()d with the current directory set to its containing dir.
kono
parents:
diff changeset
7 #
kono
parents:
diff changeset
8 # Note that not all possible configuration values are present in this
kono
parents:
diff changeset
9 # autogenerated file.
kono
parents:
diff changeset
10 #
kono
parents:
diff changeset
11 # All configuration values have a default; values that are commented out
kono
parents:
diff changeset
12 # serve to show the default.
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 import sys, os
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 # If extensions (or modules to document with autodoc) are in another directory,
kono
parents:
diff changeset
17 # add these directories to sys.path here. If the directory is relative to the
kono
parents:
diff changeset
18 # documentation root, use os.path.abspath to make it absolute, like shown here.
kono
parents:
diff changeset
19 #sys.path.insert(0, os.path.abspath('.'))
kono
parents:
diff changeset
20
kono
parents:
diff changeset
21 # -- General configuration -----------------------------------------------------
kono
parents:
diff changeset
22
kono
parents:
diff changeset
23 # If your documentation needs a minimal Sphinx version, state it here.
kono
parents:
diff changeset
24 #needs_sphinx = '1.0'
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 # Add any Sphinx extension module names here, as strings. They can be extensions
kono
parents:
diff changeset
27 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
kono
parents:
diff changeset
28 extensions = []
kono
parents:
diff changeset
29
kono
parents:
diff changeset
30 # Add any paths that contain templates here, relative to this directory.
kono
parents:
diff changeset
31 templates_path = ['_templates']
kono
parents:
diff changeset
32
kono
parents:
diff changeset
33 # The suffix of source filenames.
kono
parents:
diff changeset
34 source_suffix = '.rst'
kono
parents:
diff changeset
35
kono
parents:
diff changeset
36 # The encoding of source files.
kono
parents:
diff changeset
37 #source_encoding = 'utf-8-sig'
kono
parents:
diff changeset
38
kono
parents:
diff changeset
39 # The master toctree document.
kono
parents:
diff changeset
40 master_doc = 'index'
kono
parents:
diff changeset
41
kono
parents:
diff changeset
42 # General information about the project.
kono
parents:
diff changeset
43 project = u'libgccjit'
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
44 copyright = u'2014-2020 Free Software Foundation, Inc.'
111
kono
parents:
diff changeset
45
kono
parents:
diff changeset
46 # GCC-specific: extract version information from "gcc" src subdir for
kono
parents:
diff changeset
47 # use in "version" and "release" below.
kono
parents:
diff changeset
48 def __read_file(name):
kono
parents:
diff changeset
49 gcc_srcdir = '../..'
kono
parents:
diff changeset
50 path = os.path.join(gcc_srcdir, name)
kono
parents:
diff changeset
51 if os.path.exists(path):
kono
parents:
diff changeset
52 return open(path).read().strip()
kono
parents:
diff changeset
53 else:
kono
parents:
diff changeset
54 return ''
kono
parents:
diff changeset
55 gcc_BASEVER = __read_file('BASE-VER')
kono
parents:
diff changeset
56 gcc_DEVPHASE = __read_file('DEV-PHASE')
kono
parents:
diff changeset
57 gcc_DATESTAMP = __read_file('DATESTAMP')
kono
parents:
diff changeset
58 gcc_REVISION = __read_file('REVISION')
kono
parents:
diff changeset
59
kono
parents:
diff changeset
60 # The version info for the project you're documenting, acts as replacement for
kono
parents:
diff changeset
61 # |version| and |release|, also used in various other places throughout the
kono
parents:
diff changeset
62 # built documents.
kono
parents:
diff changeset
63 #
kono
parents:
diff changeset
64 # The short X.Y version.
kono
parents:
diff changeset
65 version = gcc_BASEVER
kono
parents:
diff changeset
66 # The full version, including alpha/beta/rc tags.
kono
parents:
diff changeset
67 release = ('%s (%s %s%s)'
kono
parents:
diff changeset
68 % (gcc_BASEVER, gcc_DEVPHASE, gcc_DATESTAMP,
kono
parents:
diff changeset
69 (' %s' % gcc_REVISION) if gcc_REVISION else ''))
kono
parents:
diff changeset
70
kono
parents:
diff changeset
71 # The language for content autogenerated by Sphinx. Refer to documentation
kono
parents:
diff changeset
72 # for a list of supported languages.
kono
parents:
diff changeset
73 #language = None
kono
parents:
diff changeset
74
kono
parents:
diff changeset
75 # There are two options for replacing |today|: either, you set today to some
kono
parents:
diff changeset
76 # non-false value, then it is used:
kono
parents:
diff changeset
77 #today = ''
kono
parents:
diff changeset
78 # Else, today_fmt is used as the format for a strftime call.
kono
parents:
diff changeset
79 #today_fmt = '%B %d, %Y'
kono
parents:
diff changeset
80
kono
parents:
diff changeset
81 # List of patterns, relative to source directory, that match files and
kono
parents:
diff changeset
82 # directories to ignore when looking for source files.
kono
parents:
diff changeset
83 exclude_patterns = ['_build']
kono
parents:
diff changeset
84
kono
parents:
diff changeset
85 # The reST default role (used for this markup: `text`) to use for all documents.
kono
parents:
diff changeset
86 #default_role = None
kono
parents:
diff changeset
87
kono
parents:
diff changeset
88 # If true, '()' will be appended to :func: etc. cross-reference text.
kono
parents:
diff changeset
89 #add_function_parentheses = True
kono
parents:
diff changeset
90
kono
parents:
diff changeset
91 # If true, the current module name will be prepended to all description
kono
parents:
diff changeset
92 # unit titles (such as .. function::).
kono
parents:
diff changeset
93 #add_module_names = True
kono
parents:
diff changeset
94
kono
parents:
diff changeset
95 # If true, sectionauthor and moduleauthor directives will be shown in the
kono
parents:
diff changeset
96 # output. They are ignored by default.
kono
parents:
diff changeset
97 #show_authors = False
kono
parents:
diff changeset
98
kono
parents:
diff changeset
99 # The name of the Pygments (syntax highlighting) style to use.
kono
parents:
diff changeset
100 pygments_style = 'sphinx'
kono
parents:
diff changeset
101
kono
parents:
diff changeset
102 # A list of ignored prefixes for module index sorting.
kono
parents:
diff changeset
103 #modindex_common_prefix = []
kono
parents:
diff changeset
104
kono
parents:
diff changeset
105
kono
parents:
diff changeset
106 # -- Options for HTML output ---------------------------------------------------
kono
parents:
diff changeset
107
kono
parents:
diff changeset
108 # The theme to use for HTML and HTML Help pages. See the documentation for
kono
parents:
diff changeset
109 # a list of builtin themes.
kono
parents:
diff changeset
110 html_theme = 'sphinxdoc'
kono
parents:
diff changeset
111
kono
parents:
diff changeset
112 # Theme options are theme-specific and customize the look and feel of a theme
kono
parents:
diff changeset
113 # further. For a list of options available for each theme, see the
kono
parents:
diff changeset
114 # documentation.
kono
parents:
diff changeset
115 #html_theme_options = {}
kono
parents:
diff changeset
116
kono
parents:
diff changeset
117 # Add any paths that contain custom themes here, relative to this directory.
kono
parents:
diff changeset
118 #html_theme_path = []
kono
parents:
diff changeset
119
kono
parents:
diff changeset
120 # The name for this set of Sphinx documents. If None, it defaults to
kono
parents:
diff changeset
121 # "<project> v<release> documentation".
kono
parents:
diff changeset
122 #html_title = None
kono
parents:
diff changeset
123
kono
parents:
diff changeset
124 # A shorter title for the navigation bar. Default is the same as html_title.
kono
parents:
diff changeset
125 #html_short_title = None
kono
parents:
diff changeset
126
kono
parents:
diff changeset
127 # The name of an image file (relative to this directory) to place at the top
kono
parents:
diff changeset
128 # of the sidebar.
kono
parents:
diff changeset
129 #html_logo = None
kono
parents:
diff changeset
130
kono
parents:
diff changeset
131 # The name of an image file (within the static path) to use as favicon of the
kono
parents:
diff changeset
132 # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
kono
parents:
diff changeset
133 # pixels large.
kono
parents:
diff changeset
134 #html_favicon = None
kono
parents:
diff changeset
135
kono
parents:
diff changeset
136 # Add any paths that contain custom static files (such as style sheets) here,
kono
parents:
diff changeset
137 # relative to this directory. They are copied after the builtin static files,
kono
parents:
diff changeset
138 # so a file named "default.css" will overwrite the builtin "default.css".
kono
parents:
diff changeset
139 html_static_path = ['_static']
kono
parents:
diff changeset
140
kono
parents:
diff changeset
141 # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
kono
parents:
diff changeset
142 # using the given strftime format.
kono
parents:
diff changeset
143 #html_last_updated_fmt = '%b %d, %Y'
kono
parents:
diff changeset
144
kono
parents:
diff changeset
145 # If true, SmartyPants will be used to convert quotes and dashes to
kono
parents:
diff changeset
146 # typographically correct entities.
kono
parents:
diff changeset
147 #html_use_smartypants = True
kono
parents:
diff changeset
148
kono
parents:
diff changeset
149 # Custom sidebar templates, maps document names to template names.
kono
parents:
diff changeset
150 #html_sidebars = {}
kono
parents:
diff changeset
151
kono
parents:
diff changeset
152 # Additional templates that should be rendered to pages, maps page names to
kono
parents:
diff changeset
153 # template names.
kono
parents:
diff changeset
154 #html_additional_pages = {}
kono
parents:
diff changeset
155
kono
parents:
diff changeset
156 # If false, no module index is generated.
kono
parents:
diff changeset
157 #html_domain_indices = True
kono
parents:
diff changeset
158
kono
parents:
diff changeset
159 # If false, no index is generated.
kono
parents:
diff changeset
160 #html_use_index = True
kono
parents:
diff changeset
161
kono
parents:
diff changeset
162 # If true, the index is split into individual pages for each letter.
kono
parents:
diff changeset
163 #html_split_index = False
kono
parents:
diff changeset
164
kono
parents:
diff changeset
165 # If true, links to the reST sources are added to the pages.
kono
parents:
diff changeset
166 #html_show_sourcelink = True
kono
parents:
diff changeset
167
kono
parents:
diff changeset
168 # If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
kono
parents:
diff changeset
169 #html_show_sphinx = True
kono
parents:
diff changeset
170
kono
parents:
diff changeset
171 # If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
kono
parents:
diff changeset
172 #html_show_copyright = True
kono
parents:
diff changeset
173
kono
parents:
diff changeset
174 # If true, an OpenSearch description file will be output, and all pages will
kono
parents:
diff changeset
175 # contain a <link> tag referring to it. The value of this option must be the
kono
parents:
diff changeset
176 # base URL from which the finished HTML is served.
kono
parents:
diff changeset
177 #html_use_opensearch = ''
kono
parents:
diff changeset
178
kono
parents:
diff changeset
179 # This is the file name suffix for HTML files (e.g. ".xhtml").
kono
parents:
diff changeset
180 #html_file_suffix = None
kono
parents:
diff changeset
181
kono
parents:
diff changeset
182 # Output file base name for HTML help builder.
kono
parents:
diff changeset
183 htmlhelp_basename = 'libgccjitdoc'
kono
parents:
diff changeset
184
kono
parents:
diff changeset
185
kono
parents:
diff changeset
186 # -- Options for LaTeX output --------------------------------------------------
kono
parents:
diff changeset
187
kono
parents:
diff changeset
188 latex_elements = {
kono
parents:
diff changeset
189 # The paper size ('letterpaper' or 'a4paper').
kono
parents:
diff changeset
190 #'papersize': 'letterpaper',
kono
parents:
diff changeset
191
kono
parents:
diff changeset
192 # The font size ('10pt', '11pt' or '12pt').
kono
parents:
diff changeset
193 #'pointsize': '10pt',
kono
parents:
diff changeset
194
kono
parents:
diff changeset
195 # Additional stuff for the LaTeX preamble.
kono
parents:
diff changeset
196 #'preamble': '',
kono
parents:
diff changeset
197 }
kono
parents:
diff changeset
198
kono
parents:
diff changeset
199 # Grouping the document tree into LaTeX files. List of tuples
kono
parents:
diff changeset
200 # (source start file, target name, title, author, documentclass [howto/manual]).
kono
parents:
diff changeset
201 latex_documents = [
kono
parents:
diff changeset
202 ('index', 'libgccjit.tex', u'libgccjit Documentation',
kono
parents:
diff changeset
203 u'David Malcolm', 'manual'),
kono
parents:
diff changeset
204 ]
kono
parents:
diff changeset
205
kono
parents:
diff changeset
206 # The name of an image file (relative to this directory) to place at the top of
kono
parents:
diff changeset
207 # the title page.
kono
parents:
diff changeset
208 #latex_logo = None
kono
parents:
diff changeset
209
kono
parents:
diff changeset
210 # For "manual" documents, if this is true, then toplevel headings are parts,
kono
parents:
diff changeset
211 # not chapters.
kono
parents:
diff changeset
212 #latex_use_parts = False
kono
parents:
diff changeset
213
kono
parents:
diff changeset
214 # If true, show page references after internal links.
kono
parents:
diff changeset
215 #latex_show_pagerefs = False
kono
parents:
diff changeset
216
kono
parents:
diff changeset
217 # If true, show URL addresses after external links.
kono
parents:
diff changeset
218 #latex_show_urls = False
kono
parents:
diff changeset
219
kono
parents:
diff changeset
220 # Documents to append as an appendix to all manuals.
kono
parents:
diff changeset
221 #latex_appendices = []
kono
parents:
diff changeset
222
kono
parents:
diff changeset
223 # If false, no module index is generated.
kono
parents:
diff changeset
224 #latex_domain_indices = True
kono
parents:
diff changeset
225
kono
parents:
diff changeset
226
kono
parents:
diff changeset
227 # -- Options for manual page output --------------------------------------------
kono
parents:
diff changeset
228
kono
parents:
diff changeset
229 # One entry per manual page. List of tuples
kono
parents:
diff changeset
230 # (source start file, name, description, authors, manual section).
kono
parents:
diff changeset
231 man_pages = [
kono
parents:
diff changeset
232 ('index', 'libgccjit', u'libgccjit Documentation',
kono
parents:
diff changeset
233 [u'David Malcolm'], 1)
kono
parents:
diff changeset
234 ]
kono
parents:
diff changeset
235
kono
parents:
diff changeset
236 # If true, show URL addresses after external links.
kono
parents:
diff changeset
237 #man_show_urls = False
kono
parents:
diff changeset
238
kono
parents:
diff changeset
239
kono
parents:
diff changeset
240 # -- Options for Texinfo output ------------------------------------------------
kono
parents:
diff changeset
241
kono
parents:
diff changeset
242 # Grouping the document tree into Texinfo files. List of tuples
kono
parents:
diff changeset
243 # (source start file, target name, title, author,
kono
parents:
diff changeset
244 # dir menu entry, description, category)
kono
parents:
diff changeset
245 texinfo_documents = [
kono
parents:
diff changeset
246 ('index', 'libgccjit', u'libgccjit Documentation',
kono
parents:
diff changeset
247 u'David Malcolm', 'libgccjit', 'One line description of project.',
kono
parents:
diff changeset
248 'Miscellaneous'),
kono
parents:
diff changeset
249 ]
kono
parents:
diff changeset
250
kono
parents:
diff changeset
251 # Documents to append as an appendix to all manuals.
kono
parents:
diff changeset
252 #texinfo_appendices = []
kono
parents:
diff changeset
253
kono
parents:
diff changeset
254 # If false, no module index is generated.
kono
parents:
diff changeset
255 #texinfo_domain_indices = True
kono
parents:
diff changeset
256
kono
parents:
diff changeset
257 # How to display URL addresses: 'footnote', 'no', or 'inline'.
kono
parents:
diff changeset
258 #texinfo_show_urls = 'footnote'