Skip to content

Commit fbde822

Browse files
committed
Update to current configuration and report current version 4
1 parent d2a6dbc commit fbde822

File tree

5 files changed

+151
-6
lines changed

5 files changed

+151
-6
lines changed

.readthedocs.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
# Required
5+
version: 2
6+
7+
# Set the OS, Python version and other tools you might need
8+
build:
9+
os: ubuntu-22.04
10+
tools:
11+
python: "3.12"
12+
# You can also specify other tool versions:
13+
# nodejs: "20"
14+
# rust: "1.70"
15+
# golang: "1.20"
16+
17+
# Build documentation in the "docs/" directory with Sphinx
18+
sphinx:
19+
configuration: ./conf.py
20+
# You can configure Sphinx to use a different builder, for instance use the dirhtml builder for simpler URLs
21+
# builder: "dirhtml"
22+
# Fail on all warnings to avoid broken references
23+
# fail_on_warning: true
24+
25+
# Optionally build your docs in additional formats such as PDF and ePub
26+
formats:
27+
- pdf
28+
- epub
29+
30+
# Optional but recommended, declare the Python requirements required
31+
# to build your documentation
32+
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
33+
python:
34+
install:
35+
- requirements: requirements.txt

_static/custom.css

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,38 @@
22
color: inherit;
33
font-size: 85%;
44
border: none;
5-
background: #F0F0F0;
6-
padding: 2px 3px 1px;
5+
background: #E8E8E8;
6+
padding: 2px 3px;
7+
border-radius: .33em;
8+
}
9+
10+
.toctree-l1 > ul {
11+
margin-top: 3px ! important;
12+
}
13+
14+
.toctree-l2 > ul {
15+
margin-top: 0 ! important;
16+
margin-bottom: 3px ! important;
17+
}
18+
19+
ul.simple > li {
20+
margin-bottom: 10px;
21+
}
22+
23+
div.tight > ul.simple > li {
24+
margin-bottom: 0;
25+
}
26+
27+
kbd {
28+
display: inline-block;
29+
padding: 3px 5px ! important;
30+
font-size: 80% ! important;
31+
line-height: 10px ! important;
32+
color: #444d56 ! important;
33+
vertical-align: middle ! important;
34+
background-color: #fafbfc ! important;
35+
border: solid 1.5px #c6cbd1 ! important;
36+
border-bottom-color: #959da5 ! important;
37+
border-radius: 3px ! important;
38+
box-shadow: inset -.5px -1px 0 #959da5 ! important;
739
}

conf.py

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,17 @@
1313

1414
import sys, os
1515

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+
1627
# If extensions (or modules to document with autodoc) are in another directory,
1728
# add these directories to sys.path here. If the directory is relative to the
1829
# documentation root, use os.path.abspath to make it absolute, like shown here.
@@ -28,7 +39,7 @@
2839
#templates_path = ['_templates']
2940

3041
# The suffix of source filenames.
31-
source_suffix = '.rst'
42+
source_suffix = {'.rst': 'restructuredtext'}
3243

3344
# The encoding of source files.
3445
#source_encoding = 'utf-8'
@@ -38,7 +49,7 @@
3849

3950
# General information about the project.
4051
project = u'MathJax'
41-
copyright = u'2019 The MathJax Consortium'
52+
copyright = u'2019-2025 MathJax, Inc.'
4253

4354
# The version info for the project you're documenting, acts as replacement for
4455
# |version| and |release|, also used in various other places throughout the
@@ -101,6 +112,16 @@
101112
# A list of ignored prefixes for module index sorting.
102113
#modindex_common_prefix = []
103114

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+
#
104125

105126
# -- Options for HTML output ---------------------------------------------------
106127

@@ -112,7 +133,7 @@
112133
# DPVC: Add cusotm css overrides
113134
#
114135
def setup(app):
115-
app.add_stylesheet( "custom.css" )
136+
app.add_css_file( "custom.css" )
116137
#
117138
# /DPVC
118139
#
@@ -199,7 +220,7 @@ def setup(app):
199220
# (source start file, target name, title, author, documentclass [howto/manual]).
200221
latex_documents = [
201222
('index', 'MathJax.tex', u'MathJax Documentation',
202-
u'Davide Cervone, Volker Sorge, Peter Krautzberger, Robert Miner', 'manual'),
223+
u'Davide Cervone, Volker Sorge', 'manual'),
203224
]
204225

205226
# The name of an image file (relative to this directory) to place at the top of

requirements.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sphinx_rtd_theme

requirements.txt

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.12
3+
# by the following command:
4+
#
5+
# pip-compile --strip-extras requirements.in
6+
#
7+
alabaster==0.7.16
8+
# via sphinx
9+
babel==2.14.0
10+
# via sphinx
11+
certifi==2023.11.17
12+
# via requests
13+
charset-normalizer==3.3.2
14+
# via requests
15+
docutils==0.20.1
16+
# via
17+
# sphinx
18+
# sphinx-rtd-theme
19+
idna==3.6
20+
# via requests
21+
imagesize==1.4.1
22+
# via sphinx
23+
jinja2==3.1.3
24+
# via sphinx
25+
markupsafe==2.1.3
26+
# via jinja2
27+
packaging==23.2
28+
# via sphinx
29+
pygments==2.17.2
30+
# via sphinx
31+
requests==2.31.0
32+
# via sphinx
33+
snowballstemmer==2.2.0
34+
# via sphinx
35+
sphinx==7.2.6
36+
# via
37+
# sphinx-rtd-theme
38+
# sphinxcontrib-jquery
39+
sphinx-rtd-theme==2.0.0
40+
# via -r requirements.in
41+
sphinxcontrib-applehelp==1.0.8
42+
# via sphinx
43+
sphinxcontrib-devhelp==1.0.6
44+
# via sphinx
45+
sphinxcontrib-htmlhelp==2.0.5
46+
# via sphinx
47+
sphinxcontrib-jquery==4.1
48+
# via sphinx-rtd-theme
49+
sphinxcontrib-jsmath==1.0.1
50+
# via sphinx
51+
sphinxcontrib-qthelp==1.0.7
52+
# via sphinx
53+
sphinxcontrib-serializinghtml==1.1.10
54+
# via sphinx
55+
urllib3==2.1.0
56+
# via requests

0 commit comments

Comments
 (0)