Unverified Commit e252ff54 authored by Shilong Zhang's avatar Shilong Zhang Committed by GitHub
Browse files

Fix heading anchor in documentation (#1490)

* Configure Myst-parser to parse anchor tag

* fix lint

* Configure Myst-parser for ch doc
parent 3cb437f5
...@@ -136,10 +136,11 @@ latex_documents = [ ...@@ -136,10 +136,11 @@ latex_documents = [
StandaloneHTMLBuilder.supported_image_types = [ StandaloneHTMLBuilder.supported_image_types = [
'image/svg+xml', 'image/gif', 'image/png', 'image/jpeg' 'image/svg+xml', 'image/gif', 'image/png', 'image/jpeg'
] ]
# -- Extension configuration ------------------------------------------------- # Enable ::: for my_st
# Ignore >>> when copying code myst_enable_extensions = ['colon_fence']
copybutton_prompt_text = r'>>> |\.\.\. ' myst_heading_anchors = 3
copybutton_prompt_is_regexp = True
language = 'zh_CN'
def builder_inited_handler(app): def builder_inited_handler(app):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment