Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/john-cd/cheatsheets
John's Cheatsheets
https://github.com/john-cd/cheatsheets
cheatsheet markdown mkdocs
Last synced: 2 days ago
JSON representation
John's Cheatsheets
- Host: GitHub
- URL: https://github.com/john-cd/cheatsheets
- Owner: john-cd
- Created: 2017-03-22T04:46:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-08T02:15:09.000Z (8 months ago)
- Last Synced: 2024-03-08T23:23:23.712Z (8 months ago)
- Topics: cheatsheet, markdown, mkdocs
- Language: Dockerfile
- Homepage: http://john-cd.com/cheatsheets
- Size: 4.87 MB
- Stars: 24
- Watchers: 6
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cheatsheets
[John's Cheatsheets](https://john-cd.com/cheatsheets/)
[John's Main Website](https://john-cd.com)
## Repo structure
This website is generated using [MkDocs](https://mkdocs.org) and [Material for MkDocs](https://squidfunk.github.io/mkdocs-material/).
The source Markdown files are found in the `docs` folder. The resulting HTML / JS is found in `site`. There is also a `drafts` folder for Markdown files that are not ready for publication.
`.devcontainer` contains the [Dev Container](https://code.visualstudio.com/docs/devcontainers/containers) file and associated [Docker Compose](https://docs.docker.com/compose/) and [Dockerfile](https://docs.docker.com/reference/dockerfile/) setup. `github/workflows` contains the GitHub Action continuous deployment workflow.
## Contributing
### Install
If you use [Visual Studio Code](https://code.visualstudio.com/), install the [Dev Container extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers). Otherwise, consider the [Dev Container CLI](https://containers.dev/supporting#devcontainer-cli). `Dev Container` allows you to edit and test the web site within a `Docker` container.
Alternatively, install the required tools on your development machine directly, including [Python](https://www.python.org/), []
```shell
python -m pip install mkdocs --user
python -m pip install mkdocs-material --user
```### Basic MkDocs Commands
- ``mkdocs new [dir-name]`` - Create a new project.
- ``mkdocs serve`` - Start the live-reloading docs server.
- ``mkdocs build`` - Build the documentation site.
- ``mkdocs help`` - Print the help message.Within a Dev Container, you may need to use `mkdocs serve --dev-addr 0.0.0.00:8000`.
### Docker Compose
To test the Docker Compose setup, try
```bash
docker compose -f .devcontainer/compose.yaml -f .devcontainer/compose.override.yaml up --build
docker compose down
```and
```bash
docker compose -f .devcontainer/compose.yaml -f .devcontainer/compose-ci.yaml up --build
docker compose down
```You may also build the image directly, e.g.: `docker build --file .devcontainer/Dockerfile --target dev --tag johncd/cheatsheets:latest .`
To push an image to your registry, use `docker push myregistry.com/myapp`.Consult Docker's [getting started](https://docs.docker.com/go/get-started-sharing/) docs for more detail on building and pushing.