Skip to content

Commit

Permalink
Merge pull request #175 from aws-observability/cleanup
Browse files Browse the repository at this point in the history
cleanup
  • Loading branch information
sguruvar authored Oct 2, 2024
2 parents f345e6a + 112a0e0 commit a01d630
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 16 deletions.
51 changes: 35 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,62 @@
# observability-best-practices
# Observability Best Practices

## Welcome

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!

## How to run/develop this site

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

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

2) Install the following packages:
```
cd docusaurus
$ (yarn | npm ) install
```

### Local Development

```
$ yarn start [or] npm run 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.

### Build

```
pip install mkdocs
pip install mkdocs-material
pip install pymdown-extensions
$ yarn build [or] npm run build
```

For more details or assistance setting up, see:
* **mkdocs** - https://www.mkdocs.org/user-guide/installation/#installing-mkdocs
* **mkdocs-material** - https://squidfunk.github.io/mkdocs-material/getting-started/
* **pymdown-extensions** - https://facelessuser.github.io/pymdown-extensions/installation/
This command generates static content into the `build` directory and can be served using any static contents hosting service.

3) Build and run locally on http://127.0.0.1:8000/
### Deployment

Using SSH with yarn:
```
mkdocs serve
$ USE_SSH=true yarn deploy
```

If you want to Build and run Japanese content
Using SSH with npm:
```
mkdocs serve -f mkdocs.ja.yaml
$ USE_SSH=true npm run serve
```

Not using SSH:

```
$ GIT_USER=<Your GitHub username> 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.



## Security

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

## License

This library is licensed under the MIT-0 License. See the LICENSE file.
This library is licensed under the MIT-0 License. See the LICENSE file.
1 change: 1 addition & 0 deletions docusaurus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ You need to install [npm](https://docs.npmjs.com/downloading-and-installing-node
### Installation

```
cd docusaurus
$ (yarn | npm ) install
```

Expand Down

0 comments on commit a01d630

Please sign in to comment.