mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-22 21:47:01 +02:00
docs(v1): fix path to sidebars.json in generated readme (#2108)
* docs(v1): fix path to sidebars.json in generated readme * test(v1): fix path to sidebars.json in test
This commit is contained in:
parent
172f07116d
commit
ba7c38cf0f
2 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ my-docusaurus/
|
||||||
css/
|
css/
|
||||||
img/
|
img/
|
||||||
package.json
|
package.json
|
||||||
sidebar.json
|
sidebars.json
|
||||||
siteConfig.js
|
siteConfig.js
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@ title: This Doc Needs To Be Edited
|
||||||
My new content here..
|
My new content here..
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Refer to that doc's ID in an existing sidebar in `website/sidebar.json`:
|
1. Refer to that doc's ID in an existing sidebar in `website/sidebars.json`:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
// Add newly-created-doc to the Getting Started category of docs
|
// Add newly-created-doc to the Getting Started category of docs
|
||||||
|
|
|
@ -31,7 +31,7 @@ jest.mock('../env', () => ({
|
||||||
}));
|
}));
|
||||||
|
|
||||||
jest.mock(`${process.cwd()}/siteConfig.js`, () => ({}), {virtual: true});
|
jest.mock(`${process.cwd()}/siteConfig.js`, () => ({}), {virtual: true});
|
||||||
jest.mock(`${process.cwd()}/sidebar.json`, () => true, {virtual: true});
|
jest.mock(`${process.cwd()}/sidebars.json`, () => true, {virtual: true});
|
||||||
|
|
||||||
describe('readMetadata', () => {
|
describe('readMetadata', () => {
|
||||||
describe('readSidebar', () => {
|
describe('readSidebar', () => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue