mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-04 12:07:46 +08:00
docs: polish doc styling and add copy buttons
This commit is contained in:
@@ -54,6 +54,7 @@ master_doc = 'index'
|
||||
# ones.
|
||||
extensions = ['recommonmark',
|
||||
'sphinx_markdown_tables',
|
||||
'sphinx_copybutton',
|
||||
'sphinx.ext.autosectionlabel',
|
||||
'language_switch',
|
||||
# 'myst_parser',
|
||||
@@ -183,6 +184,10 @@ html_last_updated_fmt = "%Y-%m-%d %H:%M:%S"
|
||||
# 是否显示页面下方的由sphinx创建, 默认为True
|
||||
html_show_sphinx = False
|
||||
|
||||
copybutton_exclude = '.linenos, .gp, .go'
|
||||
copybutton_prompt_text = r'>>> |\.\.\. |\$ |# '
|
||||
copybutton_prompt_is_regexp = True
|
||||
|
||||
# Function to copy video files to output directory
|
||||
def setup(app):
|
||||
app.connect('build-finished', copy_videos)
|
||||
|
||||
Reference in New Issue
Block a user