diff --git a/website/assets/js/pages/policy-details.page.js b/website/assets/js/pages/policy-details.page.js index 1bfa2541f6d7..3f1b52778ded 100644 --- a/website/assets/js/pages/policy-details.page.js +++ b/website/assets/js/pages/policy-details.page.js @@ -15,19 +15,19 @@ parasails.registerPage('policy-details', { mounted: async function () { // Note: Docsearch will be disabled on this page until a search index has been created for it. // Note: Docsearch will only be enabled if sails.config.custom.algoliaPublicKey is set. If the value is undefined, the documentation search will be disabled. - // if(this.algoliaPublicKey) { - // docsearch({ - // appId: 'NZXAYZXDGH', - // apiKey: this.algoliaPublicKey, - // indexName: 'fleetdm', - // container: '#docsearch-query', - // placeholder: 'Search', - // debug: false, - // searchParameters: { - // 'facetFilters': ['section:queries'] - // }, - // }); - // } + if(this.algoliaPublicKey) { + docsearch({ + appId: 'NZXAYZXDGH', + apiKey: this.algoliaPublicKey, + indexName: 'fleetdm', + container: '#docsearch-query', + placeholder: 'Search', + debug: false, + searchParameters: { + 'facetFilters': ['section:policies'] + }, + }); + } let columnNamesForThisQuery = []; let tableNamesForThisQuery = []; if(this.columnNamesForSyntaxHighlighting){ diff --git a/website/assets/js/pages/policy-library.page.js b/website/assets/js/pages/policy-library.page.js index 39b33218e2d7..c904996df267 100644 --- a/website/assets/js/pages/policy-library.page.js +++ b/website/assets/js/pages/policy-library.page.js @@ -13,19 +13,19 @@ parasails.registerPage('policy-library', { //… }, mounted: async function () { - // if(this.algoliaPublicKey) { // Note: Docsearch will only be enabled if sails.config.custom.algoliaPublicKey is set. If the value is undefined, the documentation search will be disabled. - // docsearch({ - // appId: 'NZXAYZXDGH', - // apiKey: this.algoliaPublicKey, - // indexName: 'fleetdm', - // container: '#docsearch-query', - // placeholder: 'Search', - // debug: false, - // searchParameters: { - // 'facetFilters': ['section:queries'] - // }, - // }); - // } + if(this.algoliaPublicKey) { // Note: Docsearch will only be enabled if sails.config.custom.algoliaPublicKey is set. If the value is undefined, the documentation search will be disabled. + docsearch({ + appId: 'NZXAYZXDGH', + apiKey: this.algoliaPublicKey, + indexName: 'fleetdm', + container: '#docsearch-query', + placeholder: 'Search', + debug: false, + searchParameters: { + 'facetFilters': ['section:policies'] + }, + }); + } }, // ╦╔╗╔╔╦╗╔═╗╦═╗╔═╗╔═╗╔╦╗╦╔═╗╔╗╔╔═╗ diff --git a/website/assets/js/pages/vital-details.page.js b/website/assets/js/pages/vital-details.page.js index bb1a8154fa49..950369662dce 100644 --- a/website/assets/js/pages/vital-details.page.js +++ b/website/assets/js/pages/vital-details.page.js @@ -20,22 +20,20 @@ parasails.registerPage('vital-details', { if(['#apple','#linux','#windows','#chrome'].includes(window.location.hash)){ this.selectedPlatform = window.location.hash.split('#')[1]; } - - // Note: Docsearch will be disabled on this page until a search index has been created for it. // Note: Docsearch will only be enabled if sails.config.custom.algoliaPublicKey is set. If the value is undefined, the documentation search will be disabled. - // if(this.algoliaPublicKey) { - // docsearch({ - // appId: 'NZXAYZXDGH', - // apiKey: this.algoliaPublicKey, - // indexName: 'fleetdm', - // container: '#docsearch-query', - // placeholder: 'Search', - // debug: false, - // searchParameters: { - // 'facetFilters': ['section:queries'] - // }, - // }); - // } + if(this.algoliaPublicKey) { + docsearch({ + appId: 'NZXAYZXDGH', + apiKey: this.algoliaPublicKey, + indexName: 'fleetdm', + container: '#docsearch-query', + placeholder: 'Search', + debug: false, + searchParameters: { + 'facetFilters': ['section:vitals'] + }, + }); + } let columnNamesForThisQuery = []; let tableNamesForThisQuery = []; if(this.columnNamesForSyntaxHighlighting){ diff --git a/website/assets/styles/pages/policy-library.less b/website/assets/styles/pages/policy-library.less index 45a6f590ed28..ce3916a65e6c 100644 --- a/website/assets/styles/pages/policy-library.less +++ b/website/assets/styles/pages/policy-library.less @@ -326,7 +326,7 @@ [purpose='policy-search'] { margin-top: 32px; width: 100%; - .input-group { + .input-group, .DocSearch-Button { width: 100%; } } diff --git a/website/views/pages/policy-details.ejs b/website/views/pages/policy-details.ejs index 243224eb12b6..2d3551d22ad1 100644 --- a/website/views/pages/policy-details.ejs +++ b/website/views/pages/policy-details.ejs @@ -10,7 +10,7 @@ <%- policy.name %> - +
diff --git a/website/views/pages/policy-library.ejs b/website/views/pages/policy-library.ejs index 21ba6d625b38..958c6b6fc37d 100644 --- a/website/views/pages/policy-library.ejs +++ b/website/views/pages/policy-library.ejs @@ -8,7 +8,7 @@

A collection of policies, OS settings, and scripts for macOS, Windows, and Linux.

Contributions welcome over on GitHub.

- +
diff --git a/website/views/pages/vital-details.ejs b/website/views/pages/vital-details.ejs index be2792b39aa7..0cda750fa7d8 100644 --- a/website/views/pages/vital-details.ejs +++ b/website/views/pages/vital-details.ejs @@ -6,7 +6,7 @@

Vitals

Fleet’s built-in queries for collecting and storing important device information.

- +