Skip to content

Commit 4b59827

Browse files
release: bump version1.0.3
1 parent 88bef2f commit 4b59827

File tree

5 files changed

+10
-5
lines changed

5 files changed

+10
-5
lines changed

doc/changelog.d/454.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix: `pygment_styles` with dark and light theme and dark theme table

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "flit_core.buildapi"
55
[project]
66
# Check https://flit.readthedocs.io/en/latest/pyproject_toml.html for all available sections
77
name = "ansys-sphinx-theme"
8-
version = "1.0.2"
8+
version = "1.0.3"
99
description = "A theme devised by ANSYS, Inc. for Sphinx documentation."
1010
readme = "README.rst"
1111
requires-python = ">=3.9,<4"

src/ansys_sphinx_theme/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,12 @@ def setup_default_html_theme_options(app):
178178
]
179179
theme_options["github_url"] = None
180180

181+
# Add default pygments style options
182+
if not theme_options.get("pygments_light_style"):
183+
theme_options["pygments_light_style"] = "friendly"
184+
if not theme_options.get("pygments_dark_style"):
185+
theme_options["pygments_dark_style"] = "monokai"
186+
181187

182188
def fix_edit_html_page_context(
183189
app: Sphinx, pagename: str, templatename: str, context: dict, doctree: document

src/ansys_sphinx_theme/theme/ansys_sphinx_theme/static/css/ansys-sphinx-theme-variable.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ html[data-theme="dark"] {
310310
--ast-color-table-header-text: #d3d3d3;
311311
--ast-color-table-cell-text: #ececec;
312312
--ast-color-table-active-bg: #3d3d3d;
313-
--ast-table-outer-border: #353535;
314-
---ast-color-table-inner-border: #353535;
313+
--ast-table-outer-border: #d3d3d3;
314+
--ast-color-table-inner-border: #d3d3d3;
315315

316316
/**
317317
* search hide match

src/ansys_sphinx_theme/theme/ansys_sphinx_theme/theme.conf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ switcher =
1414
use_meilisearch =
1515
article_header_start = breadcrumbs.html
1616
footer_end = theme-version.html
17-
pygment_light_style = friendly
18-
pygment_dark_style = monokai
1917
cheatsheet =
2018
ansys_sphinx_theme_autoapi =
2119
logo =

0 commit comments

Comments
 (0)