| 1 | Docs |
| 2 | ---- |
| 3 | |
| 4 | This directory contains [hugo](https://gohugo.io) documentation to be published in Github pages. |
| 5 | |
| 6 | Run Locally |
| 7 | ----------- |
| 8 | |
| 9 | ``` |
| 10 | hugo server -D |
| 11 | ``` |
| 12 | |
| 13 | This will serve the docs on [http://localhost:1313](http://localhost:1313). |
| 14 | |
| 15 | Deploy to Github Pages |
| 16 | ---------------------- |
| 17 | |
| 18 | Changes to the `main` branch will be deployed automatically with Github actions. |
| 19 | |
| 20 | Update Geekdocs |
| 21 | --------------- |
| 22 | |
| 23 | The docs use the [Geekdocs](https://geekdocs.de/) theme. The theme is checked in to Github in the `./docs/themes/hugo-geekdoc/` folder. To update [Geekdocs](https://geekdocs.de/), remove the current folder and create a new one with the latest [release](https://github.com/thegeeklab/hugo-geekdoc/releases). There are no local modifications in `./docs/themes/hugo-geekdoc/`. |
| 24 | |
| 25 | Notes |
| 26 | ----- |
| 27 | |
| 28 | Here's how the initial `docs/` folder was set up: |
| 29 | |
| 30 | ``` |
| 31 | hugo new site docs |
| 32 | cd docs/ |
| 33 | mkdir -p themes/hugo-geekdoc/ |
| 34 | curl -L https://github.com/thegeeklab/hugo-geekdoc/releases/download/v0.41.1/hugo-geekdoc.tar.gz | tar -xz -C themes/hugo-geekdoc/ --strip-components=1 |
| 35 | ``` |
| 36 | |
| 37 | Create the initial `hugo.toml` file as described in [https://geekdocs.de/usage/getting-started/](https://geekdocs.de/usage/getting-started/). |