Skip to content

Commit

Permalink
set myst_heading_anchor for doc
Browse files Browse the repository at this point in the history
  • Loading branch information
RunningLeon committed May 18, 2022
1 parent 673bbba commit 9baecee
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docs/en/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
#
# This is also used if you do content translation via gettext catalogs.
# Usually you set "language" from the command line for these cases.
language = None
language = 'en'

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
Expand All @@ -104,8 +104,7 @@
# documentation.
#
html_theme_options = {
# TODO: Add log_url
# 'logo_url': 'https://mmocr.readthedocs.io/en/latest/',
'logo_url': 'https://mmdeploy.readthedocs.io/en/latest/',
'menu': [{
'name': 'GitHub',
'url': 'https://github.com/open-mmlab/mmdeploy'
Expand All @@ -119,6 +118,10 @@
html_static_path = ['_static']
html_css_files = ['css/readthedocs.css']

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

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
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 @@ -118,6 +118,10 @@
html_static_path = ['_static']
html_css_files = ['css/readthedocs.css']

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

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
#
Expand Down

0 comments on commit 9baecee

Please sign in to comment.