Adding the Doc
Contributing a doc
Contributing a new document can be achieved with the following, high-level flow:
- Create a new Markdown e.g.
your-doc-id.md
in the appropriate directory under thedocs
directory (or create a new directory) - Add the frontmatter (including the unique ID)
- Add the document ID to an existing or new sidebar/sidebar category
- Add the content
Frontmatter
Each doc requires a frontmatter header at the top of the doc
Example:
---
id: your-doc-id
title: My Awesome Tutorial
sidebar_label: My Awesome Tutorial
description: A really cool tutorial about something awesome!
keywords:
- awesome
- tutorial
---
note
If you're not sure where to begin, feel free to use an existing doc as boilerplate. Just remember that each document requires a unique ID.
Sidebar
The sidebar is generated from the sidebars.js
file located in the root folder. Add your docs id
along with path relative to the docs folder to the appropriate sidebar items.
module.exports = {
cloud: [
// Add your new doc inside an existing sidebar
{
type: "category",
label: "Tutorials", // Category label
items: ["tutorials/new-doc-id", "tutorials/your-doc-id"], // Document ID (including relative path after docs)
},
],
};