chore(docs): Replace homePageId with slug: /

Fix warning ...
The docs plugin option homePageId=intro is deprecated. To make a doc the "home", prefer frontmatter: "slug: /"

Follow-up to #286.
This commit is contained in:
innovaker 2020-10-19 21:41:57 +01:00
parent 99751ad376
commit cd683b8dd6
2 changed files with 1 additions and 1 deletions

View file

@ -2,6 +2,7 @@
id: intro id: intro
title: Introduction to ZMK title: Introduction to ZMK
sidebar_label: Introduction sidebar_label: Introduction
slug: /
--- ---
ZMK Firmware is an open source (MIT) keyboard ZMK Firmware is an open source (MIT) keyboard

View file

@ -102,7 +102,6 @@ module.exports = {
{ {
docs: { docs: {
// It is recommended to set document id as docs home page (`docs/` path). // It is recommended to set document id as docs home page (`docs/` path).
homePageId: "intro",
sidebarPath: require.resolve("./sidebars.js"), sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo. // Please change this to your repo.
editUrl: "https://github.com/zmkfirmware/zmk/edit/main/docs/", editUrl: "https://github.com/zmkfirmware/zmk/edit/main/docs/",