diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 0000000..2a9e09c --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,22 @@ +# .readthedocs.yaml +# Read the Docs configuration file +# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details + +# Required +version: 2 + +# Set the version of Python and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.12" + +# Build documentation in the docs/ directory with Sphinx +sphinx: + configuration: docs/source/conf.py + +# We recommend specifying your dependencies to enable reproducible builds: +# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html +python: + install: + - requirements: docs/requirements.txt \ No newline at end of file diff --git a/.readthedocs.yml b/.readthedocs.yml deleted file mode 100644 index 55036d4..0000000 --- a/.readthedocs.yml +++ /dev/null @@ -1,20 +0,0 @@ -# .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: docs/source/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.7 - install: - - requirements: docs/requirements.txt \ No newline at end of file diff --git a/docs_source/requirements.txt b/docs_source/requirements.txt index 8bcec78..f92c274 100644 --- a/docs_source/requirements.txt +++ b/docs_source/requirements.txt @@ -10,4 +10,5 @@ recommonmark simframe sphinx sphinx-automodapi -sphinx_rtd_theme \ No newline at end of file +sphinx_rtd_theme +. \ No newline at end of file diff --git a/docs_source/source/conf.py b/docs_source/source/conf.py index c5dc9b5..d8fedbf 100644 --- a/docs_source/source/conf.py +++ b/docs_source/source/conf.py @@ -10,9 +10,9 @@ # 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 +from pathlib import Path import sys -sys.path.insert(0, os.path.abspath('../../')) +sys.path.insert(0, Path(__file__).parents[1].absolute()) # -- Project information -----------------------------------------------------