Skip to content

Commit

Permalink
feat: 検索機能追加
Browse files Browse the repository at this point in the history
  • Loading branch information
YuheiFUJITA committed Dec 6, 2023
1 parent 49201da commit a82d98e
Show file tree
Hide file tree
Showing 5 changed files with 2,379 additions and 75 deletions.
3 changes: 3 additions & 0 deletions vitepress/docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ export default defineConfig({
},
},
themeConfig: {
search: {
provider: "local",
},
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: "Home", link: "/" },
Expand Down
14 changes: 14 additions & 0 deletions vitepress/docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { h } from "vue";
import DefaultTheme from "vitepress/theme";
import Documate from "@documate/vue";
import "@documate/vue/dist/style.css";

export default {
...DefaultTheme,
Layout: h(DefaultTheme.Layout, null, {
"nav-bar-content-before": () =>
h(Documate, {
endpoint: "https://rna7bv3aw7.us.aircode.run/ask",
}),
}),
};
5 changes: 5 additions & 0 deletions vitepress/documate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"root": "./docs",
"include": ["**/*.md", "**/*.mdx"],
"backend": "https://rna7bv3aw7.us.aircode.run/upload"
}
Loading

0 comments on commit a82d98e

Please sign in to comment.