diff --git a/script/docsearch/index.json b/script/docsearch/index.json index adf15eb..7523e39 100644 --- a/script/docsearch/index.json +++ b/script/docsearch/index.json @@ -7,11 +7,11 @@ "strip_chars": "#›", "selectors": { "default": { - "lvl0": ".docs-header h1", - "lvl1": ".docs-content h2", - "lvl2": ".docs-content h3", - "lvl3": ".docs-content h4", - "lvl4": ".docs-content h5", + "lvl0": "#section-name", + "lvl1": ".docs-header h1", + "lvl2": ".docs-content h2", + "lvl3": ".docs-content h3", + "lvl4": ".docs-content h4", "text": ".docs-content p" } } diff --git a/src/routes/docs/+page.svelte b/src/routes/docs/+page.svelte index db91b97..e21f57f 100644 --- a/src/routes/docs/+page.svelte +++ b/src/routes/docs/+page.svelte @@ -20,7 +20,9 @@
Docs
-
{data.section}
+
+ {data.section} +
{doc.title}
diff --git a/src/routes/docs/[...slug]/+page.svelte b/src/routes/docs/[...slug]/+page.svelte index 1d50324..4598291 100644 --- a/src/routes/docs/[...slug]/+page.svelte +++ b/src/routes/docs/[...slug]/+page.svelte @@ -17,7 +17,9 @@
Docs
-
{data.section}
+
+ {data.section} +
{doc.title}