Mismatch between sphinx-thebe code block and Furo-dark-theme #425
-
What's happening?A mismatch between I already played around with : pygments_style = 'sphinx'
pygments_dark_style = "monokai" and See reference (https://sphinx-thebe.readthedocs.io/en/latest/configure.html#choose-a-codemirror-theme) thebe_config = {
"codemirror-theme": "monokai",
"always_load": True,
} Please see my import os
import sys
sys.path.insert(0, os.path.abspath('.'))
# -- Project information -----------------------------------------------------
project = 'oop-python-learning'
copyright = '2022, Fernando Carvalho Pacheco'
author = 'Fernando Carvalho Pacheco'
# The full version, including alpha/beta/rc tags
release = '0.0.1'
# -- General configuration ---------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"myst_nb",
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx_autodoc_typehints",
"sphinx.ext.intersphinx",
"sphinx.ext.autosectionlabel",
"sphinx_design",
"sphinx_thebe",
]
myst_enable_extensions = [
"colon_fence",
]
# Make sure the explicity target is unique
autosectionlabel_prefix_document = True
autosectionlabel_maxdepth = 3
myst_heading_anchors = 3
source_suffix = {
'.ipynb': 'myst-nb',
'.myst': 'myst-nb',
'.md': 'myst-nb',
}
autosectionlabel_prefix_document = True
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ['_build', 'build', 'Thumbs.db', '.DS_Store', '.env', '**.ipynb_checkpoints']
pygments_style = 'sphinx'
pygments_dark_style = "monokai"
# -- Options for HTML output -------------------------------------------------
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'furo'
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_theme_options = {
"navigation_with_keys": True,
}
html_title = "OOP Python"
# -- Jupyter options ---------------------------------------------------------
jupyter_execute_notebooks = "auto"
thebe_config = {
"codemirror-theme": "monokai",
"always_load": True,
} Reproducer
List your environment
ExpectationI expected the code block color to be the same or match the furo dark theme (ps. the light theme has a wonderful match...) . I have already tried to change Code of Conduct
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This one seems to have slipped through the cracks. @fcarvalhopacheco is this still relevant? |
Beta Was this translation helpful? Give feedback.
This one seems to have slipped through the cracks.
@fcarvalhopacheco is this still relevant?