Skip to content

Commit

Permalink
mkdocs: add some search features
Browse files Browse the repository at this point in the history
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
  • Loading branch information
zchee committed Sep 1, 2023
1 parent c6b141c commit 9219aa9
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
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 9219aa9

Please sign in to comment.