Skip to content

Commit

Permalink
Cherry picked fix for anchor links
Browse files Browse the repository at this point in the history
  • Loading branch information
benji-glitsos-ga committed Dec 21, 2023
1 parent d4dafea commit f5698a5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@
html_logo = "_files/logos/ga-dea-combined-logo.svg"
html_favicon = "_static/favicons/dea-favicon.ico"
html_theme = 'pydata_sphinx_theme'
html_baseurl = ""
language = "en"

if environment["build_mode"] == "production": html_baseurl = "https://docs.dea.ga.gov.au/"
elif environment["build_mode"] == "demo": html_baseurl = f"https://{environment['git_branch']}--dea-docs.netlify.app/"
else: html_baseurl = ""

html_permalinks = False

Expand All @@ -72,9 +72,10 @@
myst_enable_extensions = [
"colon_fence",
"attrs_inline",
"attrs_block",
"dollarmath",
]
myst_heading_anchors = 1
myst_heading_anchors = 6
myst_all_links_external = True

nbsphinx_execute = "never"
Expand Down Expand Up @@ -140,5 +141,5 @@
if environment["build_mode"] == "production": html_context["google_analytics_ga4_tag"] = "G-4B9D450HR4"

suppress_warnings = [
"etoc.toctree"
# "etoc.toctree"
]

0 comments on commit f5698a5

Please sign in to comment.