From a7244a2983538f373c0af2ecfa4d6377584b8063 Mon Sep 17 00:00:00 2001 From: Hysterelius Date: Sun, 21 Jul 2024 01:33:32 +1000 Subject: Add pagefind search to abridge (#179) * Start process of adding pagefind to abridge * Write to static to make index appear in public * Add multilingual support * Minify files and fix running in script * Add pagefind files * Add loading of pagefind data * Update gitignore to remove pagefind index files * Get basic search result surfacing working * Remove duplicate entries in search results * Sanitise except to remove unnecessary details * Finalise addition of pagefind * Add missing await * Fix config.toml and remove old files on rebuild * Finish chores on pagefind addition--- config.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config.toml') diff --git a/config.toml b/config.toml index c2300d5..d82748e 100644 --- a/config.toml +++ b/config.toml @@ -24,7 +24,7 @@ taxonomies = [ #hard_link_static = false # set to true to hard link instead of copying, useful for very large files. [search] # Options specific to elasticlunr search. -# index format can be: elasticlunr_json or elasticlunr_javascript +# index format can be: elasticlunr_json or elasticlunr_javascript or fuse_json index_format = "elasticlunr_json" include_title = true # include title of page/section in index include_description = true # include description of page/section in index @@ -212,7 +212,7 @@ js_prestyle = true # used to preload: FontAwesome, Katex, external Google Fonts js_switcher = true # The button that allows manually changing between light/dark mode. js_switcher_default = "dark" # default nojs switcher mode: dark, light (make sure to also set $switcherDefault in abridge.scss) -search_library = 'elasticlunr' +search_library = "elasticlunr" stylesheets = ["abridge.css"] webmanifest = "manifest.min.json" # Required for PWAs -- cgit v1.3.1