Skip to content

Commit

Permalink
docs(v1): fix path to sidebars.json in generated readme (#2108)
Browse files Browse the repository at this point in the history
* docs(v1): fix path to sidebars.json in generated readme

* test(v1): fix path to sidebars.json in test
  • Loading branch information
nickserv authored and yangshun committed Dec 9, 2019
1 parent 172f071 commit ba7c38c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/docusaurus-1.x/examples/basics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ my-docusaurus/
css/
img/
package.json
sidebar.json
sidebars.json
siteConfig.js
```

Expand Down Expand Up @@ -100,7 +100,7 @@ title: This Doc Needs To Be Edited
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
// Add newly-created-doc to the Getting Started category of docs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jest.mock('../env', () => ({
}));

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('readSidebar', () => {
Expand Down

0 comments on commit ba7c38c

Please sign in to comment.