-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175 from aws-observability/cleanup
cleanup
- Loading branch information
Showing
2 changed files
with
36 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters