Skip to content

Commit

Permalink
[Docs] Configure Myst-parser to parse anchor tag (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
BIGWangYuDong authored May 18, 2022
1 parent 3f3b6b4 commit d977793
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/en/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ def get_version():
'sphinx_markdown_tables',
]

# Enable ::: for my_st
myst_enable_extensions = ['colon_fence']
myst_heading_anchors = 3

autodoc_mock_imports = ['matplotlib', 'mmfewshot.version', 'mmcv.ops']

# Add any paths that contain templates here, relative to this directory.
Expand Down
4 changes: 4 additions & 0 deletions docs/zh_cn/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ def get_version():
'sphinx_markdown_tables',
]

# Enable ::: for my_st
myst_enable_extensions = ['colon_fence']
myst_heading_anchors = 3

autodoc_mock_imports = ['matplotlib', 'mmfewshot.version', 'mmcv.ops']

# Add any paths that contain templates here, relative to this directory.
Expand Down

0 comments on commit d977793

Please sign in to comment.