The docs layout is ideal for documentation pages and follows the document style on GitHub Docs.
To use the Docs layout in your Jekyll site, create a new file in your _docs collection with the following front matter:
---
title: Your Documentation Title
layout: docs
---
Add the following to your _config.yml:
collections:
docs:
output: true
sort_by: order
defaults:
- scope:
path: "" # an empty string here means all files in the project
type: "docs"
values:
layout: "docs"
image: /assets/img/default.png # The default image used for social and posts.
permalink: /docs/:path
edit_url: "https://github.com/{user}/{repo}/edit/{branch}" # replace with your user, repo, and branch for edit links
toc: true
toc: true)order front matteredit_url is set_docs folderorder front matter to control the sorting of your documentation pagestoc option automatically generates a table of contents for each page