diff --git a/.readthedocs.yml b/.readthedocs.yml index 6d086f29..2d9377bc 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yml @@ -1,18 +1,15 @@ version: 2 formats: [] -build: - image: latest - sphinx: configuration: docs/source/conf.py fail_on_warning: false -python: - version: "3.8" - install: - - method: pip - path: . - extra_requirements: - - all - - docs +build: + os: ubuntu-22.04 + tools: + python: "3.8" + jobs: + pre_build: + - pip install .[all] .[docs] + - python3 ./docs/scripts/generate_autodoc.py diff --git a/docs/source/conf.py b/docs/source/conf.py index 538870ed..4ec74097 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -18,14 +18,6 @@ sys.path.insert(0, os.path.abspath('../../src/')) sys.path.insert(0, os.path.abspath('.')) -def create_reference(): - """ - Creates .rst files for class/function descriptions. - """ - file_dir = os.path.dirname(__file__) - file_dir = file_dir.rstrip(os.path.basename(file_dir)) - file_dir = os.path.join(file_dir, "scripts/generate_autodoc.py") - subprocess.run(f"{sys.executable} {file_dir}", shell=False) # -- Project information ----------------------------------------------------- project = 'Discord Advertisement Framework' @@ -38,7 +30,6 @@ def create_reference(): version = gh_release elif readthedocs_release is not None: version = readthedocs_release - create_reference() # RTD does not run the makefile so hack is required else: version = "v0.0.1"