@@ -3,9 +3,9 @@ import type { Config } from '@docusaurus/types';
33import type * as Preset from '@docusaurus/preset-classic' ;
44
55// our search keys
6- // const appKey = process.env.ALGOLIA_APP_KEY;
7- // const appID = process.env.ALGOLIA_APPID;
8- // const indexName = process.env.ALGOLIA_INDEX_NAME;
6+ const appKey = process . env . ALGOLIA_APP_KEY ;
7+ const appID = process . env . ALGOLIA_APPID ;
8+ const indexName = process . env . ALGOLIA_INDEX_NAME ;
99
1010// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
1111
@@ -72,55 +72,26 @@ const config: Config = {
7272 respectPrefersColorScheme : true ,
7373 } ,
7474
75- // docsearch: {
76- // // The application ID provided by Algolia
77- // appId: appID,
78- // apiKey: appKey,
79- // indexName: indexName,
80-
81- // // Optional: see doc section below
82- // contextualSearch: false,
83-
84- // // Optional: path for search page that enabled by default (`false` to disable it)
85- // searchPagePath: 'search',
86-
87- // // Move to it's own index for now - so don't need this.
88- // //------------------------------------------------------------------
89- // // NOTE: If using the overall doc index, set this facet filter up
90- // //------------------------------------------------------------------
91- // // // only search in the SparkFun Thing Plus - ESP32-C5 documentation - restrict on the section facet
92- // searchParameters: {
93- // facetFilters: ['section:SparkFun_Thing_Plus_ESP32-C5'],
94- // },
95-
96- // // note - using a "markdown" index that is separate from the main documentation index.
97- // // this is recommended by docsearch
98- // //
99- // // March, 2026 - Normal search used facetFilters to key off the section attribute,
100- // // to limit search results to a specific section. This allows the same overall index
101- // // to be used for the SparkFun Thing Plus - ESP32-C5. This is not available for AskAi.
102- // //
103- // // see: https://docsearch.algolia.com/docs/api/#askai
104- // //
105- // // It appears - according to the above docs and observation, that the facet filters
106- // // are limited to a small set of values. It's an optimization most likely for now.
107- // ///
108- // // Sooo - options are to have unique index per doc set - hmmm , or
109- // // disabling AskAI for the SparkFun Thing Plus - ESP32-C5 Line - can revisit later.
110- // //
111- // // disable for now. Wait to see if this evolves, or we feel we need to support
112- // // ai at this level - then make a new index.
113- // // using it's own idex March 2026 -
114- // // askAi: {
115- // // indexName: assistantIndexName,
116- // // assistantId: assistantId,
117- // // apiKey: appKey,
118- // // appId: appID,
119- // // sidePanel: true,
120-
121- // // },
122-
123- // },
75+ docsearch : {
76+ // The application ID provided by Algolia
77+ appId : appID ,
78+ apiKey : appKey ,
79+ indexName : indexName ,
80+
81+ // Optional: see doc section below
82+ contextualSearch : false ,
83+
84+ // Optional: path for search page that enabled by default (`false` to disable it)
85+ searchPagePath : 'search' ,
86+
87+ // Move to it's own index for now - so don't need this.
88+ //------------------------------------------------------------------
89+ // NOTE: If using the overall doc index, set this facet filter up
90+ //------------------------------------------------------------------
91+ // // only search in the SparkFun Thing Plus - ESP32-C5 documentation - restrict on the section facet
92+ searchParameters : {
93+ facetFilters : [ 'section:SparkFun_Thing_Plus_ESP32-C5' ] ,
94+ } ,
12495
12596 navbar : {
12697 title : 'SparkFun Thing Plus - ESP32-C5 Hookup Guide' ,
0 commit comments