diff --git a/.gitmodules b/.gitmodules index 5aa5f921..121edf61 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "themes/plgd"] path = themes/plgd url = git@github.com:plgd-dev/www-theme.git +[submodule "themes/hugo-algolia"] + path = themes/hugo-algolia + url = https://github.com/replicatedhq/hugo-algolia.git diff --git a/config/_default/config.yaml b/config/_default/config.yaml index f38563ca..3098b704 100644 --- a/config/_default/config.yaml +++ b/config/_default/config.yaml @@ -27,6 +27,7 @@ outputs: - RSS - REDIR - HEADERS + - ALGOLIA section: - HTML - RSS @@ -44,6 +45,11 @@ outputFormats: baseName: _headers isPlainText: true notAlternative: true + Algolia: + baseName: "algolia" + isPlainText: true + mediaType: "application/json" + notAlternative: true caches: getjson: dir: ':cacheDir/:project' @@ -75,4 +81,8 @@ taxonomies: category: categories params: githubRepository: 'https://github.com/plgd-dev/doc/' + algolia: + indexName: "doc" + apiKey: "31dbe24685b8a1a7025c12098b32df37" + appId: "42D6VHXINQ" --- \ No newline at end of file diff --git a/themes/hugo-algolia b/themes/hugo-algolia new file mode 160000 index 00000000..b20d9a4e --- /dev/null +++ b/themes/hugo-algolia @@ -0,0 +1 @@ +Subproject commit b20d9a4e423acf75358b95663d1317f6448bc51c diff --git a/themes/plgd b/themes/plgd index 6ea8a18b..fe010a8c 160000 --- a/themes/plgd +++ b/themes/plgd @@ -1 +1 @@ -Subproject commit 6ea8a18bf51dca9e871d7f04f3a63926bb5df677 +Subproject commit fe010a8c15b3834861283fe0cc0bbbaed9f206ee