Benjamin Klingsbo
08/08/2022, 2:43 PMJason Bosco
08/08/2022, 2:50 PMdocusaurus.config.js
?Benjamin Klingsbo
08/08/2022, 2:51 PMJason Bosco
08/08/2022, 2:53 PM{
// ... Other configs
themes: ['docusaurus-theme-search-typesense'],
themeConfig: {
typesense: {
searchPagePath: false,
typesenseCollectionName: 'my-website', // Replace with your own doc site's name. Should match the collection name in the scraper settings.
typesenseServerConfig: {
nodes: [
{
host: '192.168.1.34',
port: 8108,
protocol: 'http',
}
],
apiKey: 'Co8BCCK81Hd45tbBIC0UKNGBgtgDQ25aSDhgKfRK5TX0zAVs',
},
// Optional
contextualSearch: true,
},
}
// ... Other configs
}
Jason Bosco
08/08/2022, 2:54 PMthemeConfig
key in the top levelBenjamin Klingsbo
08/08/2022, 2:54 PMJason Bosco
08/08/2022, 2:54 PMtypesense
should just be inside that keyJason Bosco
08/08/2022, 2:55 PMBenjamin Klingsbo
08/08/2022, 2:55 PMBenjamin Klingsbo
08/09/2022, 6:47 AMtypesense
inside the themeConfig block, but I guess I somehow have to import this the same way that the docusaurus preset-classic is imported @type {import('@docusaurus/preset-classic').ThemeConfig}
?
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'My Site',
logo: {
alt: 'My Site Logo',
src: 'img/logo.svg',
},
items: [
{
type: 'doc',
docId: 'intro',
position: 'left',
label: 'Tutorial',
},
{to: '/blog', label: 'Blog', position: 'left'},
{
href: '<https://github.com/facebook/docusaurus>',
label: 'GitHub',
position: 'right',
},
],
},
typesense: {
searchPagePath: false,
typesenseCollectionName: 'my-website', // Replace with your own doc site's name. Should match the collection name in the scraper settings.
typesenseServerConfig: {
nodes: [
{
host: '192.168.1.34',
port: 8108,
protocol: 'http',
}
],
apiKey: 'Co8BCCK81Hd45tbBIC0UKNGBgtgDQ25aSDhgKfRK5TX0zAVs',
},
// Optional
contextualSearch: true,
},
footer: {
style: 'dark',
links: [
Jason Bosco
08/09/2022, 7:12 AM/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
to see if that helps?Benjamin Klingsbo
08/09/2022, 7:13 AMBenjamin Klingsbo
08/09/2022, 7:20 AMBenjamin Klingsbo
08/09/2022, 7:23 AMBenjamin Klingsbo
08/09/2022, 7:42 AMBenjamin Klingsbo
08/09/2022, 5:01 PMJason Bosco
08/09/2022, 5:09 PMJason Bosco
08/09/2022, 5:10 PMBenjamin Klingsbo
08/09/2022, 6:17 PM