Skip to content

Commit c1f22ed

Browse files
committed
Tweak typesense indexing.
1 parent 990d305 commit c1f22ed

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

docusaurus.config.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
66

77
/** @type {import('@docusaurus/types').Config} */
88
const config = {
9-
title: 'dfmg-template',
10-
tagline: 'DocFxMarkdownGen Docusaurus template',
11-
url: 'https://your-docusaurus-test-site.com',
9+
title: 'servicestack-reference',
10+
tagline: 'ServiceStack Reference Documentation',
11+
url: 'https://reference.servicestack.net',
1212
baseUrl: '/',
1313
onBrokenLinks: 'ignore',
1414
onBrokenMarkdownLinks: 'warn',
1515
favicon: 'img/favicon.ico',
16-
organizationName: 'Jan0660', // Usually your GitHub org/user name.
17-
projectName: 'dfmg-template', // Usually your repo name.
16+
organizationName: 'ServiceStack', // Usually your GitHub org/user name.
17+
projectName: 'reference-docs', // Usually your repo name.
1818

1919
presets: [
2020
[
@@ -60,7 +60,7 @@ const config = {
6060
items: [
6161
{
6262
label: 'GitHub',
63-
href: 'https://github.com/Jan0660/dfmg-template',
63+
href: 'https://github.com/ServiceStack/ServiceStack',
6464
},
6565
],
6666
},
@@ -89,7 +89,7 @@ const config = {
8989
typesenseSearchParameters: {},
9090

9191
// Optional
92-
contextualSearch: true,
92+
contextualSearch: false,
9393
}
9494
}),
9595
};

search-server/typesense-scraper/typesense-scraper-config.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88
],
99
"selectors": {
1010
"default": {
11-
"lvl0": ".theme-doc-markdown h1",
12-
"lvl2": ".theme-doc-markdown h3",
13-
"lvl3": ".theme-doc-markdown h5",
14-
"text": ".theme-doc-markdown p, .theme-doc-markdown code .theme-doc-markdown ul li, .theme-doc-markdown table tbody tr"
11+
"lvl0": ".menu__link menu__link--active",
12+
"lvl1": "header h1",
13+
"lvl2": "article h3",
14+
"lvl3": "article h5, article td:first-child",
15+
"text": "article p, article li, article td:last-child"
1516
}
1617
},
1718
"scrape_start_urls": false,

0 commit comments

Comments
 (0)