Skip to content

Commit c75bf94

Browse files
committed
update navbar.ts
1 parent 969ad20 commit c75bf94

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

src/.vuepress/navbar.ts

+26-26
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
import { navbar } from "vuepress-theme-hope";
22

33
export default navbar([
4-
"/",
5-
"/demo/",
6-
{
7-
text: "Guide",
8-
icon: "lightbulb",
9-
prefix: "/guide/",
10-
children: [
11-
{
12-
text: "Bar",
13-
icon: "lightbulb",
14-
prefix: "bar/",
15-
children: ["baz", { text: "...", icon: "ellipsis", link: "#" }],
16-
},
17-
{
18-
text: "Foo",
19-
icon: "lightbulb",
20-
prefix: "foo/",
21-
children: ["ray", { text: "...", icon: "ellipsis", link: "#" }],
22-
},
23-
],
24-
},
25-
{
26-
text: "V2 Docs",
27-
icon: "book",
28-
link: "https://theme-hope.vuejs.press/",
29-
},
4+
// "/",
5+
// "/demo/",
6+
// {
7+
// text: "Guide",
8+
// icon: "lightbulb",
9+
// prefix: "/guide/",
10+
// children: [
11+
// {
12+
// text: "Bar",
13+
// icon: "lightbulb",
14+
// prefix: "bar/",
15+
// children: ["baz", { text: "...", icon: "ellipsis", link: "#" }],
16+
// },
17+
// {
18+
// text: "Foo",
19+
// icon: "lightbulb",
20+
// prefix: "foo/",
21+
// children: ["ray", { text: "...", icon: "ellipsis", link: "#" }],
22+
// },
23+
// ],
24+
// },
25+
// {
26+
// text: "V2 Docs",
27+
// icon: "book",
28+
// link: "https://theme-hope.vuejs.press/",
29+
// },
3030
]);

src/.vuepress/theme.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ export default hopeTheme({
2323
docsDir: "src",
2424

2525
// navbar
26-
// navbar,
26+
navbar,
2727
// 禁用导航栏
28-
navbar: false,
28+
// navbar: false,
2929

3030
// sidebar
3131
// sidebar,

0 commit comments

Comments
 (0)