Skip to content

Commit

Permalink
Update configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
Aahil13 committed Apr 15, 2024
1 parent ad7ff01 commit ebcd8fc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 30 deletions.
7 changes: 7 additions & 0 deletions src/.vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineUserConfig } from "vuepress";
import { searchPlugin } from '@vuepress/plugin-search'
import theme from "./theme.js";

export default defineUserConfig({
Expand All @@ -10,6 +11,12 @@ export default defineUserConfig({

theme,

plugins: [
searchPlugin({
// options
}),
],

// Enable it with pwa
// shouldPrefetch: false,
});
20 changes: 1 addition & 19 deletions src/.vuepress/navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,5 @@ import { navbar } from "vuepress-theme-hope";
export default navbar([
"/",
"/get-started/",
{
text: "Docs",
icon: "book",
prefix: "/guide/",
children: [
{
text: "Bar",
icon: "book",
prefix: "bar/",
children: ["baz", { text: "...", icon: "ellipsis", link: "#" }],
},
{
text: "Foo",
icon: "book",
prefix: "foo/",
children: ["ray", { text: "...", icon: "ellipsis", link: "#" }],
},
],
}
"docs/",
]);
15 changes: 5 additions & 10 deletions src/.vuepress/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,17 @@ export default sidebar({
"/": [
"",
{
text: "Demo",
icon: "laptop-code",
text: "Get Started",
icon: "lightbulb",
prefix: "demo/",
link: "demo/",
link: "get-started/",
children: "structure",
},
{
text: "Docs",
icon: "book",
prefix: "guide/",
children: "structure",
},
{
text: "Slides",
icon: "person-chalkboard",
link: "https://plugin-md-enhance.vuejs.press/guide/content/revealjs/demo.html",
prefix: "docs/",
link: "docs/",
},
],
});
6 changes: 5 additions & 1 deletion src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ export default hopeTheme({

author: {
name: "Aahil",
url: "",
url: "https://linktr.ee/thecr3ator",
},

iconAssets: "fontawesome-with-brands",

favicon: "/assets/icon/node.png",

logo: "/assets/icon/node.png",

repo: "Aahil13/Node-docs",
Expand Down Expand Up @@ -183,3 +185,5 @@ export default hopeTheme({
// },
},
});


0 comments on commit ebcd8fc

Please sign in to comment.