chore: add code block test

This commit is contained in:
YunYouJun 2023-09-12 11:06:17 +08:00
parent 499cf9474c
commit 073b38f84d
9 changed files with 261 additions and 259 deletions

View File

@ -25,6 +25,6 @@
"devDependencies": {
"nodemon": "^3.0.1",
"vite-plugin-inspect": "^0.7.38",
"vite-plugin-pwa": "^0.16.4"
"vite-plugin-pwa": "^0.16.5"
}
}

View File

@ -9,3 +9,63 @@ FROM ubuntu
ENV PATH /opt/conda/bin:$PATH
```
```bash
ffmpeg -i input.avi -b:v 64k -bufsize 64k output.mp4
```
```ts
import { defineValaxyConfig } from 'valaxy'
import type { ThemeConfig } from 'valaxy-theme-yun'
const safelist = [
'i-ri-home-line',
]
export default defineValaxyConfig<ThemeConfig>({
// site config see site.config.ts or write in siteConfig
// siteConfig: {},
theme: 'yun',
themeConfig: {
banner: {
enable: true,
title: '云游君的小站',
},
notice: {
enable: true,
content: '公告测试',
},
},
unocss: {
safelist,
},
})
```
```css
:root {
--va-code-line-height: 1.7;
--va-code-font-size: 0.875em;
--va-code-block-color: var(--va-c-text-2);
--va-code-block-bg: var(--va-c-bg-alt);
--va-code-block-divider-color: var(--va-c-gutter);
--va-code-lang-color: var(--va-c-text-3);
--va-code-line-highlight-color: rgba(0, 0, 0, 0.5);
--va-code-line-number-color: var(--va-c-text-dark-3);
// copy
--va-code-copy-code-border-color: var(--va-c-divider);
--va-code-copy-code-bg: var(--va-c-bg-soft);
--va-code-copy-code-hover-border-color: var(--va-c-divider);
--va-code-copy-code-hover-bg: var(--va-c-bg);
--va-code-copy-code-active-text: var(--va-c-text-2);
--va-code-copy-copied-text-content: 'Copied';
}
```

View File

@ -20,6 +20,8 @@ categories: Test
## 标题 {lang="zh-CN"}
[二级标题](#二级标题)
## 列表测试 {lang="zh-CN"}
- AAA

View File

@ -67,12 +67,14 @@ export default defineValaxyConfig<ThemeConfig>({
markdown: {
// default material-theme-palenight
// theme: 'material-theme-palenight',
theme: {
// light: 'material-theme-lighter',
light: 'github-light',
// dark: 'material-theme-darker',
dark: 'github-dark',
},
blocks: {
tip: {
icon: 'i-carbon-thumbs-up',

View File

@ -21,7 +21,7 @@
"devDependencies": {
"nodemon": "^3.0.1",
"vite": "^4.4.9",
"vitepress": "1.0.0-rc.10",
"vitepress": "1.0.0-rc.12",
"vue": "^3.3.4"
}
}

View File

@ -2,7 +2,7 @@
"name": "@valaxyjs/monorepo",
"version": "0.14.58",
"private": true,
"packageManager": "pnpm@8.7.4",
"packageManager": "pnpm@8.7.5",
"description": "📄 Vite & Vue powered static blog generator.",
"author": {
"email": "me@yunyoujun.cn",
@ -51,13 +51,13 @@
"@types/markdown-it-attrs": "^4.1.0",
"@types/markdown-it-container": "^2.0.6",
"@types/markdown-it-emoji": "^2.0.2",
"@types/node": "^20.5.9",
"@types/node": "^20.6.0",
"@types/prompts": "^2.4.4",
"@types/resolve": "^1.20.2",
"@types/semver": "^7.5.1",
"cross-env": "^7.0.3",
"cypress": "^13.1.0",
"eslint": "^8.48.0",
"eslint": "^8.49.0",
"eslint-plugin-cypress": "^2.14.0",
"https-localhost": "^4.7.1",
"husky": "^8.0.3",

View File

@ -19,7 +19,7 @@
"dependencies": {
"@explosions/fireworks": "^0.0.2",
"@iconify-json/ant-design": "^1.1.10",
"@iconify-json/simple-icons": "^1.1.69",
"@iconify-json/simple-icons": "^1.1.70",
"animejs": "^3.2.1"
},
"devDependencies": {

View File

@ -63,7 +63,7 @@
"@ctrl/tinycolor": "^4.0.2",
"@iconify-json/carbon": "^1.1.21",
"@iconify-json/ri": "^1.1.12",
"@intlify/unplugin-vue-i18n": "^1.0.1",
"@intlify/unplugin-vue-i18n": "^1.2.0",
"@types/body-scroll-lock": "^3.1.0",
"@vitejs/plugin-vue": "^4.3.4",
"@vueuse/core": "^10.4.1",
@ -113,7 +113,7 @@
"vite-ssg": "0.23.1",
"vite-ssg-sitemap": "0.5.1",
"vue": "^3.3.4",
"vue-i18n": "^9.3.0",
"vue-i18n": "^9.4.0",
"vue-router": "^4.2.4",
"yargs": "^17.7.2"
},

File diff suppressed because it is too large Load Diff