This repo's codebase will be updated once this issue resolved, which cause jittering in theme animations. The layout will be refactored, then some new features such as TOC will be added. I'm considering maintaince a mdui fork to fix that if mdui's maintainer didn't respond my pull request until I feel the new thing is ready for publish.
A Material You stylized theme for vitepress, built with Vue3 + MDUI + GSAP and etc.
vitepress-theme-akari.vercel.app
stray-soul.com (I made some customs for my self, but however you can make your own too!)
Just clone this repo, install dependencies (npm install), then configure some things:
I added some comments so you can just go open and see it, it could be easily understand. (Maybe...)
However, some fields are not included, the following are the details:
const themeConfig: AkariThemeConfig = {
...
viewsCounter: '',
...
}Basically, it is just links to a simple counter for page total views, it required backend things, so I just hide it by default.
However, you can just deploy it by yourself, the reference code is in counter.py.
const themeConfig: AkariThemeConfig = {
...
footer: {
...
beian:{
use: true,
gongan: {
icon: '',
link: '',
text: ''
},
icp: {
link: '',
text: ''
}
}
...
}
...
}If your server are located in China, these options may be useful. :>
---
...
cc_license: true
...
---When set to true, the cc license component will be displayed at the bottom of the page. The display text can be configured in translation.ts
Dev: npm run docs:dev
Build: npm run docs:build
Preview dist: npm run docs:preview
Note that content-fixer.mjs will be run when executing the build to fix missing parameter fields in the article, so there is no need to add color, color_dark, date manually.
Currently, the theme supports en-US and zh-CN language, it can be configured in config.ts.
If you want to support another language, the PR is welcome.
I added my flavor to it, so it may not designed in MD3 style precisely. Also I have no idea about name it... so that.
This is my first project built with Vue and etc. so... you probably know. But however PR is welcome.
I tried my best... sorry.
I dunno at this point, so that's all.
