docs: improve search UX

This commit is contained in:
ob-yalian
2026-03-26 15:36:20 +08:00
parent 6c83f3baed
commit 309470a352
7 changed files with 658 additions and 0 deletions
+1
View File
@@ -57,6 +57,7 @@ extensions = ['recommonmark',
'sphinx_copybutton',
'sphinx.ext.autosectionlabel',
'language_switch',
'section_search',
# 'myst_parser',
]
+9
View File
@@ -147,6 +147,15 @@
color: #0550ae !important;
}
.wy-nav-content .rst-content .search mark,
.wy-nav-content .rst-content mark.section-search-match,
.wy-nav-content .rst-content mark.section-search-hit {
background: #fff3a3 !important;
color: inherit !important;
border-radius: 3px !important;
padding: 0 0.12em !important;
}
.wy-nav-content .rst-content code,
.wy-nav-content .rst-content tt,
.wy-nav-content .rst-content .literal {