Skip to content

Commit

Permalink
explicitly set dark mode pygments
Browse files Browse the repository at this point in the history
  • Loading branch information
alphasentaurii committed Dec 10, 2024
1 parent 93799b9 commit a86e730
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@
release = importlib.metadata.version(configuration["name"])

subproject_mappings = {
# Main project
"asdf-website": ("https://www.asdf-format.org/en/latest/", None),
# Subprojects
"asdf": ("https://asdf.readthedocs.io/en/latest/", None),
"asdf-transform-schemas": ("https://asdf-transform-schemas.readthedocs.io/en/latest/", None),
"asdf-wcs-schemas": ("https://asdf-wcs-schemas.readthedocs.io/en/latest/", None),
"asdf-coordinates-schemas": ("https://asdf-coordinates-schemas.readthedocs.io/en/latest/", None),
"asdf-website": ("https://asdf-website.readthedocs.io/en/latest/", None),
} # noqa: F405

intersphinx_mapping.update(subproject_mappings)
"asdf-coordinates-schemas": ("https://www.asdf-format.org/projects/asdf-coordinates-schemas/en/latest/", None),
"asdf-transform-schemas": ("https://www.asdf-format.org/projects/asdf-transform-schemas/en/latest/", None),
"asdf-wcs-schemas": ("https://www.asdf-format.org/projects/asdf-wcs-schemas/en/latest/", None),
}
intersphinx_mapping.update(subproject_mappings) # noqa: F405


# -- General configuration ---------------------------------------------------
Expand Down Expand Up @@ -79,6 +80,9 @@
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = "monokai"

# NB Dark style pygments is furo-specific at this time
pygments_dark_style = "monokai"

# The reST default role (used for this markup: `text`) to use for all documents.
default_role = "ref"

Expand Down Expand Up @@ -224,7 +228,7 @@

# The name of an image file (relative to this directory) to place at the top of
# the title page.
latex_logo = "_static/images/logo.png"
latex_logo = "_static/images/logo-light.png"

# For "manual" documents, if this is true, then toplevel headings are parts,
# not chapters.
Expand Down

0 comments on commit a86e730

Please sign in to comment.