Skip to content

Commit

Permalink
更新配置文件
Browse files Browse the repository at this point in the history
  • Loading branch information
lvluoyue committed Dec 14, 2024
1 parent 6d9f784 commit cbd5a10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default defineConfig({
],

socialLinks: [
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
{ icon: 'github', link: 'https://github.com/lvluoyue/api-doc' }
],

search: {
Expand Down Expand Up @@ -91,8 +91,9 @@ export default defineConfig({
lastUpdated: {
text: "最后更新于",
formatOptions: {
dateStyle: "full", // full
dateStyle: "short", // full
timeStyle: "medium", // medium
hourCycle: "h24"
},
},

Expand All @@ -105,6 +106,7 @@ export default defineConfig({
},
outDir: 'dist',
srcDir: 'src',
base: '/api-doc/',
vite: {
server: {
open: true
Expand Down
2 changes: 0 additions & 2 deletions src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ features:
import { useData } from 'vitepress'

const { theme } = useData()

console.log('页面标题:', this.$frontmatter.title);
</script>

0 comments on commit cbd5a10

Please sign in to comment.