From 8a531fe27033ab9d5fbf9bbea9cb2a49382b40cd Mon Sep 17 00:00:00 2001 From: Oliver Beckstein Date: Sun, 21 Nov 2021 22:02:32 -0700 Subject: [PATCH 1/2] update algolia to new index and search box - use new appId and key (from UI) - use newer integration with docs from https://github.com/algolia/docsearch - new CSS - new JS --- _config.yml | 7 +++++-- _includes/footer.html | 12 ++++++------ _includes/head.html | 2 +- _includes/sidebar.html | 2 +- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/_config.yml b/_config.yml index 9d87fb5e..a10d0efe 100644 --- a/_config.yml +++ b/_config.yml @@ -91,9 +91,12 @@ docs: name: Quick Start Guide url: https://userguide.mdanalysis.org/stable/examples/quickstart.html +# The algolia.read_only_api_key may be safely put into frontend code +# and this is not a security issue. algolia: - index_name: mdanalysis - read_only_api_key: 307d780013d06fdde7a4eae462db0e74 + index_name: mdanalysis + appId: Y8HJT3NO22 + read_only_api_key: 68fa6789d0a275a311f68914e0c2366e numfocus: donate: https://numfocus.org/donate-to-mdanalysis diff --git a/_includes/footer.html b/_includes/footer.html index a114f51e..ad8bf9ed 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,12 +1,12 @@ - - + diff --git a/_includes/head.html b/_includes/head.html index b9954631..f1312ade 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -39,5 +39,5 @@ - + diff --git a/_includes/sidebar.html b/_includes/sidebar.html index fb3cbec4..65845181 100644 --- a/_includes/sidebar.html +++ b/_includes/sidebar.html @@ -9,7 +9,7 @@

{{ site.description }}

- +
Enable javascript for search.