Skip to content

Commit

Permalink
trying to fix rtd
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Papior <[email protected]>
  • Loading branch information
zerothi committed Aug 10, 2024
1 parent 686ef03 commit 98e80de
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
4 changes: 2 additions & 2 deletions docs/api/basic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@ In particular `oplist` is useful when calculating averages in Brillouin zones (s
.. autosummary::
:toctree: generated/

~sisl.oplist
~sisl.utils.PropertyDict
oplist
~utils.PropertyDict
13 changes: 6 additions & 7 deletions docs/api/io/generic.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@ Generic files
.. autosummary::
:toctree: generated/

~sisl.io.tableSile
~sisl.io.xyzSile
~sisl.io.pdbSile
~sisl.io.cubeSile
~sisl.io.moldenSile
~sisl.io.xsfSile

tableSile
xyzSile
pdbSile
cubeSile
moldenSile
xsfSile
12 changes: 6 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,12 @@
# 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.
# make sure the source version is preferred (#3567)
_root = pathlib.Path(__file__).absolute().parent.parent / "src"
_root = pathlib.Path(__file__).absolute().parent.parent
_src = _root / "src"

# If building this on RTD, mock out fortran sources
on_rtd = os.environ.get("READTHEDOCS", "false").lower() == "true"
if on_rtd:
os.environ["SISL_NUM_PROCS"] = "1"
os.environ["SISL_VIZ_NUM_PROCS"] = "1"

# sys.path.insert(0, str(_root))

# Print standard information about executable and path...
print("python exec:", sys.executable)
Expand Down Expand Up @@ -172,7 +169,10 @@

# If building this on RTD, mock out fortran sources
if on_rtd:
nbsphinx_allow_errors = True
nbsphinx_allow_errors = False
os.environ["SISL_NUM_PROCS"] = "1"
os.environ["SISL_VIZ_NUM_PROCS"] = "1"
os.environ["SISL_FILES_TESTS"] = str(_root / "files" / "tests")
else:
nbsphinx_allow_errors = False

Expand Down

0 comments on commit 98e80de

Please sign in to comment.