diff --git a/.readthedocs.yml b/.readthedocs.yaml similarity index 80% rename from .readthedocs.yml rename to .readthedocs.yaml index c32d929d..c601b1a5 100644 --- a/.readthedocs.yml +++ b/.readthedocs.yaml @@ -5,6 +5,12 @@ # Required version: 2 +# Set the OS, Python version and other tools you might need +build: + os: ubuntu-22.04 + tools: + python: "3.11" + # Build documentation in the docs/ directory with Sphinx sphinx: configuration: docs/conf.py diff --git a/docs/conf.py b/docs/conf.py index 25dd10b7..18f0306d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -322,22 +322,12 @@ def run_apidoc(_): # -- add static files---------------------------------------------------------- -def setup_static_content(app): - # configure stylesheets - for sdir in html_static_path: - # add stylesheets - cssdir = os.path.join(sdir, 'css') - for cssf in glob.glob(os.path.join(cssdir, '*.css')): - app.add_stylesheet(cssf.split(os.path.sep, 1)[1]) - - # add custom javascript - jsdir = os.path.join(sdir, 'js') - for jsf in glob.glob(os.path.join(jsdir, '*.js')): - app.add_javascript(jsf.split(os.path.sep, 1)[1]) +html_css_files = [ + 'css/custom.css', +] # -- setup -------------------------------------------------------------------- def setup(app): - setup_static_content(app) app.connect('builder-inited', run_apidoc)