pydata_sphinx_theme.nbsphinx#
Interoperate with nbpshinx extension.
Attributes#
Functions#
|
For projects using nbsphinx, delete nbsphinx's CSS. |
|
For projects using nbsphinx, point to our notebook CSS. |
Module Contents#
- pydata_sphinx_theme.nbsphinx.delete_nbsphinx_css(app)[source]#
For projects using nbsphinx, delete nbsphinx’s CSS. We replace it later with our own.
- Parameters:
- Return type:
None
- pydata_sphinx_theme.nbsphinx.point_nbsphinx_pages_to_our_css(app, pagename, templatename, context, doctree)[source]#
For projects using nbsphinx, point to our notebook CSS. nbsphinx selectively adds its CSS to certain pages (the ones it converted from notebook files) by calling the Sphinx add_css_file() method on “html-page-context” event. Here we update those pages to point to our alternative CSS file.
- Parameters:
pagename (str)
templatename (str)
- Return type:
None