Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mkdocs: add some search features
Browse files Browse the repository at this point in the history
Signed-off-by: Koichi Shiraishi <[email protected]>
zchee committed Nov 22, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent c5168ef commit 31ecd08
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions config/mkdocs.yml
Original file line number Diff line number Diff line change
@@ -20,6 +20,13 @@ theme:
- navigation.instant
- navigation.sections
- toc.integrate
- search.suggest
- search.highlight

plugins:
- search
- minify:
minify_html: true

google_analytics:
- UA-89201129-1
@@ -118,12 +125,6 @@ markdown_extensions:
alternate_style: true
- pymdownx.saneheaders:

plugins:
- search:
prebuild_index: true
- minify:
minify_html: true

# yamllint disable-line
## $ echo ' - "Home": Home.md' | tee nav.md; find . -maxdepth 2 -type f \( -name '*.md' -or -name '*.asciidoc' \) -and -not -wholename '*docs*' -and -not \( -name 'Home.md' -or -name 'nav.md' -or -name '_Footer.md' -or -name '_Sidebar.md' \) | awk -F'/' '{print $2}' | awk -F'.md' '{print ""$1": "$0}' | awk -F':' '{gsub( "-", " ", $1 ) gsub( ".asciidoc", "", $1 )} {print " - \""$1"\":"$2}' | sed 's|.asciidoc|.md|' | sort --ignore-case | tee -a nav.md && cat nav.md | pbcopy && rm -f nav.md

0 comments on commit 31ecd08

Please sign in to comment.