rnpgp / rnpgp.github.io

Official RNP site
https://www.rnpgp.com
1 stars 3 forks source link

Add Algolia search #11

Closed ronaldtse closed 5 years ago

ronaldtse commented 5 years ago

rnpgp.com has been approved at Algolia Docsearch.

<!-- at the end of the HEAD --> 
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" /> 

<!-- at the end of the BODY --> 
<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: '0193b06d928ee52f653c6e5ea95d9f97', 
indexName: 'rnpgp', 
inputSelector: '### REPLACE ME ####', 
debug: false // Set debug to true if you want to inspect the dropdown 
}); 
</script> 

Please open a pull request if want to leverage your configuration!

strogonoff commented 5 years ago

just in case, for an individual project it’s enough to just provide API key and index name to configure site with, and if Algolia initialization code is changing then that should probably be filed against jekyll-theme-open-project.

strogonoff commented 5 years ago

(if you copy/paste Algolia’s copy then no problem of course)