mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 03:57:46 +08:00
Add language switch extension for bilingual documentation support
This commit is contained in:
+5
-2
@@ -18,6 +18,10 @@ import os
|
||||
import shutil
|
||||
import sphinx
|
||||
|
||||
# Add extension path
|
||||
import sys
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), '..', '_ext'))
|
||||
|
||||
import recommonmark
|
||||
from recommonmark.transform import AutoStructify
|
||||
|
||||
@@ -50,9 +54,8 @@ master_doc = 'index'
|
||||
# ones.
|
||||
extensions = ['recommonmark',
|
||||
'sphinx_markdown_tables',
|
||||
|
||||
'sphinx.ext.autosectionlabel',
|
||||
|
||||
'language_switch',
|
||||
# 'myst_parser',
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user