fix(v2): deprecate docs homePageId in favor of frontmatter "slug: /" (#3228)

* homePageId => deprecated

* docs prettier
This commit is contained in:
Sébastien Lorber 2020-08-06 18:31:50 +02:00 committed by GitHub
parent 0079f0e8d1
commit 0a33a52301
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 109 additions and 79 deletions

View file

@ -2,6 +2,7 @@
id: doc1
title: Style Guide
sidebar_label: Style Guide
slug: /
---
You can write content using [GitHub-flavored Markdown syntax](https://github.github.com/gfm/).

View file

@ -71,8 +71,6 @@ module.exports = {
'@docusaurus/preset-bootstrap',
{
docs: {
// It is recommended to set document id as docs home page (`docs/` path).
homePageId: 'doc1',
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/facebook/docusaurus/edit/master/website/',