@@ -6,6 +6,7 @@ import type * as Preset from '@docusaurus/preset-classic';
66const appKey = process . env . ALGOLIA_APP_KEY ;
77const appID = process . env . ALGOLIA_APPID ;
88const indexName = process . env . ALGOLIA_INDEX_NAME ;
9+ const indexNameAI = process . env . ALGOLIA_INDEX_NAME_AI ;
910const assistantId = process . env . ALGOLIA_ASK_AI_ASSISTANT_ID ;
1011
1112// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
@@ -92,10 +93,14 @@ const config: Config = {
9293 // Optional: path for search page that enabled by default (`false` to disable it)
9394 searchPagePath : 'search' ,
9495
95- // only search in the SparkFun DataLogger documentation - restrict on the section facet
96- searchParameters : {
97- facetFilters : [ 'section:SparkFun_DataLogger' ] ,
98- } ,
96+ // Move to it's own index for now - so don't need this.
97+ //------------------------------------------------------------------
98+ // NOTE: If using the overall doc index, set this facet filter up
99+ //------------------------------------------------------------------
100+ // // only search in the SparkFun DataLogger documentation - restrict on the section facet
101+ // searchParameters: {
102+ // facetFilters: ['section:SparkFun_DataLogger'],
103+ // },
99104
100105 // note - using a "markdown" index that is separate from the main documentation index.
101106 // this is recommended by docsearch
@@ -107,26 +112,22 @@ const config: Config = {
107112 // see: https://docsearch.algolia.com/docs/api/#askai
108113 //
109114 // It appears - according to the above docs and observation, that the facet filters
110- // are limited to a small set of values. It's an optimaization most likely for now.
115+ // are limited to a small set of values. It's an optimization most likely for now.
111116 ///
112117 // Sooo - options are to have unique index per doc set - hmmm , or
113118 // disabling AskAI for the datalogger - can revisit later.
114119 //
115- // disable for now. Wait to see if this evolves, or we feel we need to suppport
120+ // disable for now. Wait to see if this evolves, or we feel we need to support
116121 // ai at this level - then make a new index.
122+ // using it's own idex March 2026 -
123+ askAi : {
124+ indexName : indexNameAI ,
125+ assistantId : assistantId ,
126+ apiKey : appKey ,
127+ appId : appID ,
128+ sidePanel : true ,
117129
118- // askAi: {
119- // indexName: "SparkFun_Documenation_Site_MarkDown",
120- // assistantId: assistantId,
121- // apiKey: appKey,
122- // appId: appID,
123- // // March 2026 - the side panel isn't working -- need to revisit.
124- // sidePanel: true,
125- // searchParameters: {
126- // facetFilters: ['section:SparkFun_DataLogger'],
127- // },
128-
129- // },
130+ } ,
130131
131132 } ,
132133
0 commit comments