config: add vitepress-markdown-timeline, issue #3
This commit is contained in:
parent
d219684956
commit
48d94c9025
@ -1,6 +1,8 @@
|
||||
import { defineConfigWithTheme } from 'vitepress'
|
||||
import { nav, sidebar } from './data/navigations'
|
||||
|
||||
import markdownimeline from "vitepress-markdown-timeline"
|
||||
|
||||
// https://vitepress.dev/reference/site-config
|
||||
export default defineConfigWithTheme({
|
||||
title: "ALT Mobile Wiki",
|
||||
@ -192,5 +194,10 @@ export default defineConfigWithTheme({
|
||||
outline: {
|
||||
level: [2, 3],
|
||||
},
|
||||
}
|
||||
},
|
||||
markdown: {
|
||||
config: (md) => {
|
||||
md.use(markdownimeline);
|
||||
},
|
||||
},
|
||||
})
|
||||
|
@ -19,6 +19,7 @@ import AMWDocsAsideMeta from './components/AMWDocsAsideMeta.vue'
|
||||
import './styles/style.css'
|
||||
import './styles/theme.css'
|
||||
import '@nolebase/vitepress-plugin-enhanced-readabilities/dist/style.css'
|
||||
import "vitepress-markdown-timeline/dist/theme/index.css"
|
||||
|
||||
export default {
|
||||
extends: DefaultTheme,
|
||||
|
18
package-lock.json
generated
18
package-lock.json
generated
@ -6,7 +6,8 @@
|
||||
"": {
|
||||
"devDependencies": {
|
||||
"@nolebase/vitepress-plugin-enhanced-readabilities": "^1.27.2",
|
||||
"vitepress": "^1.0.2"
|
||||
"vitepress": "^1.0.2",
|
||||
"vitepress-markdown-timeline": "^1.2.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@algolia/autocomplete-core": {
|
||||
@ -1244,6 +1245,12 @@
|
||||
"integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/dayjs": {
|
||||
"version": "1.11.10",
|
||||
"resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.10.tgz",
|
||||
"integrity": "sha512-vjAczensTgRcqDERK0SR2XMwsF/tSvnvlv6VcF2GIhg6Sx4yOIt/irsr1RDJsKiIyBzJDpCoXiWWq28MqH2cnQ==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/entities": {
|
||||
"version": "4.5.0",
|
||||
"resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
|
||||
@ -1600,6 +1607,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/vitepress-markdown-timeline": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://registry.npmjs.org/vitepress-markdown-timeline/-/vitepress-markdown-timeline-1.2.1.tgz",
|
||||
"integrity": "sha512-XPYl/btTcTzW+XF20ITB51L8jPjbS72tSKPcv/CHJgM+3LbBvW8Az/X7RcBTJSXDNOwCY5mGkjA7CXQtuxOKgw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"dayjs": "^1.11.7"
|
||||
}
|
||||
},
|
||||
"node_modules/vue": {
|
||||
"version": "3.4.21",
|
||||
"resolved": "https://registry.npmjs.org/vue/-/vue-3.4.21.tgz",
|
||||
|
@ -1,7 +1,8 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"@nolebase/vitepress-plugin-enhanced-readabilities": "^1.27.2",
|
||||
"vitepress": "^1.0.2"
|
||||
"vitepress": "^1.0.2",
|
||||
"vitepress-markdown-timeline": "^1.2.1"
|
||||
},
|
||||
"scripts": {
|
||||
"docs:dev": "vitepress dev",
|
||||
|
Loading…
Reference in New Issue
Block a user