Skip to content

Commit 8c126d3

Browse files
authored
Merge pull request #93 from qutech/fix_readthedocs_config
Fix RTD build
2 parents 423fbc6 + 46552c3 commit 8c126d3

17 files changed

+38064
-35978
lines changed

.readthedocs.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
version: 2
22

33
build:
4-
image: stable
5-
python: "3.10"
4+
os: ubuntu-22.04
5+
tools:
6+
python: mambaforge-latest
67

78
conda:
89
environment: environment.yml
910

1011
python:
11-
system_packages: true
1212
install:
1313
- method: pip
1414
path: .
@@ -17,3 +17,7 @@ python:
1717
- plotting
1818
- bloch_sphere_visualization
1919
- fancy_progressbar
20+
21+
sphinx:
22+
builder: html
23+
configuration: doc/source/conf.py

doc/source/conf.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
# add these directories to sys.path here. If the directory is relative to the
1313
# documentation root, use os.path.abspath to make it absolute, like shown here.
1414
#
15-
import os
16-
import sys
17-
sys.path.insert(0, os.path.abspath('.'))
18-
#sys.path.insert(1, os.path.abspath('../../'))
19-
2015
import filter_functions
2116

2217
# -- Project information -----------------------------------------------------
@@ -93,7 +88,7 @@
9388
#
9489
# This is also used if you do content translation via gettext catalogs.
9590
# Usually you set "language" from the command line for these cases.
96-
language = None
91+
language = 'en'
9792

9893
# List of patterns, relative to source directory, that match files and
9994
# directories to ignore when looking for source files.
@@ -277,9 +272,9 @@
277272
intersphinx_mapping = {
278273
'python': ('https://docs.python.org/3/', None),
279274
'numpy': ('https://numpy.org/doc/stable/', None),
280-
'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None),
281-
'matplotlib': ('https://matplotlib.org/', None),
282-
'qutip': ('http://qutip.org/docs/latest/', None)
275+
'scipy': ('https://docs.scipy.org/doc/scipy/', None),
276+
'matplotlib': ('https://matplotlib.org/stable/', None),
277+
'qutip': ('https://qutip.readthedocs.io/en/latest/', None)
283278
}
284279

285280
# -- Options for todo extension ----------------------------------------------

0 commit comments

Comments
 (0)