Skip to content

Commit

Permalink
feat: 新增GPT对话组件&配置
Browse files Browse the repository at this point in the history
  • Loading branch information
c0dedance committed Dec 24, 2023
1 parent 73419cb commit 06369e9
Show file tree
Hide file tree
Showing 16 changed files with 1,334 additions and 129 deletions.
8 changes: 8 additions & 0 deletions docs/rpress.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,12 @@ export default defineConfig({
]
}
},
aiConfig: {
// root: '.',
include: ['./**/*.{md,mdx}'],
server: {
ask: '/ask',
upload: '/upload',
},
}
})
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@
"@types/fs-extra": "^11.0.2",
"@types/hast": "^2.3.4",
"@types/lodash": "^4.14.200",
"@types/markdown-it": "^13.0.7",
"@types/mdast": "^3.0.10",
"@types/node": "^20.8.4",
"@types/react": "^18.2.31",
"@types/resolve": "^1.20.4",
"@typescript-eslint/eslint-plugin": "^6.7.5",
"@typescript-eslint/parser": "^6.7.5",
Expand Down Expand Up @@ -93,8 +95,8 @@
"@babel/preset-react": "^7.22.15",
"@babel/preset-typescript": "^7.23.2",
"@babel/traverse": "^7.23.2",
"@headlessui/react": "^1.7.17",
"@mdx-js/rollup": "2.1.3",
"@types/react": "^18.2.31",
"@vitejs/plugin-react": "^2.2.0",
"acorn": "^8.10.0",
"cac": "^6.7.14",
Expand All @@ -105,10 +107,12 @@
"github-slugger": "^2.0.0",
"hast-util-from-html": "^2.0.1",
"lodash-es": "^4.17.21",
"markdown-it": "^14.0.0",
"markdown-it-highlightjs": "^4.0.1",
"mdast-util-mdxjs-esm": "^1.3.0",
"ora": "^7.0.1",
"polka": "^0.5.2",
"r-press": "^0.0.6",
"r-press": "link:",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-helmet-async": "1.3.0",
Expand Down
Loading

0 comments on commit 06369e9

Please sign in to comment.