|
13 | 13 |
|
14 | 14 | import sys, os
|
15 | 15 |
|
| 16 | +### DPVC -- from https://about.readthedocs.com/blog/2024/07/addons-by-default/ |
| 17 | +# Define the canonical URL if you are using a custom domain on Read the Docs |
| 18 | +html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "") |
| 19 | + |
| 20 | +# Tell Jinja2 templates the build is running on Read the Docs |
| 21 | +if os.environ.get("READTHEDOCS", "") == "True": |
| 22 | + if "html_context" not in globals(): |
| 23 | + html_context = {} |
| 24 | + html_context["READTHEDOCS"] = True |
| 25 | +### /DPVC |
| 26 | + |
16 | 27 | # If extensions (or modules to document with autodoc) are in another directory,
|
17 | 28 | # add these directories to sys.path here. If the directory is relative to the
|
18 | 29 | # documentation root, use os.path.abspath to make it absolute, like shown here.
|
|
28 | 39 | #templates_path = ['_templates']
|
29 | 40 |
|
30 | 41 | # The suffix of source filenames.
|
31 |
| -source_suffix = '.rst' |
| 42 | +source_suffix = {'.rst': 'restructuredtext'} |
32 | 43 |
|
33 | 44 | # The encoding of source files.
|
34 | 45 | #source_encoding = 'utf-8'
|
|
38 | 49 |
|
39 | 50 | # General information about the project.
|
40 | 51 | project = u'MathJax'
|
41 |
| -copyright = u'2019 The MathJax Consortium' |
| 52 | +copyright = u'2019-2025 MathJax, Inc.' |
42 | 53 |
|
43 | 54 | # The version info for the project you're documenting, acts as replacement for
|
44 | 55 | # |version| and |release|, also used in various other places throughout the
|
|
101 | 112 | # A list of ignored prefixes for module index sorting.
|
102 | 113 | #modindex_common_prefix = []
|
103 | 114 |
|
| 115 | +# |
| 116 | +# DPVC: Add warning about new version |
| 117 | +# |
| 118 | +rst_prolog = """.. attention:: |
| 119 | + `Version 4 <https://docs.mathjax.org/en/latest/index.html>`_ is now the current version of MathJax. |
| 120 | + This document is for version 2.7. |
| 121 | +""" |
| 122 | +# |
| 123 | +# /DPVC |
| 124 | +# |
104 | 125 |
|
105 | 126 | # -- Options for HTML output ---------------------------------------------------
|
106 | 127 |
|
|
112 | 133 | # DPVC: Add cusotm css overrides
|
113 | 134 | #
|
114 | 135 | def setup(app):
|
115 |
| - app.add_stylesheet( "custom.css" ) |
| 136 | + app.add_css_file( "custom.css" ) |
116 | 137 | #
|
117 | 138 | # /DPVC
|
118 | 139 | #
|
@@ -199,7 +220,7 @@ def setup(app):
|
199 | 220 | # (source start file, target name, title, author, documentclass [howto/manual]).
|
200 | 221 | latex_documents = [
|
201 | 222 | ('index', 'MathJax.tex', u'MathJax Documentation',
|
202 |
| - u'Davide Cervone, Volker Sorge, Peter Krautzberger, Robert Miner', 'manual'), |
| 223 | + u'Davide Cervone, Volker Sorge', 'manual'), |
203 | 224 | ]
|
204 | 225 |
|
205 | 226 | # The name of an image file (relative to this directory) to place at the top of
|
|
0 commit comments