You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-11Lines changed: 8 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -5,30 +5,27 @@
5
5
### Setup
6
6
7
7
1.`cp .env.example .env` - Copy the example environment configuration
8
-
2. Update the Algolia .env variables and path to the root of the generated API docs
8
+
2. Update the Algolia .env variables and path to the root of the generated API docs (only needed for populating indexes. use the `-j` flag to write to disk during development)
9
9
3.`yarn install` - Install dependencies
10
10
11
11
### Indexing API
12
12
13
-
Because of AWS rate limits, this project currently depends on having the API documentation downloaded locally. To generate the JSON files locally, follow the excellent documentation over at [ember-jsonapi-docs](https://github.com/ember-learn/ember-jsonapi-docs#running-the-app).
13
+
Use any valid AWS tokens to setup the `AWS_ACCESS_KEY` & `AWS_SECRET_KEY` to download the json api docs.
14
14
15
-
Once generated, use the following command to reindex algolia:
15
+
Once generated, use the following command to re-index algolia:
16
16
`yarn start -p api`
17
17
18
18
### Indexing Guides
19
19
20
20
Guides json files are currently not stored somewhere, because they are built on demand using [broccoli-static-site-json](https://github.com/stonecircle/broccoli-static-site-json) in [guides-app](https://github.com/ember-learn/guides-app).
21
21
To Generate the JSON files locally, clone [guides-app](https://github.com/ember-learn/guides-app), and run `ember build`.
22
22
23
-
Once generated, use the following command to reindex algolia:
23
+
Once generated, use the following command to re-index algolia:
24
24
`yarn start -p guides`
25
25
26
-
27
26
## .env variables
28
27
29
-
1.`ALGOLIA_APP_ID` - The Algolia application ID, found in "API Keys" section of the Algolia dashboard
30
-
2.`ALGOLIA_ADMIN_KEY` - The Algolia admin key, found in "API Keys" section of the Algolia dashboard
31
-
3.`API_DOCS_PATH` - The path to the root of the built documentation from [ember-jsonapi-docs](https://github.com/ember-learn/ember-jsonapi-docs#running-the-app)
32
-
3.`GUIDES_DOCS_PATH` - The path to the root of the built documentation from [guides-app](https://github.com/ember-learn/guides-app)
33
-
4.`DEBUG` - Outputs helpful debug information
34
-
5.`DRIVER` - Controls the type of the script's output. Available options: `algolia`, `json`. `json` can be helpful for debugging the output of the script without wasting any indexing operations on `algolia`.
28
+
1.`GUIDES_DOCS_PATH` - The path to the root of the built documentation from [guides-app](https://github.com/ember-learn/guides-app)
29
+
2.`ALGOLIA_APP_ID` - The Algolia application ID, found in "API Keys" section of the Algolia dashboard
30
+
3.`ALGOLIA_ADMIN_KEY` - The Algolia admin key, found in "API Keys" section of the Algolia dashboard
31
+
4.`AWS_ACCESS_KEY` & `AWS_SECRET_KEY` - Any valid AWS token that can be used to read our public json docs
0 commit comments