Folder Structure
├── content
│ └── en
│ └── docs
├── data
│ └── en
│ └── docs
├── static
│ ├── manifest.json
│ └── sw.js
├── hugo.yaml
└── themes
└── E25DXInitialize Our First Documentation
Recap
Here, we are going to create the documentation’s overview and two more pages belongs to two sections in the sidebar. For example, “Documentation::Overview”, “Basics::Hello World” and “Beyond The Basics::Modules”
Create new
content/en/docsfolder to store.mdfiles for the pages anddata/en/docs/folder to store.yamlfiles for the sidebar.mkdir -p content/en/docs && mkdir -p data/en/docsAdd
content/en/docs/_overview.mdfor overview.--- title: Overview url: "docs/overview" aliases: - "/docs" --- Overview/ Any MarkdownAdd
content/en/docs/a1.hello-world.mdas the first page of first section.--- title: Hello World slug: hello-world --- Hello World/ Any MarkdownAdd
content/en/docs/b1.modules.mdas the first page of the second section.--- title: Modules slug: modules --- Module/ Any MarkdownAdd
data/en/docs/sidebar.ymlfor section titles and page titles.- title: Documentation pages: - title: Overview - title: Basics pages: - title: Hello World - title: Beyond The Basics pages: - title: Modules