Contributing to minikube documentation

minikube’s documentation is in Markdown, and generated using the following tools:

In production, the minikube website is served using Netlify

Small or cosmetic contributions

Use GitHub’s repositories and markdown editor as described by Kubernetes’s general guideline for documentation contributing

Local documentation website

To serve documentation pages locally, clone the minikube repository and run:

  1. make site

Notes :

  • On GNU/Linux, golang package shipped with the distribution may not be recent enough. Use the latest version.
  • On Windows, our site currently causes Hugo to panic.

Lint

We recommend installing markdownlint to find issues with your markdown file. Once installed, you can use this handy target:

  1. make mdlint

Style Guidelines

We follow the Kubernetes Documentation Style Guide

Linking between documents

For compile-time checking of links, use one of the following forms to link between documentation pages:

  1. {{< ref "document.md" >}}
  2. {{< ref "#anchor" >}}
  3. {{< ref "document.md#anchor" >}}
  4. {{< ref "/blog/my-post" >}}
  5. {{< ref "/blog/my-post.md" >}}
  6. {{< relref "document.md" >}}
  7. {{< relref "#anchor" >}}
  8. {{< relref "document.md#anchor" >}}

For more information, please see Hugo: Links and Cross References

Pull Request Previews

When reviewing documentation PR’s, look for the test that says:

✓ deploy/netlify Deploy preview ready! Details

The Details link will point to a site preview URL in the form of:

https://deploy-preview-PR#—kubernetes-sigs-minikube.netlify.com

Last modified April 25, 2022: Fix GitHub word for document (892cb035d)