arturadib / strapdown

Instant and elegant Markdown documents in the browser
http://strapdownjs.com
MIT License
2.48k stars 410 forks source link

Content search in strapdown.js #91

Open Jeffrey9130 opened 5 years ago

Jeffrey9130 commented 5 years ago

Hi,

How can I add content searching tools in strapdown framework?

Thank you very much

fu-sen commented 3 years ago

You could use Lunr.js.

But in this case, Strapdown.js is no longer ideal because your website is multi-page with large size pages. I can recommend MkDocs to you: https://github.com/mkdocs/mkdocs/

This is a static site generator with search function by Lunr.js. It can be published in converted HTML. It also supports the Bootswatch theme, so you can achieve the same design as Strapdown.js. https://github.com/mkdocs/mkdocs-bootswatch