|
1 | | -# observability-best-practices |
| 1 | +# Observability Best Practices |
2 | 2 |
|
3 | 3 | ## Welcome |
4 | 4 |
|
5 | 5 | This is the source for the [AWS Observability Best Practices site](https://aws-observability.github.io/observability-best-practices/). Everyone is welcome to contribute here, not just AWS employees! |
6 | 6 |
|
7 | 7 | ## How to run/develop this site |
8 | 8 |
|
9 | | -This site is developed with `mkdocs` which is similar to Hugo with an auto-reload feature. Just save your progress and watch it refresh your browser. |
| 9 | +This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator. You need to install [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as a prerequisite. |
10 | 10 |
|
11 | | -1) To get started with development, make sure you have a current version of `python` with `pip` installed. |
| 11 | +### Installation |
12 | 12 |
|
13 | | -2) Install the following packages: |
| 13 | +``` |
| 14 | +cd docusaurus |
| 15 | +$ (yarn | npm ) install |
| 16 | +``` |
| 17 | + |
| 18 | +### Local Development |
| 19 | + |
| 20 | +``` |
| 21 | +$ yarn start [or] npm run start |
| 22 | +``` |
| 23 | + |
| 24 | +This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. |
| 25 | + |
| 26 | +### Build |
14 | 27 |
|
15 | 28 | ``` |
16 | | -pip install mkdocs |
17 | | -pip install mkdocs-material |
18 | | -pip install pymdown-extensions |
| 29 | +$ yarn build [or] npm run build |
19 | 30 | ``` |
20 | 31 |
|
21 | | -For more details or assistance setting up, see: |
22 | | -* **mkdocs** - https://www.mkdocs.org/user-guide/installation/#installing-mkdocs |
23 | | -* **mkdocs-material** - https://squidfunk.github.io/mkdocs-material/getting-started/ |
24 | | -* **pymdown-extensions** - https://facelessuser.github.io/pymdown-extensions/installation/ |
| 32 | +This command generates static content into the `build` directory and can be served using any static contents hosting service. |
25 | 33 |
|
26 | | -3) Build and run locally on http://127.0.0.1:8000/ |
| 34 | +### Deployment |
27 | 35 |
|
| 36 | +Using SSH with yarn: |
28 | 37 | ``` |
29 | | -mkdocs serve |
| 38 | +$ USE_SSH=true yarn deploy |
30 | 39 | ``` |
31 | 40 |
|
32 | | -If you want to Build and run Japanese content |
| 41 | +Using SSH with npm: |
33 | 42 | ``` |
34 | | -mkdocs serve -f mkdocs.ja.yaml |
| 43 | +$ USE_SSH=true npm run serve |
35 | 44 | ``` |
36 | 45 |
|
| 46 | +Not using SSH: |
| 47 | + |
| 48 | +``` |
| 49 | +$ GIT_USER=<Your GitHub username> yarn deploy |
| 50 | +``` |
| 51 | + |
| 52 | +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. |
| 53 | + |
| 54 | + |
| 55 | + |
37 | 56 | ## Security |
38 | 57 |
|
39 | 58 | See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information. |
40 | 59 |
|
41 | 60 | ## License |
42 | 61 |
|
43 | | -This library is licensed under the MIT-0 License. See the LICENSE file. |
| 62 | +This library is licensed under the MIT-0 License. See the LICENSE file. |
0 commit comments