You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a new Docs based tree using npm run create -- --kind docs [section] and wanted to have flexsearch for each individual section I created using this command.
I followed this steps except for last step where the index.js first line need to be replaced with next line; as I don't have "configuration" section:
# Meta Data for SEO
# Search
mainSections = ["ml", "etc"]
When I checked if mainSections was correctly set using console.log, which was as expected correctly configured.
But when I checked .Section and .Type variable for any pages not in ml section; it always appeared to be set to ml and not to the respective section (etc section otherwise). It was expected for .Type but not for .Section variable.
This is hindering the creation of flexsearch index creation for pages in each section.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I created a new Docs based tree using
npm run create -- --kind docs [section]
and wanted to have flexsearch for each individual section I created using this command.I followed this steps except for last step where the
index.js
first line need to be replaced with next line; as I don't have "configuration" section:Instead I wrote this line:
. I set
params.toml
in the topmost section:When I checked if
mainSections
was correctly set using console.log, which was as expected correctly configured.But when I checked
.Section
and.Type
variable for any pages not inml
section; it always appeared to be set toml
and not to the respective section (etc
section otherwise). It was expected for.Type
but not for.Section
variable.This is hindering the creation of flexsearch index creation for pages in each section.
What is the issues?
Beta Was this translation helpful? Give feedback.
All reactions