marked文档实战
Hello, Markdown-it!
This is a simple Markdown document.
11111
js
Features
- 吃饭
- 睡觉
- 打豆豆
Home foo foo heading bar - three bar - three bar - four
INFO
This is an info box.
TIP
This is a tip.
WARNING
This is a warning.
DANGER
This is a dangerous warning.
Details
This is a details block.
STOP
危险区域,请勿继续
点我查看代码
js
console.log('Hello, VitePress!')
😄 Emoji support.
🎉 💯
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
js
const a = 1;
math
E=mc^2
js
export default {
data () {
return {
msg: 'Focused!'
}
}
}
js
export default {
data () {
return {
msg: 'Removed'
msg: 'Added'
}
}
}
js
/**
* @type {import('vitepress').UserConfig}
*/
const config = {
// ...
}
export default config
ts
import type { UserConfig } from 'vitepress'
const config: UserConfig = {
// ...
}
export default config
Deploy Your VitePress Site
The following guides are based on some shared assumptions:
-
The VitePress site is inside the
docs
directory of your project. -
You are using the default build output directory (
.vitepress/dist
). -
VitePress is installed as a local dependency in your project, and you have set up the following scripts in your
package.json
:json{ "scripts": { "docs:build": "vitepress build docs", "docs:preview": "vitepress preview docs" } }
.
├─ docs # project root
│ ├─ .vitepress
│ │ ├─ theme
│ │ │ └─ index.js # theme entry
│ │ └─ config.js # config file
│ └─ index.md
└─ package.json

img: https://www.baidu.com/favicon.ico
本文标签:
本文链接:
https://vscing.com/article/71.html
版权声明:
本文由vscing原创发布,转载请遵循《署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)》许可协议授权
目录
标签
文章榜