Fix serve.sh (#292)

Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
David Young authored and GitHub committed 2023-03-24 23:15:36 +00:00
1 parent 121f15f1b6
commit db3740db46
3 files changed
+8 -6

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ The process is basically:
1. [Fork the repo](https://help.github.com/en/github/getting-started-with-github/fork-a-repo) 1. [Fork the repo](https://help.github.com/en/github/getting-started-with-github/fork-a-repo)
2. Clone your forked repo locally 2. Clone your forked repo locally
3. Make a new branch for your recipe (*not strictly necessary, but it helps to differentiate multiple in-flight recipes*) 3. Make a new branch for your recipe (*not strictly necessary, but it helps to differentiate multiple in-flight recipes*)
4. Create your new recipe as a markdown file within the existing structure of the [docs folder](https://github.com/geek-cookbook/geek-cookbook/tree/main/docs) 4. Create your new recipe as a markdown file within the existing structure of the [docs folder](https://github.com/geek-cookbook/geek-cookbook/tree/main/docs) (see `docs/recipes/template.md` and `doc/recipes/kubernetes/template.md` for examples)
5. Add your recipe to the navigation by editing [mkdocs.yml](https://github.com/geek-cookbook/geek-cookbook/blob/main/mkdocs.yml#L32) 5. Add your recipe to the navigation by editing [mkdocs.yml](https://github.com/geek-cookbook/geek-cookbook/blob/main/mkdocs.yml#L32)
6. Test locally by running `./scripts/serve.sh` in the repo folder (*this launches a preview in Docker*), and navigating to <http://localhost:8123> 6. Test locally by running `./scripts/serve.sh` in the repo folder (*this launches a preview in Docker*), and navigating to <http://localhost:8123>
7. Rinse and repeat until you're ready to submit a PR 7. Rinse and repeat until you're ready to submit a PR
+4 -1
View File
@@ -1,4 +1,7 @@
#!/bin/bash #!/bin/bash
# docker pull ghcr.io/geek-cookbook/mkdocs-material-insiders # docker pull ghcr.io/geek-cookbook/mkdocs-material-insiders
docker build --build-arg FROM_SOURCE=ghcr.io/geek-cookbook/mkdocs-material-insiders . -t funkypenguin/mkdocs-material docker build --build-arg FROM_SOURCE=ghcr.io/geek-cookbook/mkdocs-material-insiders . -t funkypenguin/mkdocs-material
docker run --rm --name mkdocs-material -it -p 8123:8000 -v ${PWD}:/docs funkypenguin/mkdocs-material serve -f mkdocs-insiders.yml --dev-addr 0.0.0.0:8000 --dirtyreload docker run --rm --name mkdocs-material -it -p 8123:8000 -v ${PWD}:/docs -e PROD_BUILD=false funkypenguin/mkdocs-material serve \
--dev-addr 0.0.0.0:8000 \
--dirtyreload \
--config-file mkdocs-insiders.yml
+3 -4
View File
@@ -1,7 +1,6 @@
#!/bin/bash #!/bin/bash
#docker pull squidfunk/mkdocs-material:latest docker pull squidfunk/mkdocs-material:latest
#docker build . -t funkypenguin/mkdocs-material docker build . -t funkypenguin/mkdocs-material
docker run --rm --name mkdocs-material -it -p 8123:8000 -v ${PWD}:/docs -e PROD_BUILD=false funkypenguin/mkdocs-material serve \ docker run --rm --name mkdocs-material -it -p 8123:8000 -v ${PWD}:/docs -e PROD_BUILD=false funkypenguin/mkdocs-material serve \
--dev-addr 0.0.0.0:8000 \ --dev-addr 0.0.0.0:8000 \
--dirtyreload \ --dirtyreload
--config-file mkdocs-insiders.yml