From 277613e41fb5b45c844cff57cc86209ec6fb0fa4 Mon Sep 17 00:00:00 2001 From: Marco Di Pillo Tomic Date: Sun, 6 Feb 2022 21:50:35 -0300 Subject: [PATCH] Added search --- README.md | 2 +- config.toml | 2 + docs/about/index.html | 12 +- .../index.html | 12 +- .../index.html | 12 +- .../index.html | 12 +- .../colli-desiluit-cunctis/index.html | 12 +- .../index.html | 12 +- .../hanc-sit-loquuntur-et-atque/index.html | 12 +- .../index.html | 12 +- docs/articles/index.html | 12 +- docs/articles/ipse-aggere-igne/index.html | 12 +- .../index.html | 12 +- .../index.html | 12 +- .../index.html | 12 +- docs/articles/page/2/index.html | 12 +- docs/articles/page/3/index.html | 12 +- .../index.html | 12 +- .../index.html | 12 +- docs/articles/regibus-solet-qui/index.html | 12 +- docs/authors/alec-m-mcclain/index.html | 12 +- docs/authors/alec-m-mcclain/page/2/index.html | 12 +- docs/authors/cheryl-d-zigler/index.html | 12 +- docs/authors/index.html | 12 +- docs/authors/james-j-sullivan/index.html | 12 +- docs/authors/vicki-j-dodson/index.html | 12 +- docs/elasticlunr.min.js | 10 ++ docs/index.html | 18 +- docs/js/search.js | 162 ++++++++++++++++++ docs/search_index.en.js | 1 + docs/tags/apple/index.html | 12 +- docs/tags/blackberry/index.html | 12 +- docs/tags/cherry/index.html | 12 +- docs/tags/coconut/index.html | 12 +- docs/tags/grape/index.html | 12 +- docs/tags/index.html | 12 +- docs/tags/lemon/index.html | 12 +- docs/tags/mango/index.html | 12 +- docs/tags/orange/index.html | 12 +- docs/tags/papaya/index.html | 12 +- docs/tags/peach/index.html | 12 +- docs/tags/pear/index.html | 12 +- docs/tags/pineapple/index.html | 12 +- docs/tags/raspberry/index.html | 12 +- docs/tags/strawberry/index.html | 12 +- docs/tags/tangerine/index.html | 12 +- static/js/search.js | 162 ++++++++++++++++++ templates/base.html | 12 +- 48 files changed, 719 insertions(+), 130 deletions(-) create mode 100644 docs/elasticlunr.min.js create mode 100644 docs/js/search.js create mode 100644 docs/search_index.en.js create mode 100644 static/js/search.js diff --git a/README.md b/README.md index 4157fc4..8e61ff1 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Any help is greatly appreciated! - [Bootswatch](https://bootswatch.com) ## TODO - - Make search work + - search form on submit - docs of all variables - use it in small project - make theme available diff --git a/config.toml b/config.toml index b1abd1e..e53a059 100644 --- a/config.toml +++ b/config.toml @@ -12,6 +12,8 @@ taxonomies = [ {name = "authors", paginate_by = 5}, ] +build_search_index = true + [markdown] highlight_code = true diff --git a/docs/about/index.html b/docs/about/index.html index b386e58..e29730b 100644 --- a/docs/about/index.html +++ b/docs/about/index.html @@ -249,6 +249,11 @@ + + + + + @@ -680,14 +685,15 @@ /> -
+

This site provides a demo for the Zolastrap theme for Zola static site generator based on @@ -696,7 +702,7 @@ GitHub repository.

-
+