2021-07-23 11:18:53 +00:00
2021-07-23 11:35:15 +00:00
[Docsy ](https://github.com/google/docsy ) is a Hugo theme for technical documentation sites, providing easy site navigation, structure, and more. This **Minikube project** uses the Docsy theme for [Minikube Website ](https://minikube.sigs.k8s.io/docs/ ).
2019-07-03 11:32:50 +00:00
You can find detailed theme instructions in the Docsy user guide: https://docsydocs.netlify.com/docs/
2021-07-23 11:35:15 +00:00
## Running the website locally
2019-07-03 11:32:50 +00:00
2021-07-23 11:35:15 +00:00
Clone the minikube project fork with option ```--recurse-submodules --depth 1 ``` to download and update submodule dependencies.
2019-07-03 11:32:50 +00:00
```bash
2021-07-23 11:35:15 +00:00
git clone --recurse-submodules --depth 1 https://github.com/kubernetes/minikube.git # replace path with your github fork of minikube
cd minikube/site
hugo server # to server site locally
2019-07-03 11:32:50 +00:00
```
The theme is included as a Git submodule:
```bash
▶ git submodule
2021-07-23 11:35:15 +00:00
2536303cad19991c673037f4f16332075141364a themes/docsy (2536303)
2019-07-03 11:32:50 +00:00
```
If you want to do SCSS edits and want to publish these, you need to install `PostCSS` (not needed for `hugo server` ):
```bash
npm install
```
2021-07-23 11:35:15 +00:00
### Common Issues
2019-07-03 11:32:50 +00:00
```bash
2021-07-23 11:35:15 +00:00
Start building sites …
hugo v0.86.0+extended darwin/amd64 BuildDate=unknown
Error: Error building site: "/minikube/site/content/en/docs/contrib/releasing/binaries.md:64:1": failed to extract shortcode: template for shortcode "alert" not found
Built in 667 ms
2019-07-03 11:32:50 +00:00
```
2022-01-29 00:41:41 +00:00
This indicates the submodules are not updated.
2021-07-23 11:35:15 +00:00
Please run the following command to fix.
``` git submodule update --init --recursive ```
2019-07-03 11:32:50 +00:00