mirror of
https://github.com/andatoshiki/toshiki-notebook.git
synced 2026-06-06 04:04:17 +00:00
feat(nprogress): introducing nprogress loading bar feature to vitepress
This commit is contained in:
parent
144da6ad6e
commit
83a55c7f0d
@ -4,8 +4,6 @@ import { markdown } from './config/markdown'
|
|||||||
import { metaData } from './config/constants'
|
import { metaData } from './config/constants'
|
||||||
import { head } from './config/head'
|
import { head } from './config/head'
|
||||||
import { themeConfig } from './config/theme'
|
import { themeConfig } from './config/theme'
|
||||||
// import { buildDocsRSS } from './theme/rss'
|
|
||||||
// import { generateSitemap as sitemap } from 'sitemap-ts'
|
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
lang: metaData.lang, // i18n default english translation
|
lang: metaData.lang, // i18n default english translation
|
||||||
@ -25,11 +23,6 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
// buildEnd: buildDocsRSS,
|
|
||||||
// async buildEnd() {
|
|
||||||
// await sitemap({ hostname: 'https://note.toshiki.dev/' })
|
|
||||||
// },
|
|
||||||
})
|
})
|
||||||
|
|
||||||
customElements // custom element tags of markdown-it-katex in vitepress
|
customElements // custom element tags of markdown-it-katex in vitepress
|
||||||
|
|||||||
@ -25,6 +25,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@andatoshiki/markdown-it-image-caption": "0.0.2",
|
"@andatoshiki/markdown-it-image-caption": "0.0.2",
|
||||||
|
"@andatoshiki/vitepress-plugin-nprogress": "^0.0.1",
|
||||||
"@mdit-vue/shared": "^0.12.0",
|
"@mdit-vue/shared": "^0.12.0",
|
||||||
"@types/node": "^18.14.2",
|
"@types/node": "^18.14.2",
|
||||||
"@vitejs/plugin-vue": "^4.0.0",
|
"@vitejs/plugin-vue": "^4.0.0",
|
||||||
|
|||||||
@ -145,6 +145,13 @@
|
|||||||
dependencies:
|
dependencies:
|
||||||
katex "^0.16.0"
|
katex "^0.16.0"
|
||||||
|
|
||||||
|
"@andatoshiki/vitepress-plugin-nprogress@^0.0.1":
|
||||||
|
version "0.0.1"
|
||||||
|
resolved "https://registry.npmjs.org/@andatoshiki/vitepress-plugin-nprogress/-/vitepress-plugin-nprogress-0.0.1.tgz#ef7ee6e2a8f9dc0b31306064e74aaf8efc0040ae"
|
||||||
|
integrity sha512-paDDheLnntny7iPFck4D6vzJgC7BKBqgpXFG6aMXHRDpH/YlxvH32xCgVYZ8lHmcoLZc084Rk/Ik4FwL8M2qgQ==
|
||||||
|
dependencies:
|
||||||
|
nprogress "^0.2.0"
|
||||||
|
|
||||||
"@antfu/utils@^0.7.2":
|
"@antfu/utils@^0.7.2":
|
||||||
version "0.7.2"
|
version "0.7.2"
|
||||||
resolved "https://registry.yarnpkg.com/@antfu/utils/-/utils-0.7.2.tgz#3bb6f37a6b188056fe9e2f363b6aa735ed65d7ca"
|
resolved "https://registry.yarnpkg.com/@antfu/utils/-/utils-0.7.2.tgz#3bb6f37a6b188056fe9e2f363b6aa735ed65d7ca"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user