krustlet / krustlet-docs

Documentation for Krustlet
https://docs.deislabs.io/
Apache License 2.0
4 stars 12 forks source link
docs hugo static-site

Krustlet Docs

:book: This repo contains the Krustlet Docs
:ship: Also the website config to generate docs.krustlet.dev
:link: Looking for the main Krustlet.dev website? Visit krustlet.dev

Editing Content

docs.krustlet.dev is a static site. The documentation content needs to be located at docs/content/docs/.

To ensure the docs content renders correctly in the theme, each page will need to have front matter metadata. Example front matter:

---
title: "Docs Home"
linkTitle: "Home"
description: "Krustlet Docs"
weight: 1
type: docs
---

Front Matter Notes:

Site Development

Notes

Install dependencies:

Run the site:

// install npm packages
yarn

// rebuild the site (to compile latest css/js)
hugo

// or serve the site for local dev
hugo serve

Deploying the site:

The site auto deploys the main branch via Netlify. Once pull requests are merged the changes will appear at docs.krustlet.dev after a couple of minutes. Check the logs for details.

Netlify Status

hugo serve will run the site locally at localhost:1313