Skip to content

Commit

Permalink
docs: enable algolia search (#1857)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkode authored Jul 2, 2021
1 parent 57da362 commit 54e2236
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ github_project_repo = "https://github.com/cs3org/reva"
github_subdir = "docs"

# Google Custom Search Engine ID. Remove or comment out to disable search.
gcs_engine_id = "010913146518163072247:tinkle2veql"
# gcs_engine_id = "010913146518163072247:tinkle2veql"

# Enable Algolia DocSearch
algolia_docsearch = false
algolia_docsearch = true

# User interface configuration
[params.ui]
Expand All @@ -94,6 +94,7 @@ sidebar_menu_compact = true
breadcrumb_disable = false
# Set to true to hide the sidebar search box (the top nav search box will still be displayed if search is enabled)
sidebar_search_disable = true

# Set to false if you don't want to display a logo (/assets/icons/logo.svg) in the top nav bar
navbar_logo = true
# Set to true to disable the About link in the site footer
Expand Down
8 changes: 8 additions & 0 deletions docs/layouts/partials/hooks/body-end.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
<script type="text/javascript"> docsearch({
apiKey: '787396c87ef95cbab7aae628486699cf',
indexName: 'reva',
inputSelector: '.td-search-input',
debug: false // Set debug to true if you want to inspect the dropdown
});
</script>
1 change: 1 addition & 0 deletions docs/layouts/partials/hooks/head-end.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />

0 comments on commit 54e2236

Please sign in to comment.