diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 57725377..50b87b49 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -6,14 +6,13 @@ build: - swig tools: python: "3.11" + jobs: + pre_build: + - python doc/rtd_build.py python: install: - requirements: doc/requirements.txt - # the 'setuptools' method calls doc/setup.py that configures files and runs doxygen - # the 'pip' method doesn't work this way - - method: setuptools - path: doc sphinx: builder: html diff --git a/doc/setup.py b/doc/rtd_build.py similarity index 97% rename from doc/setup.py rename to doc/rtd_build.py index cf384f2e..bbca8da2 100644 --- a/doc/setup.py +++ b/doc/rtd_build.py @@ -74,5 +74,3 @@ generate_bindings_from_dir(os.path.join( generate_bindings_from_dir(os.path.join(DIR + "/../bindings/libdnf5_cli"), os.path.join(DIR + "/../bindings/python3/libdnf5_cli")) -# no setup() is called -# this file only configures files for building docs in Read the Docs