|
1 | 1 | # -*- coding: utf-8 -*-
|
2 |
| -# |
3 |
| -# orc-rt documentation build configuration file. |
| 2 | +# Orc-Rt documentation build configuration file. |
4 | 3 | #
|
5 | 4 | # This file is execfile()d with the current directory set to its containing dir.
|
6 | 5 | #
|
|
10 | 9 | # All configuration values have a default; values that are commented out
|
11 | 10 | # serve to show the default.
|
12 | 11 |
|
13 |
| -import sys, os |
14 | 12 | from datetime import date
|
15 |
| - |
16 | 13 | # If extensions (or modules to document with autodoc) are in another directory,
|
17 | 14 | # add these directories to sys.path here. If the directory is relative to the
|
18 | 15 | # documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
22 | 19 |
|
23 | 20 | # If your documentation needs a minimal Sphinx version, state it here.
|
24 | 21 | # needs_sphinx = '1.0'
|
25 |
| - |
26 | 22 | # Add any Sphinx extension module names here, as strings. They can be extensions
|
27 | 23 | # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
28 |
| -extensions = ["sphinx.ext.intersphinx", "sphinx.ext.todo"] |
| 24 | +extensions = [ |
| 25 | + "sphinx.ext.todo", |
| 26 | + "sphinx.ext.mathjax", |
| 27 | + "sphinx.ext.intersphinx", |
| 28 | + "sphinx.ext.autodoc", |
| 29 | +] |
| 30 | + |
| 31 | +# When building man pages, we do not use the markdown pages, |
| 32 | +# So, we can continue without the myst_parser dependencies. |
| 33 | +# Doing so reduces dependencies of some packaged llvm distributions. |
| 34 | +try: |
| 35 | + import myst_parser |
| 36 | + |
| 37 | + extensions.append("myst_parser") |
| 38 | +except ImportError: |
| 39 | + if not tags.has("builder-man"): |
| 40 | + raise |
| 41 | + |
29 | 42 |
|
30 | 43 | # Add any paths that contain templates here, relative to this directory.
|
31 | 44 | templates_path = ["_templates"]
|
| 45 | +myst_heading_anchors = 6 |
32 | 46 |
|
33 |
| -# The suffix of source filenames. |
34 |
| -source_suffix = ".rst" |
| 47 | +import sphinx |
35 | 48 |
|
36 | 49 | # The encoding of source files.
|
37 | 50 | # source_encoding = 'utf-8-sig'
|
|
40 | 53 | master_doc = "index"
|
41 | 54 |
|
42 | 55 | # General information about the project.
|
43 |
| -project = "orc-rt" |
44 |
| -copyright = "2021-%d, LLVM Project" % date.today().year |
| 56 | +project = "Orc-Rt" |
| 57 | +copyright = "2017-%d, The Orc-Rt Team" % date.today().year |
45 | 58 |
|
46 | 59 | # The version info for the project you're documenting, acts as replacement for
|
47 | 60 | # |version| and |release|, also used in various other places throughout the
|
48 |
| -# built documents. |
| 61 | +# built documents. These are currently set to zero because we don't use them. |
| 62 | +# Should somebody consider in the future to change them, they need to be updated |
| 63 | +# everytime a new release comes out. |
49 | 64 | #
|
50 |
| -# The short X.Y version. |
51 |
| -version = "17.0" |
| 65 | +# The short version. |
| 66 | +# version = '0' |
52 | 67 | # The full version, including alpha/beta/rc tags.
|
53 |
| -release = "17.0" |
| 68 | +# release = '0' |
54 | 69 |
|
55 | 70 | # The language for content autogenerated by Sphinx. Refer to documentation
|
56 | 71 | # for a list of supported languages.
|
|
60 | 75 | # non-false value, then it is used:
|
61 | 76 | # today = ''
|
62 | 77 | # Else, today_fmt is used as the format for a strftime call.
|
63 |
| -today_fmt = "%Y-%m-%d" |
| 78 | +# today_fmt = '%B %d, %Y' |
64 | 79 |
|
65 | 80 | # List of patterns, relative to source directory, that match files and
|
66 | 81 | # directories to ignore when looking for source files.
|
67 |
| -exclude_patterns = ["_build"] |
| 82 | +exclude_patterns = ["_build", "analyzer", "FIR/*"] |
68 | 83 |
|
69 | 84 | # The reST default role (used for this markup: `text`) to use for all documents.
|
70 | 85 | # default_role = None
|
|
78 | 93 |
|
79 | 94 | # If true, sectionauthor and moduleauthor directives will be shown in the
|
80 | 95 | # output. They are ignored by default.
|
81 |
| -show_authors = True |
| 96 | +# show_authors = False |
82 | 97 |
|
83 | 98 | # The name of the Pygments (syntax highlighting) style to use.
|
84 | 99 | pygments_style = "friendly"
|
|
103 | 118 |
|
104 | 119 | # The name for this set of Sphinx documents. If None, it defaults to
|
105 | 120 | # "<project> v<release> documentation".
|
106 |
| -# html_title = None |
| 121 | +html_title = "ORC Runtime" |
107 | 122 |
|
108 | 123 | # A shorter title for the navigation bar. Default is the same as html_title.
|
109 | 124 | # html_short_title = None
|
|
120 | 135 | # Add any paths that contain custom static files (such as style sheets) here,
|
121 | 136 | # relative to this directory. They are copied after the builtin static files,
|
122 | 137 | # so a file named "default.css" will overwrite the builtin "default.css".
|
123 |
| -html_static_path = [] |
| 138 | +# html_static_path = [] |
124 | 139 |
|
125 | 140 | # If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
126 | 141 | # using the given strftime format.
|
127 |
| -# html_last_updated_fmt = '%b %d, %Y' |
| 142 | +html_last_updated_fmt = "%b %d, %Y" |
128 | 143 |
|
129 | 144 | # If true, SmartyPants will be used to convert quotes and dashes to
|
130 | 145 | # typographically correct entities.
|
|
166 | 181 | # Output file base name for HTML help builder.
|
167 | 182 | htmlhelp_basename = "orc-rt-doc"
|
168 | 183 |
|
| 184 | +# If true, the reST sources are included in the HTML build as |
| 185 | +# _sources/name. The default is True. |
| 186 | +html_copy_source = False |
169 | 187 |
|
170 | 188 | # -- Options for LaTeX output --------------------------------------------------
|
171 | 189 |
|
|
181 | 199 | # Grouping the document tree into LaTeX files. List of tuples
|
182 | 200 | # (source start file, target name, title, author, documentclass [howto/manual]).
|
183 | 201 | latex_documents = [
|
184 |
| - ("contents", "orc-rt.tex", "orc-rt Documentation", "LLVM project", "manual"), |
| 202 | + ("Overview", "Orc-Rt.tex", "orc-rt Documentation", "The orc-rt Team", |
| 203 | + "manual"), |
185 | 204 | ]
|
186 | 205 |
|
187 | 206 | # The name of an image file (relative to this directory) to place at the top of
|
|
209 | 228 |
|
210 | 229 | # One entry per manual page. List of tuples
|
211 | 230 | # (source start file, name, description, authors, manual section).
|
212 |
| -man_pages = [("contents", "orc-rt", "orc-rt Documentation", ["LLVM project"], 1)] |
| 231 | +man_pages = [] |
213 | 232 |
|
214 | 233 | # If true, show URL addresses after external links.
|
215 | 234 | # man_show_urls = False
|
|
222 | 241 | # dir menu entry, description, category)
|
223 | 242 | texinfo_documents = [
|
224 | 243 | (
|
225 |
| - "contents", |
226 |
| - "orc-rt", |
227 |
| - "orc-rt Documentation", |
228 |
| - "LLVM project", |
229 |
| - "orc-rt", |
230 |
| - "LLVM ORC Runtime", |
231 |
| - "Miscellaneous", |
| 244 | + "Overview", |
232 | 245 | ),
|
233 | 246 | ]
|
234 | 247 |
|
|
240 | 253 |
|
241 | 254 | # How to display URL addresses: 'footnote', 'no', or 'inline'.
|
242 | 255 | # texinfo_show_urls = 'footnote'
|
243 |
| - |
244 |
| - |
245 |
| -# FIXME: Define intersphinx configuration. |
246 |
| -intersphinx_mapping = {} |
247 |
| - |
248 |
| - |
249 |
| -# -- Options for extensions ---------------------------------------------------- |
250 |
| - |
251 |
| -# Enable this if you want TODOs to show up in the generated documentation. |
252 |
| -todo_include_todos = True |
|
0 commit comments