overwrite_pygments_css#
- technote.ext.pygmentscss.overwrite_pygments_css(app, exceptions=None)#
- Return type:
Overwrite the pygments CSS file with a version that enables toggling between light and dark themes.
Each selector is prefixed with html[data-theme=’light|dark’] to enable toggling between light and dark themes with JavaScript.
This approach is heavily based on pydata-sphinx-theme and furo: