reference

  • 将新的文章上线的步骤
    1. 将对应文章扔到对应科目文件夹下
    2. /docs/.vuepress/config.js 中在合适的位置添加路由

首页
配置参考
快速上手

指南
配置参考 > markdown.links

GitHubopen in new window

import { defaultTheme, defineUserConfig } from 'vuepress'

export default defineUserConfig({
  title: '你好, VuePress',

  theme: defaultTheme({
    logo: 'https://vuejs.org/images/logo.png',
  }),
})

 




 
 
 


标题二

// 行号默认是启用的
const line2 = 'This is line 2'
const line3 = 'This is line 3'
// 行号被禁用
const line2 = 'This is line 2'
const line3 = 'This is line 3'

标题三

<!-- 默认情况下,这里会被保持原样 -->
1 + 2 + 3 = {{ 1 + 2 + 3 }}
<!-- 这里会被 Vue 编译 -->
1 + 2 + 3 = 6
// 由于 JS 代码高亮,这里不会被正确编译
const onePlusTwoPlusThree = {{ 1 + 2 + 3 }}

一加一等于: 2

span: 1 span: 2 span: 3

这是默认主题内置的 <Badge /> 组件 演示

TIP

This is a tip

WARNING

This is a warning

DANGER

This is a dangerous warning

This is a details block

const foo = 'foo'
const bar = 'bar'

插入图片可用图床

https://yh-pic.ihcloud.net/meituan.html

VuePress Logo

VIDEO TEST

Last Updated:
Contributors: jokerclay