Skip to content

Commit 38c23dd

Browse files
committed
- update doc config
1 parent 1b06319 commit 38c23dd

File tree

3 files changed

+40
-3
lines changed

3 files changed

+40
-3
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.11"
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: doc/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: doc/requirements.txt

doc/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
'recommonmark',
4141
'sphinxcontrib.bibtex'
4242
]
43+
bibtex_bibfiles = ['bibliography.bib']
4344

4445
# Setup the breathe extension
4546
breathe_projects = {
@@ -89,9 +90,9 @@
8990
# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
9091
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
9192

93+
html_theme = 'sphinx_rtd_theme'
9294
if not on_rtd: # only import and set the theme if we're building docs locally
9395
import sphinx_rtd_theme
94-
html_theme = 'sphinx_rtd_theme'
9596
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
9697

9798
# Add any paths that contain custom static files (such as style sheets) here,

doc/requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
exhale
22
recommonmark
3-
sphinx==4.2.0
4-
sphinxcontrib.bibtex < 2.0.0
3+
Sphinx==5.2.3
4+
sphinx_rtd_theme==1.3.0
5+
sphinxcontrib.bibtex==2.6.1
56
docutils==0.16

0 commit comments

Comments
 (0)