MkDocsの検索機能を調べる
単に検索するだけ * 検索機能を実装してる人 * Hugoで個人サイト制作(6) Hugoテーマのカスタマイズ4 | snagim( 'e' )mo * Hugo + Lunrによる日本語全文検索 | Unigiri * Hugo に全文検索を取り付けた | the right stuff * どれも、全記事を吐き出すところ、検索するところ、表示するところは書いてる * もともと、全記事を出すのはできてた * 2つ目のをかなり参考にした * 検索するところと表示するところもなんとかできた
プレビルドというのがある * ページが増えてくると、プレインデックス化をするといいらしい * Pre-building Indexes : Lunr * MkDocsでどうやってるかを見る * Configuration - MkDocs * prebuild_index * > On smaller sites, using a pre-built index is not recommended as it creates a significant increase is bandwidth requirements with little to no noticeable improvement to your users. However, for larger sites (hundreds of pages), the bandwidth increase is relatively small and your users will notice a significant improvement in search performance. * 小さいサイトでプレビルドすると、サイズはデカくなるがあまり速くならない。数百ページの大きなサイトで使うと、サイズは比較的小さいが検索スピードはかなり速くなる * 試してみようとしたが、なかなか難しい * node.jsでlunrを使っているようだ
プレビルド * ページ作成のときに、プレビルドをする必要がある(Node.jsが必要) * 検索時の処理も変えないといけない * Pre-building a Lunr Index in Hexo -- moscardino.net * そのままは使えなかったが、このサイトがかなり参考になった *