From d72b3cb41c6f480403a0b824eba8ed79c716f017 Mon Sep 17 00:00:00 2001 From: Stuart Mumford Date: Wed, 21 Jan 2026 14:34:22 +0000 Subject: [PATCH] Test out new astropy theme. [ci skip] --- docs/conf.py | 36 ++---------------------------------- pyproject.toml | 3 ++- 2 files changed, 4 insertions(+), 35 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index e673683ed..79a16029c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -5,7 +5,7 @@ from importlib import metadata try: - from sphinx_astropy.conf.v1 import * # noqa + from sphinx_astropy.conf.v2 import * # noqa except ImportError: print("ERROR: the documentation requires the sphinx-astropy package to be installed") sys.exit(1) @@ -48,39 +48,7 @@ # -- Options for HTML output --------------------------------------------------- -# A NOTE ON HTML THEMES -# The global astropy configuration uses a custom theme, 'bootstrap-astropy', -# which is installed along with astropy. A different theme can be used or -# the options for this theme can be modified by overriding some of the -# variables set in the global configuration. The variables set in the -# global configuration are listed below, commented out. - -html_theme_options = { - "logotext1": "re", # white, semi-bold - "logotext2": "project", # orange, light - "logotext3": ":docs", # white, light -} - -# Add any paths that contain custom themes here, relative to this directory. -# To use a different custom theme, add the directory containing the theme. -# html_theme_path = [] - -# The theme to use for HTML and HTML Help pages. See the documentation for -# a list of builtin themes. To override the custom theme, set this to the -# name of a builtin theme or the name of a custom theme in html_theme_path. -# html_theme = None - -# Custom sidebar templates, maps document names to template names. -# html_sidebars = {} - -# The name of an image file (within the static path) to use as favicon of the -# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 -# pixels large. -# html_favicon = '' - -# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, -# using the given strftime format. -# html_last_updated_fmt = '' +html_theme = "astropy-unified" # The name for this set of Sphinx documents. If None, it defaults to # " v documentation". diff --git a/pyproject.toml b/pyproject.toml index 7c6c16bc5..e6c22dc5b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,7 +44,8 @@ testall = [ "pyvo", ] docs = [ - "sphinx-astropy", + "sphinx-astropy[confv2]", + "astropy-sphinx-theme@git+https://github.com/Cadair/astropy-sphinx-theme@sunpy-astropy-theme", "pyvo", "matplotlib", "tqdm",