mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-28 16:37:07 +02:00
chore(v2): mention about docs home page in init templates (#2763)
* chore(v2): mention about docs home page in init templates * use home page id for docs Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
This commit is contained in:
parent
fc161b8455
commit
c7baa125e6
7 changed files with 19 additions and 13 deletions
|
@ -15,7 +15,7 @@ module.exports = {
|
|||
},
|
||||
links: [
|
||||
{
|
||||
to: 'docs/doc1',
|
||||
to: 'docs/',
|
||||
activeBasePath: 'docs',
|
||||
label: 'Docs',
|
||||
position: 'left',
|
||||
|
@ -36,11 +36,11 @@ module.exports = {
|
|||
items: [
|
||||
{
|
||||
label: 'Style Guide',
|
||||
to: 'docs/doc1',
|
||||
to: 'docs/',
|
||||
},
|
||||
{
|
||||
label: 'Second Doc',
|
||||
to: 'docs/doc2',
|
||||
to: 'docs/doc2/',
|
||||
},
|
||||
],
|
||||
},
|
||||
|
@ -83,6 +83,8 @@ module.exports = {
|
|||
'@docusaurus/preset-classic',
|
||||
{
|
||||
docs: {
|
||||
// It is recommended to set document id as docs home page (`docs/` path).
|
||||
homePageId: 'doc1',
|
||||
sidebarPath: require.resolve('./sidebars.js'),
|
||||
// Please change this to your repo.
|
||||
editUrl:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue