Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update conf.py #4805

Open
wants to merge 1 commit into
base: default
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 22 additions & 7 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand All @@ -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
Expand All @@ -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