Skip to content

Commit

Permalink
doc: Add readthedocs config
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasblixt committed Apr 15, 2023
1 parent 7a617b5 commit dd1539a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
20 changes: 20 additions & 0 deletions .readthedocs.yml
@@ -0,0 +1,20 @@
# .readthedocs.yml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

# Build documentation in the docs/ directory with Sphinx
sphinx:
configuration: doc/conf.py

# Optionally build your docs in additional formats such as PDF
formats:
- pdf

# Optionally set the version of Python and requirements required to build your docs
python:
version: 3.8
install:
- requirements: doc/requirements.txt
3 changes: 0 additions & 3 deletions doc/source/conf.py → doc/conf.py
Expand Up @@ -35,9 +35,6 @@

# -- General configuration ---------------------------------------------------

read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True'

#if read_the_docs_build:
subprocess.call('doxygen ../doxygen.cfg', shell=True)

# If extensions (or modules to document with autodoc) are in another directory,
Expand Down
4 changes: 4 additions & 0 deletions doc/requirements.txt
@@ -0,0 +1,4 @@
breathe
sphinx_rtd_theme
semver
sphinxcontrib-plantuml

0 comments on commit dd1539a

Please sign in to comment.