Skip to content

Commit 112a0e0

Browse files
author
Siva Guruvareddiar
committed
cleanup
1 parent d1d210d commit 112a0e0

File tree

2 files changed

+36
-16
lines changed

2 files changed

+36
-16
lines changed

README.md

Lines changed: 35 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,62 @@
1-
# observability-best-practices
1+
# Observability Best Practices
22

33
## Welcome
44

55
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!
66

77
## How to run/develop this site
88

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.
1010

11-
1) To get started with development, make sure you have a current version of `python` with `pip` installed.
11+
### Installation
1212

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
1427

1528
```
16-
pip install mkdocs
17-
pip install mkdocs-material
18-
pip install pymdown-extensions
29+
$ yarn build [or] npm run build
1930
```
2031

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.
2533

26-
3) Build and run locally on http://127.0.0.1:8000/
34+
### Deployment
2735

36+
Using SSH with yarn:
2837
```
29-
mkdocs serve
38+
$ USE_SSH=true yarn deploy
3039
```
3140

32-
If you want to Build and run Japanese content
41+
Using SSH with npm:
3342
```
34-
mkdocs serve -f mkdocs.ja.yaml
43+
$ USE_SSH=true npm run serve
3544
```
3645

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+
3756
## Security
3857

3958
See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more information.
4059

4160
## License
4261

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.

docusaurus/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ You need to install [npm](https://docs.npmjs.com/downloading-and-installing-node
1212
### Installation
1313

1414
```
15+
cd docusaurus
1516
$ (yarn | npm ) install
1617
```
1718

0 commit comments

Comments
 (0)