File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,17 @@ The developers.linode.com website built with Gatsby and including the API Docs
8
8
9
9
` yarn develop `
10
10
11
- you may need to install the gastby CLI as well ` npm install -g gatsby-cli `
11
+ you may need to install the Gatsby CLI as well ` npm install -g gatsby-cli `
12
12
13
13
Check out the site at http://localhost:8000/
14
+
15
+ ### Build
16
+
17
+ The API documentation in this site is also indexed in Algolia, so that
18
+ it can be searched across Linode's services. The scripts for this are
19
+ located in the ` /search ` directory. In order to run them correctly,
20
+ you will need to create a ` .env ` file in the root directory with the
21
+ following values:
22
+
23
+ ALGOLIA_API_KEY=(your key here)
24
+ ALGOLIA_API_SECRET=(your secret here)
Original file line number Diff line number Diff line change 41
41
],
42
42
"license" : " MIT" ,
43
43
"scripts" : {
44
- "build" : " ./getBaseTheme.sh && gatsby build" ,
44
+ "build" : " ./getBaseTheme.sh && gatsby build && node search/buildIndex.js " ,
45
45
"develop" : " ./getBaseTheme.sh && gatsby develop" ,
46
46
"start" : " npm run develop" ,
47
47
"serve" : " gatsby serve" ,
You can’t perform that action at this time.
0 commit comments