Python API#
- quantecon_book_theme.__version__ = '0.18.0'#
quantecon-book-theme version
- quantecon_book_theme.add_to_context(app, pagename, templatename, context, doctree)[source]#
Functions and variable additions to context.
- quantecon_book_theme.launch.add_hub_urls(app: Sphinx, pagename: str, templatename: str, context: Dict[str, Any], doctree: document | None)[source]#
Builds a binder link and inserts it in HTML context for use in templating.
This is a
html-page-contextsphinx event (see Event callbacks API).- Parameters:
pagename – The sphinx docname related to the page
context – A dictionary of values that are given to the template engine, to render the page and can be modified to include custom values.
doctree – A doctree when the page is created from a reST documents; it will be None when the page is created from an HTML template alone.