From 866d2914ad3220cdaa675e98ffb900c4dc638570 Mon Sep 17 00:00:00 2001 From: Jacob Tomlinson Date: Thu, 25 Jan 2024 11:40:45 +0000 Subject: [PATCH] Sphinx fixes (#59) * Release 2022.11.0 * Fix extension config * Remove old path changes and update config url --- docs/conf.py | 15 +-------------- docs/configuration.rst | 4 ++-- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 3ac4c6a..745fbe2 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -10,19 +10,6 @@ # -- Path setup -------------------------------------------------------------- -# If extensions (or modules to document with autodoc) are in another directory, -# add these directories to sys.path here. If the directory is relative to the -# documentation root, use os.path.abspath to make it absolute, like shown here. -# -import dask -import os -import sys - -# Add the Dask config extension -sys.path.insert( - 0, os.path.join(os.path.abspath(dask.__path__[0]), "..", "docs", "source", "ext") -) - # -- Project information ----------------------------------------------------- @@ -41,7 +28,7 @@ "sphinx.ext.autodoc", "sphinx_click", "sphinx.ext.autosummary", - "dask_config_sphinx_ext", + "dask_sphinx_theme.ext.dask_config_sphinx_ext", ] # Add any paths that contain templates here, relative to this directory. diff --git a/docs/configuration.rst b/docs/configuration.rst index a052c24..7c666ed 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -10,5 +10,5 @@ Reference .. dask-config-block:: :location: ctl - :config: https://raw.githubusercontent.com/dask-contrib/dask-ctl/main/dask-ctl/ctl.yaml - :schema: https://raw.githubusercontent.com/dask-contrib/dask-ctl/main/dask-ctl/ctl-schema.yaml + :config: https://raw.githubusercontent.com/dask-contrib/dask-ctl/main/dask_ctl/ctl.yaml + :schema: https://raw.githubusercontent.com/dask-contrib/dask-ctl/main/dask_ctl/ctl-schema.yaml