Skip to content

Commit

Permalink
Merge pull request #93 from qutech/fix_readthedocs_config
Browse files Browse the repository at this point in the history
Fix RTD build
  • Loading branch information
thangleiter authored May 14, 2024
2 parents 423fbc6 + 46552c3 commit 8c126d3
Show file tree
Hide file tree
Showing 17 changed files with 38,064 additions and 35,978 deletions.
10 changes: 7 additions & 3 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: 2

build:
image: stable
python: "3.10"
os: ubuntu-22.04
tools:
python: mambaforge-latest

conda:
environment: environment.yml

python:
system_packages: true
install:
- method: pip
path: .
Expand All @@ -17,3 +17,7 @@ python:
- plotting
- bloch_sphere_visualization
- fancy_progressbar

sphinx:
builder: html
configuration: doc/source/conf.py
13 changes: 4 additions & 9 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
import sys
sys.path.insert(0, os.path.abspath('.'))
#sys.path.insert(1, os.path.abspath('../../'))

import filter_functions

# -- Project information -----------------------------------------------------
Expand Down Expand Up @@ -93,7 +88,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = 'en'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand Down Expand Up @@ -277,9 +272,9 @@
intersphinx_mapping = {
'python': ('https://docs.python.org/3/', None),
'numpy': ('https://numpy.org/doc/stable/', None),
'scipy': ('https://docs.scipy.org/doc/scipy/reference/', None),
'matplotlib': ('https://matplotlib.org/', None),
'qutip': ('http://qutip.org/docs/latest/', None)
'scipy': ('https://docs.scipy.org/doc/scipy/', None),
'matplotlib': ('https://matplotlib.org/stable/', None),
'qutip': ('https://qutip.readthedocs.io/en/latest/', None)
}

# -- Options for todo extension ----------------------------------------------
Expand Down
Loading

0 comments on commit 8c126d3

Please sign in to comment.