Skip to content

Commit

Permalink
add documentation for docusaurus >= v1.2.0 a well
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey committed Jul 18, 2018
1 parent c230399 commit 3304fdb
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions website/versioned_docs/version-1.2.0/guides-navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,28 @@ Or you can create a new category within the sidebar:
}
```

However, for a document located in a docs subdirectory like below:

```bash
docs
└── dir1
└── getting-started.md
```

You should provide `directory/id` instead of `id` in `sidebars.json`.

```js
{
"docs": {
"My New Sidebar Category": [
"dir1/getting-started"
],
...
},
...
}
```

### Adding New Sidebars

You can also put a document in a new sidebar. In the following example, we are creating an `examples-sidebar` sidebar within `sidebars.json` that has a category called `My Example Category` containing a document with an `id` of `my-examples`.
Expand Down

0 comments on commit 3304fdb

Please sign in to comment.