From 0c73b610bca7d241ea344f90d3add763941161a2 Mon Sep 17 00:00:00 2001 From: Adarsh Priydarshi Date: Fri, 10 Jan 2025 12:07:17 +0530 Subject: [PATCH] Update conf.py --- conf.py | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/conf.py b/conf.py index 16b4110045..12c9c9c824 100644 --- a/conf.py +++ b/conf.py @@ -31,13 +31,16 @@ # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom # ones. extensions = [ - "nbsphinx", "IPython.sphinxext.ipython_console_highlighting" + "nbsphinx", + "IPython.sphinxext.ipython_console_highlighting", + "sphinx.ext.autodoc", # Adds support for generating documentation from docstrings + "sphinx.ext.napoleon", # Supports Google and NumPy style docstrings + "sphinx.ext.viewcode", # Adds links to source code ] -# extension nbsphinx config +# nbsphinx extension configuration nbsphinx_execute = "never" - # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] @@ -46,7 +49,6 @@ # This pattern also affects html_static_path and html_extra_path. exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] - # -- Options for HTML output ------------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for @@ -59,13 +61,26 @@ # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ["_static"] -# For Adobe Analytics +# Add external JavaScript files html_js_files = [ "https://a0.awsstatic.com/s_code/js/3.0/awshome_s_code.js", "https://d2c.aws.amazon.com/client/loader/v1/d2c-load.js", ] +# Add external CSS files html_css_files = [ - 'pagination.css', - 'search_accessories.css', + "pagination.css", + "search_accessories.css", ] + +# -- Additional options for modern compatibility ----------------------------- + +# Add support for source mapping +html_show_sourcelink = True + +# Enable math support for LaTeX-style equations +extensions.append("sphinx.ext.mathjax") + +# Enable localization for internationalization +locale_dirs = ['locale/'] # Path to localization folder +gettext_compact = False