This website is built using Docusaurus 2, a modern static website generator.
$ yarn
$ yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
$ yarn build
This command generates static content into the build
directory and can be served using any static contents hosting service.
-
Clone this repository locally and create two files at root:
APPLICATION_ID=YOUR_APP_ID API_KEY=YOUR_API_KEY
The api key is defined in the algolia dashboard with 3 operations allowed:
addObject
,editSettings
,deleteIndex
The contents of this file can be copied from the official docusaurus 2 repo. Change index_name, start_urls & sitemap_urls accordingly.
-
Run the docker script locally inside the repository. *You need to have
docker
andjq
locally installeddocker run -it --env-file=.env -e "CONFIG=$(cat ./config.json | jq -r tostring)" algolia/docsearch-scraper
-
Check the updated
index_name
inside the algolia console.
$ GIT_USER=<Your GitHub username> USE_SSH=true yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages
branch.