Skip to content

Commit

Permalink
Merge branch 'main' into add-plausible
Browse files Browse the repository at this point in the history
  • Loading branch information
wescopeland committed Sep 1, 2024
2 parents 6a71ddc + b7f1538 commit 1eb3bb3
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/.vitepress/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,9 @@ export default defineConfig({
},
}),
],

ssr: {
noExternal: ["@nolebase/vitepress-plugin-highlight-targeted-heading"],
},
},
});
15 changes: 12 additions & 3 deletions docs/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
import DefaultTheme from "vitepress/theme";
import { NolebaseGitChangelogPlugin } from "@nolebase/vitepress-plugin-git-changelog/client";
import "@nolebase/vitepress-plugin-git-changelog/client/style.css";

import "@nolebase/vitepress-plugin-highlight-targeted-heading/client/style.css";
import "./styles.css";

import { NolebaseGitChangelogPlugin } from "@nolebase/vitepress-plugin-git-changelog/client";
import { NolebaseHighlightTargetedHeading } from "@nolebase/vitepress-plugin-highlight-targeted-heading/client";
import DefaultTheme from "vitepress/theme";
import { h } from "vue";

export default {
extends: DefaultTheme,

Layout: () => {
return h(DefaultTheme.Layout, null, {
"layout-top": () => [h(NolebaseHighlightTargetedHeading)],
});
},

enhanceApp({ app }) {
app.use(NolebaseGitChangelogPlugin);
},
Expand Down
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"license": "MIT",
"dependencies": {
"@nolebase/vitepress-plugin-git-changelog": "^2.4.0",
"@nolebase/vitepress-plugin-highlight-targeted-heading": "^2.4.0",
"vitepress": "^1.3.4",
"vue": "3.3.13"
},
Expand Down

0 comments on commit 1eb3bb3

Please sign in to comment.