diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js
index da8dde97b..975d13af3 100644
--- a/docs/.vuepress/config.js
+++ b/docs/.vuepress/config.js
@@ -26,7 +26,10 @@ module.exports = {
{ text: "Recipes", link: "/recipes/" },
{ text: "Community", link: "/community/" }
],
-
+ algolia: {
+ apiKey: "1653e881f3a6c17d3ad37f4d4c428e20",
+ indexName: "pomerium"
+ },
sidebar: {
"/docs/": [
{
diff --git a/docs/.vuepress/theme/components/AlgoliaSearchBox.vue b/docs/.vuepress/theme/components/AlgoliaSearchBox.vue
index a7a6c0985..ef26763fe 100644
--- a/docs/.vuepress/theme/components/AlgoliaSearchBox.vue
+++ b/docs/.vuepress/theme/components/AlgoliaSearchBox.vue
@@ -1,158 +1,213 @@
-
+ &:before {
+ border-color: #999;
+ }
+
+ [class*=ds-dataset-] {
+ border: none;
+ padding: 0;
+ }
+
+ .ds-suggestions {
+ margin-top: 0;
+ }
+
+ .ds-suggestion {
+ border-bottom: 1px solid $borderColor;
+ }
+ }
+
+ .algolia-docsearch-suggestion--highlight {
+ color: #2c815b;
+ }
+
+ .algolia-docsearch-suggestion {
+ border-color: $borderColor;
+ padding: 0;
+
+ .algolia-docsearch-suggestion--category-header {
+ padding: 5px 10px;
+ margin-top: 0;
+ background: $accentColor;
+ color: #fff;
+ font-weight: 600;
+
+ .algolia-docsearch-suggestion--highlight {
+ background: rgba(255, 255, 255, 0.6);
+ }
+ }
+
+ .algolia-docsearch-suggestion--wrapper {
+ padding: 0;
+ }
+
+ .algolia-docsearch-suggestion--title {
+ font-weight: 600;
+ margin-bottom: 0;
+ color: $textColor;
+ }
+
+ .algolia-docsearch-suggestion--subcategory-column {
+ vertical-align: top;
+ padding: 5px 7px 5px 5px;
+ border-color: $borderColor;
+ background: #f1f3f5;
+
+ &:after {
+ display: none;
+ }
+ }
+
+ .algolia-docsearch-suggestion--subcategory-column-text {
+ color: #555;
+ }
+ }
+
+ .algolia-docsearch-footer {
+ border-color: $borderColor;
+ }
+
+ .ds-cursor .algolia-docsearch-suggestion--content {
+ background-color: #e7edf3 !important;
+ color: $textColor;
+ }
+ }
+}
+
+@media (min-width: $MQMobile) {
+ .algolia-search-wrapper {
+ .algolia-autocomplete {
+ .algolia-docsearch-suggestion {
+ .algolia-docsearch-suggestion--subcategory-column {
+ float: none;
+ width: 150px;
+ min-width: 150px;
+ display: table-cell;
+ }
+
+ .algolia-docsearch-suggestion--content {
+ float: none;
+ display: table-cell;
+ width: 100%;
+ vertical-align: top;
+ }
+
+ .ds-dropdown-menu {
+ min-width: 515px !important;
+ }
+ }
+ }
+ }
+}
+
+@media (max-width: $MQMobile) {
+ .algolia-search-wrapper {
+ .ds-dropdown-menu {
+ min-width: calc(100vw - 4rem) !important;
+ max-width: calc(100vw - 4rem) !important;
+ }
+
+ .algolia-docsearch-suggestion--wrapper {
+ padding: 5px 7px 5px 5px !important;
+ }
+
+ .algolia-docsearch-suggestion--subcategory-column {
+ padding: 0 !important;
+ background: white !important;
+ }
+
+ .algolia-docsearch-suggestion--subcategory-column-text:after {
+ content: ' > ';
+ font-size: 10px;
+ line-height: 14.4px;
+ display: inline-block;
+ width: 5px;
+ margin: -3px 3px 0;
+ vertical-align: middle;
+ }
+ }
+}
+
\ No newline at end of file