diff --git a/.readthedocs.yaml b/.readthedocs.yaml new file mode 100644 index 000000000..9c3cc68f7 --- /dev/null +++ b/.readthedocs.yaml @@ -0,0 +1,14 @@ +version: 2 + +build: + os: "ubuntu-20.04" + tools: + python: "3.9" + +sphinx: + configuration: docs/conf.py + +python: + install: + - requirements: docs/requirements.txt + diff --git a/docs/docs_sphinx/Doxyfile.in b/docs/Doxyfile.in similarity index 99% rename from docs/docs_sphinx/Doxyfile.in rename to docs/Doxyfile.in index 508613858..75397adf1 100644 --- a/docs/docs_sphinx/Doxyfile.in +++ b/docs/Doxyfile.in @@ -829,7 +829,7 @@ WARN_LOGFILE = # spaces. See also FILE_PATTERNS and EXTENSION_MAPPING # Note: If this tag is empty the current directory is searched. -INPUT = ../../include +INPUT = ../include # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses diff --git a/docs/docs_sphinx/conf.py b/docs/conf.py similarity index 97% rename from docs/docs_sphinx/conf.py rename to docs/conf.py index 2abea46f6..3cb0c8ca2 100644 --- a/docs/docs_sphinx/conf.py +++ b/docs/conf.py @@ -17,6 +17,8 @@ from sphinx.builders.html import StandaloneHTMLBuilder import subprocess, os +read_the_docs_build = os.environ.get('READTHEDOCS', None) == 'True' + # Doxygen subprocess.call('doxygen Doxyfile.in', shell=True) diff --git a/docs/docs_sphinx/requirements.txt b/docs/requirements.txt similarity index 100% rename from docs/docs_sphinx/requirements.txt rename to docs/requirements.txt