Skip to content

Commit

Permalink
Update: Add new features to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aahil13 committed Apr 15, 2024
1 parent 8942b74 commit 50f7d65
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ jobs:
# if your docs needs submodules, uncomment the following line
# submodules: true



- name: Setup Node.js
uses: actions/setup-node@v3
with:
Expand Down
17 changes: 6 additions & 11 deletions src/.vuepress/navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,24 @@ import { navbar } from "vuepress-theme-hope";

export default navbar([
"/",
"/demo/",
"/get-started/",
{
text: "Guide",
icon: "lightbulb",
text: "Docs",
icon: "book",
prefix: "/guide/",
children: [
{
text: "Bar",
icon: "lightbulb",
icon: "book",
prefix: "bar/",
children: ["baz", { text: "...", icon: "ellipsis", link: "#" }],
},
{
text: "Foo",
icon: "lightbulb",
icon: "book",
prefix: "foo/",
children: ["ray", { text: "...", icon: "ellipsis", link: "#" }],
},
],
},
{
text: "V2 Docs",
icon: "book",
link: "https://theme-hope.vuejs.press/",
},
}
]);
2 changes: 2 additions & 0 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export default hopeTheme({

displayFooter: true,

fullscreen: true,

encrypt: {
config: {
"/demo/encrypt.html": ["1234"],
Expand Down
10 changes: 8 additions & 2 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@ title: Node.js Home
image: /assets/image/layout.svg
bgImage: https://theme-hope-assets.vuejs.press/bg/4-light.svg
bgImageDark: https://theme-hope-assets.vuejs.press/bg/4-dark.svg
bgImageStyle:
background-attachment: fixed
heroFullScreen: true
heroImage: /assets/icon/node.png
heroText: Node.Js
tagline: A comprehensive companion for understanding JavaScript's runtime environment ⚡️
actions:
- text: Get started
icon: lightbulb
link: ./get-started/
type: primary

- text: Docs
link: ./docs
icon: book
footer: false
---

0 comments on commit 50f7d65

Please sign in to comment.