diff --git a/.readthedocs.yml b/.readthedocs.yml index 01c5cfa..aea6697 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,4 +1,13 @@ version: 2 +build: + os: ubuntu-22.04 + tools: + python: mambaforge-4.10 + conda: - environment: docs/environment.yml + environment: docs/environment.yaml + +sphinx: + configuration: docs/conf.py + diff --git a/docs/conf.py b/docs/conf.py index e6b3cd6..6610bbd 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -16,23 +16,27 @@ import os import shutil import subprocess +import sys + +print("current directory: {}".format(os.path.abspath(os.curdir)), file=sys.stderr) -print("current directory: {}".format(os.path.abspath(os.curdir))) if os.path.exists("html"): shutil.rmtree("html") # Update doxygen config -subprocess.run("doxygen -u", shell=True) +#subprocess.run("doxygen -u", shell=True) # Run doxygen subprocess.run("doxygen", shell=True) + # -- Project information ----------------------------------------------------- project = 'Oh My Cal' copyright = '2023-2024, Space Telescope Science Institute' author = 'Joseph Hunkeler' +root_doc = "nop" html_extra_path = ["html"] # -- General configuration --------------------------------------------------- diff --git a/docs/environment.yml b/docs/environment.yaml similarity index 100% rename from docs/environment.yml rename to docs/environment.yaml diff --git a/docs/index.rst b/docs/nop.rst similarity index 100% rename from docs/index.rst rename to docs/nop.rst