aboutsummaryrefslogtreecommitdiff
path: root/exampleSite
diff options
context:
space:
mode:
authorAlex Shpak <alex-shpak@users.noreply.github.com>2019-11-10 14:35:07 +0100
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-11-16 20:35:23 +0100
commit7b52bf423214194ab39392db6e9bc2de9d36a02d (patch)
treec555a7ca3203a2446a90f345ae37585657dd306d /exampleSite
parent05c3b8fac9bec7cf54fed20d93fac52e1e97ad97 (diff)
#87, Add support for multilang search index generation
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config.toml22
-rw-r--r--exampleSite/config.yaml2
2 files changed, 13 insertions, 11 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index db2bb08..96e8165 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -17,15 +17,17 @@ pygmentsCodeFences = true
defaultContentLanguage = 'en'
[languages]
- [languages.en]
- languageName = 'English'
- weight = 1
- [languages.ru]
- languageName = 'Russian'
- weight = 2
- [languages.cn]
- languageName = 'Chinese'
- weight = 3
+[languages.en]
+ languageName = 'English'
+ weight = 1
+
+[languages.ru]
+ languageName = 'Russian'
+ weight = 2
+
+[languages.cn]
+ languageName = 'Chinese'
+ weight = 3
[params]
# (Optional, default 6) Set how many table of contents levels to be showed on page.
@@ -63,7 +65,7 @@ defaultContentLanguage = 'en'
# Index is built on fly, therefore it might slowdown your website.
BookSearch = true
- # (Optional, default none) Search config for flexsearch index.
+ # (Optional, default {}) Search config for flexsearch index.
# Read documentation at https://github.com/nextapps-de/flexsearch#usage. By default 'balance' preset is used.
# This option allows to set specific configs for languages support. Must be valid JavaScript object.
BookSearchConfig = '{ cache: true }'
diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml
index 720d5d3..6db35ed 100644
--- a/exampleSite/config.yaml
+++ b/exampleSite/config.yaml
@@ -63,7 +63,7 @@ params:
# Index is built on fly, therefore it might slowdown your website.
BookSearch: true
- # (Optional, default none) Search config for flexsearch index.
+ # (Optional, default {}) Search config for flexsearch index.
# Read documentation at https://github.com/nextapps-de/flexsearch#usage. By default 'balance' preset is used.
# This option allows to set specific configs for languages support. Must be valid JavaScript object.
BookSearchConfig: |