Skip to content

Commit

Permalink
release: bump version1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Revathyvenugopal162 committed Aug 9, 2024
1 parent 88bef2f commit 4b59827
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions doc/changelog.d/454.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix: `pygment_styles` with dark and light theme and dark theme table
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
[project]
# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections
name = "ansys-sphinx-theme"
version = "1.0.2"
version = "1.0.3"
description = "A theme devised by ANSYS, Inc. for Sphinx documentation."
readme = "README.rst"
requires-python = ">=3.9,<4"
Expand Down
6 changes: 6 additions & 0 deletions src/ansys_sphinx_theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ def setup_default_html_theme_options(app):
]
theme_options["github_url"] = None

# Add default pygments style options
if not theme_options.get("pygments_light_style"):
theme_options["pygments_light_style"] = "friendly"
if not theme_options.get("pygments_dark_style"):
theme_options["pygments_dark_style"] = "monokai"


def fix_edit_html_page_context(
app: Sphinx, pagename: str, templatename: str, context: dict, doctree: document
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ html[data-theme="dark"] {
--ast-color-table-header-text: #d3d3d3;
--ast-color-table-cell-text: #ececec;
--ast-color-table-active-bg: #3d3d3d;
--ast-table-outer-border: #353535;
---ast-color-table-inner-border: #353535;
--ast-table-outer-border: #d3d3d3;
--ast-color-table-inner-border: #d3d3d3;

/**
* search hide match
Expand Down
2 changes: 0 additions & 2 deletions src/ansys_sphinx_theme/theme/ansys_sphinx_theme/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ switcher =
use_meilisearch =
article_header_start = breadcrumbs.html
footer_end = theme-version.html
pygment_light_style = friendly
pygment_dark_style = monokai
cheatsheet =
ansys_sphinx_theme_autoapi =
logo =

0 comments on commit 4b59827

Please sign in to comment.