Skip to content

Commit 5ac3c2a

Browse files
committed
update doc
1 parent 4bccf3a commit 5ac3c2a

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

docs/default-theme-config/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,25 @@ module.exports = {
4848
}
4949
```
5050

51+
The item in `themeConfig.nav` could also be a dropdown menu:
52+
53+
```js
54+
module.exports = {
55+
themeConfig: {
56+
nav: [
57+
{
58+
text: 'Languages',
59+
type: 'dropdown',
60+
items: [
61+
{ text: 'Chinese', link: '/language/chinese' },
62+
{ text: 'Japanese', link: '/language/japanese' }
63+
]
64+
}
65+
]
66+
}
67+
}
68+
```
69+
5170
## Sidebar
5271

5372
To enable the sidebar, use `themeConfig.sidebar`. The basic configuration expects an Array of links:

docs/guide/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Each markdown file is compiled into HTML with [markdown-it](https://github.com/m
3030

3131
VuePress is still a work in progress. There are a few things that it currently does not support but are planned:
3232

33-
- Dropdown Items in Navbar
3433
- Multi-Language Support
3534
- Algolia DocSearch Integration
3635
- Blogging support

0 commit comments

Comments
 (0)