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:
Nick McCurdy 2019-12-09 18:57:59 -05:00 committed by Yangshun Tay
parent 172f07116d
commit ba7c38cf0f
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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', () => {