def setup(app: sphinx.application.Sphinx): """ Sets up Sphinx extension. """ app.connect("doctree-read", on_doctree_read) app.connect("builder-inited", on_builder_inited) app.add_css_file("uqbar.css")
def setup(app: sphinx.application.Sphinx) -> Dict[str, Any]: """Entry point for sphinx theming.""" app.require_sphinx("3.0") app.add_html_theme("basic-ng", str(_THEME_PATH)) app.connect("html-page-context", _html_page_context) return { "parallel_read_safe": True, "parallel_write_safe": True, "version": __version__, }
def setup(app: sphinx.application.Sphinx) -> Dict[str, Any]: """Entry point for sphinx theming.""" app.require_sphinx("3.0") app.add_config_value("pygments_dark_style", "native", "env", [str]) app.add_html_theme("furo", str(THEME_PATH)) app.connect("html-page-context", _html_page_context) app.connect("builder-inited", _builder_inited) return { "parallel_read_safe": True, "parallel_write_safe": True, "version": __version__, }
def setup(app: sphinx.application.Sphinx) -> Dict[str, Any]: """Entry point for sphinx theming.""" app.require_sphinx("3.0") app.add_config_value("pygments_dark_style", default="native", rebuild="env", types=[str]) app.add_html_theme("furo", str(THEME_PATH)) app.connect("html-page-context", _html_page_context) app.connect("builder-inited", _builder_inited) # This adds the rate-the-docs widget directly to our theme # https://github.com/medmunds/rate-the-docs app.add_js_file("scripts/rate-the-docs.min.js", priority=200) return { "parallel_read_safe": True, "parallel_write_safe": True, "version": __version__, }
def setup(app: sphinx.application.Sphinx): app.add_config_value('blark_projects', [], 'html') app.add_config_value('blark_signature_show_type', True, 'html') app.add_domain(BlarkDomain) app.connect("config-inited", _initialize_domain)