To build the docs locally, from the root of the chef-web-docs directory, run the command:
make serve
Adding a new page has two steps:
From the root of the chef-web-docs directory, add a completely new page with the command:
hugo new content/page_name.md
Navigate to your new page in the chef-web-docs/content directory and edit the frontmatter accordingly.
Adding, removing, and changing the placement of a page in the left nav involves three steps:
config.toml fileContact the documentation team if you have any questions about adding or removing pages.
Each page starts with TOML front matter which contains metadata about the page and places it properly in the left navigation menu. Below is the TOML front matter for this page which you can use as a reference. Contact the Docs Team if you have any questions about properly formatting TOML front matter.
+++
title = "Example Documentation Page"
description = "DESCRIPTION"
draft = false
gh_repo = "chef-web-docs"
product = ["client", "server"]
aliases = "/style_guide.html"
[menu]
[menu.infra]
title = "Example Page"
identifier = "infra/Example Documentation Page"
parent = "infra"
weight = 40
+++
true if you don’t want Hugo to build the page.chef-server, chef-workstation, chef-web-docs, automate.product is a list of Chef products that are relevant to a page. Relevant values:automatedesktopclientserverhabitatinspecworkstationThis list is used to facet search results in our documentation search by the product. Each section of the documentation has a default product parameter configured using Front Matter Cascade, however you may want to add a product if a page references more than one Chef product. For example, if a page in the Chef InSpec documentation describes passing data to Chef Automate, you may want to add product = ["inspec", "automate"] to the page frontmatter.
overview/style, the page file is style_guide.md and the page title is Docs Style Guide, so the full page identifier is overview/style/style_guide.md Docs Style Guide
overview/style.
© Chef Software, Inc.
Licensed under the Creative Commons Attribution 3.0 Unported License.
The Chef™ Mark and Chef Logo are either registered trademarks/service marks or trademarks/servicemarks of Chef, in the United States and other countries and are used with Chef Inc's permission.
We are not affiliated with, endorsed or sponsored by Chef Inc.
https://docs.chef.io/style_hugo/