Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Trying to get the docs built without the _bindings module
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 20, 2023
1 parent 91ba74f commit 222a4fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@

# Disable import of swiftest._bindings so that we don't have to build the Fortran code when building the docs
autodoc_mock_imports = ['swiftest._bindings']
# Check if we are building on Read the Docs
on_rtd = os.environ.get('READTHEDOCS') == 'True'

import swiftest

if not on_rtd:
import swiftest

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
Expand Down

0 comments on commit 222a4fe

Please sign in to comment.