Skip to content

Commit ec2f8f3

Browse files
committed
tweaks in .readthedocs.yaml
1 parent 6e20c1c commit ec2f8f3

3 files changed

Lines changed: 35 additions & 6 deletions

File tree

.readthedocs.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,31 @@
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file
3+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
4+
5+
# Required
16
version: 2
27

8+
# Set the version of Python and other tools you might need
9+
build:
10+
os: ubuntu-22.04
11+
tools:
12+
python: "3.9"
13+
# You can also specify other tool versions:
14+
# nodejs: "16"
15+
# rust: "1.55"
16+
# golang: "1.17"
17+
18+
# Build documentation in the doc/ directory with Sphinx
19+
sphinx:
20+
configuration: doc/conf.py
21+
22+
# If using Sphinx, optionally build your docs in additional formats such as PDF
23+
# formats:
24+
# - pdf
25+
26+
# Optionally declare the Python requirements required to build your docs
327
python:
428
install:
5-
- requirements: doc/requirements.txt
6-
- method: pip
7-
path: classic
29+
- requirements: doc/requirements.txt
30+
- method: pip
31+
path: classic

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# Add any Sphinx extension module names here, as strings. They can be
3939
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4040
# ones.
41-
extensions = ['sphinx.ext.githubpages']
41+
extensions = ['myst_parser', 'sphinx.ext.githubpages']
4242

4343
# Add any paths that contain templates here, relative to this directory.
4444
templates_path = ['_templates']
@@ -78,7 +78,7 @@
7878
#
7979
# This is also used if you do content translation via gettext catalogs.
8080
# Usually you set "language" from the command line for these cases.
81-
language = None
81+
language = 'en'
8282

8383
# List of patterns, relative to source directory, that match files and
8484
# directories to ignore when looking for source files.

doc/requirements.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
recommonmark
1+
# readthedocs seems to have an implicit pinning
2+
# of sphinx to 1.8 for so-called old projects
3+
# i.e. created before oct 2020
4+
sphinx==5.3
5+
myst-parser
6+
# recommonmark
27
pygments>=2.4.1

0 commit comments

Comments
 (0)