Skip to content

Commit

Permalink
feat(md-enhance): add code demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Nov 17, 2020
1 parent 0abdc59 commit 75b4545
Show file tree
Hide file tree
Showing 134 changed files with 3,323 additions and 193 deletions.
6 changes: 6 additions & 0 deletions .prettierignore
Expand Up @@ -11,3 +11,9 @@ packages/**/*.d.ts
!packages/**/test/*.js
!packages/**/types/*.d.ts
!.vuepress/**

docs/md-enhance/src/guide/demo.md
docs/md-enhance/src/zh/guide/demo.md

test/src/guide/markdown.md
test/src/zh/guide/markdown.md
12 changes: 6 additions & 6 deletions docs/add-this/src/.vuepress/config.js
Expand Up @@ -17,15 +17,15 @@ module.exports = config({
logo: "/logo.svg",

nav: [
{ text: "Home", icon: "homefill", link: "/" },
{ text: "Home", icon: "home", link: "/" },
{
text: "Guide",
icon: "creativefill",
icon: "creative",
link: "/guide/",
},
{
text: "Config",
icon: "configuration",
icon: "config",
link: "/config/",
},
],
Expand All @@ -51,15 +51,15 @@ module.exports = config({
locales: {
"/zh/": {
nav: [
{ text: "主页", icon: "homefill", link: "/zh/" },
{ text: "主页", icon: "home", link: "/zh/" },
{
text: "指南",
icon: "creativefill",
icon: "creative",
link: "/zh/guide/",
},
{
text: "配置",
icon: "configuration",
icon: "config",
link: "/zh/config/",
},
],
Expand Down
2 changes: 1 addition & 1 deletion docs/add-this/src/.vuepress/styles/index.styl
@@ -1 +1 @@
@import '//at.alicdn.com/t/font_1446717_yja086re30b.css'
@import '//at.alicdn.com/t/font_1446717_q5huxk6v1h.css'
2 changes: 1 addition & 1 deletion docs/add-this/src/config.md
@@ -1,6 +1,6 @@
---
title: API Config
icon: configuration
icon: config
---

## pubid
Expand Down
2 changes: 1 addition & 1 deletion docs/add-this/src/guide.md
@@ -1,6 +1,6 @@
---
title: Guide
icon: creativefill
icon: creative
---

## Register
Expand Down
2 changes: 1 addition & 1 deletion docs/add-this/src/readme.md
@@ -1,7 +1,7 @@
---
home: true
title: vuepress-plugin-add-this
icon: homefill
icon: home
heroImage: /logo.svg
heroText: vuepress-plugin-add-this
tagline: AddThis plugin for vuepress
Expand Down
2 changes: 1 addition & 1 deletion docs/add-this/src/zh/config.md
@@ -1,6 +1,6 @@
---
title: 配置
icon: configuration
icon: config
---

## pubid
Expand Down
2 changes: 1 addition & 1 deletion docs/add-this/src/zh/guide.md
@@ -1,6 +1,6 @@
---
title: 指南
icon: creativefill
icon: creative
---

## 注册
Expand Down
2 changes: 1 addition & 1 deletion docs/add-this/src/zh/readme.md
@@ -1,7 +1,7 @@
---
home: true
title: vuepress-plugin-add-this
icon: homefill
icon: home
heroImage: /logo.svg
heroText: vuepress-plugin-add-this
tagline: 为 VuePress 提供 addthis 支持
Expand Down
20 changes: 10 additions & 10 deletions docs/comment/src/.vuepress/config.js
Expand Up @@ -13,14 +13,14 @@ module.exports = config({
logo: "/logo.svg",

nav: [
{ text: "Home", icon: "homefill", link: "/" },
{ text: "Home", icon: "home", link: "/" },
{
text: "Guide",
icon: "creativefill",
icon: "creative",
items: [
{
text: "Page Info",
icon: "infofill",
icon: "info",
link: "/guide/page-info/",
},
{ text: "Valine", icon: "valine", link: "/guide/valine/" },
Expand All @@ -29,9 +29,9 @@ module.exports = config({
},
{
text: "Config",
icon: "configuration",
icon: "config",
items: [
{ text: "Config", icon: "configuration", link: "/config/" },
{ text: "Config", icon: "config", link: "/config/" },
{
text: "Valine",
icon: "valine",
Expand Down Expand Up @@ -91,14 +91,14 @@ module.exports = config({
locales: {
"/zh/": {
nav: [
{ text: "主页", icon: "homefill", link: "/zh/" },
{ text: "主页", icon: "home", link: "/zh/" },
{
text: "指南",
icon: "creativefill",
icon: "creative",
items: [
{
text: "页面信息",
icon: "infofill",
icon: "info",
link: "/zh/guide/page-info/",
},
{ text: "Valine", icon: "valine", link: "/zh/guide/valine/" },
Expand All @@ -107,9 +107,9 @@ module.exports = config({
},
{
text: "配置",
icon: "configuration",
icon: "config",
items: [
{ text: "配置", icon: "configuration", link: "/zh/config/" },
{ text: "配置", icon: "config", link: "/zh/config/" },
{ text: "Valine", icon: "valine", link: "/zh/config/valine/" },
{ text: "Vssue", icon: "vssue", link: "/zh/config/vssue/" },
],
Expand Down
2 changes: 1 addition & 1 deletion docs/comment/src/.vuepress/styles/index.styl
@@ -1 +1 @@
@import '//at.alicdn.com/t/font_1446717_yja086re30b.css'
@import '//at.alicdn.com/t/font_1446717_q5huxk6v1h.css'
2 changes: 1 addition & 1 deletion docs/comment/src/config/readme.md
@@ -1,6 +1,6 @@
---
title: API Config
icon: configuration
icon: config
---

## baseLang
Expand Down
2 changes: 1 addition & 1 deletion docs/comment/src/guide/page-info.md
@@ -1,6 +1,6 @@
---
title: Page information
icon: infofill
icon: info
---

The `<PageInfo />` component is enabled globally by default. You can disable it by setting `pageInfo: false` in `Front Matter` of a specific page.
Expand Down
2 changes: 1 addition & 1 deletion docs/comment/src/guide/readme.md
@@ -1,5 +1,5 @@
---
icon: creativefill
icon: creative
---

# Guide
Expand Down
2 changes: 1 addition & 1 deletion docs/comment/src/guide/vssue.md
@@ -1,5 +1,5 @@
---
icon: creativefill
icon: creative
---

# Using Vssue
Expand Down
2 changes: 1 addition & 1 deletion docs/comment/src/readme.md
@@ -1,7 +1,7 @@
---
home: true
title: vuepress-plugin-comment
icon: homefill
icon: home
heroImage: /logo.svg
heroText: vuepress-plugin-comment
tagline: Comment and visitors plugin for vuepress
Expand Down
2 changes: 1 addition & 1 deletion docs/comment/src/zh/config/readme.md
@@ -1,6 +1,6 @@
---
title: 配置
icon: configuration
icon: config
---

## baseLang
Expand Down
2 changes: 1 addition & 1 deletion docs/comment/src/zh/guide/page-info.md
@@ -1,6 +1,6 @@
---
title: 页面信息
icon: infofill
icon: info
---

`<PageInfo />` 组件默认全局启用。你可以在特定页面的 `Front Matter` 中设置 `pageInfo: false` 来局部禁用它。
Expand Down
2 changes: 1 addition & 1 deletion docs/comment/src/zh/guide/readme.md
@@ -1,6 +1,6 @@
---
title: 指南
icon: creativefill
icon: creative
---

此插件暴露两个组件,路径为 `@mr-hope/vuepress-plugin-comment/<组件名>.vue`。请在你的主题中手动引入。
Expand Down
2 changes: 1 addition & 1 deletion docs/comment/src/zh/guide/vssue.md
@@ -1,5 +1,5 @@
---
icon: creativefill
icon: creative
---

# 使用 Vssue
Expand Down
2 changes: 1 addition & 1 deletion docs/comment/src/zh/readme.md
@@ -1,7 +1,7 @@
---
home: true
title: vuepress-plugin-comment
icon: homefill
icon: home
heroImage: /logo.svg
heroText: vuepress-plugin-comment
tagline: 评论与阅读量插件
Expand Down
12 changes: 6 additions & 6 deletions docs/copy-code/src/.vuepress/config.js
Expand Up @@ -22,15 +22,15 @@ module.exports = config({
iconPrefix: "vuepress-",

nav: [
{ text: "Home", icon: "homefill", link: "/" },
{ text: "Home", icon: "home", link: "/" },
{
text: "Guide",
icon: "creativefill",
icon: "creative",
link: "/guide/",
},
{
text: "Config",
icon: "configuration",
icon: "config",
link: "/config/",
},
],
Expand All @@ -53,15 +53,15 @@ module.exports = config({
locales: {
"/zh/": {
nav: [
{ text: "主页", icon: "homefill", link: "/zh/" },
{ text: "主页", icon: "home", link: "/zh/" },
{
text: "指南",
icon: "creativefill",
icon: "creative",
link: "/zh/guide/",
},
{
text: "配置",
icon: "configuration",
icon: "config",
link: "/zh/config/",
},
],
Expand Down
2 changes: 1 addition & 1 deletion docs/copy-code/src/.vuepress/styles/index.styl
@@ -1 +1 @@
@import '//at.alicdn.com/t/font_1446717_yja086re30b.css'
@import '//at.alicdn.com/t/font_1446717_q5huxk6v1h.css'
2 changes: 1 addition & 1 deletion docs/copy-code/src/config.md
@@ -1,6 +1,6 @@
---
title: API Config
icon: configuration
icon: config
---

## baseLang
Expand Down
2 changes: 1 addition & 1 deletion docs/copy-code/src/guide.md
@@ -1,6 +1,6 @@
---
title: Guide
icon: creativefill
icon: creative
---

## Usage
Expand Down
2 changes: 1 addition & 1 deletion docs/copy-code/src/readme.md
@@ -1,7 +1,7 @@
---
home: true
title: "@mr-hope/vuepress-plugin-copy-code"
icon: homefill
icon: home
heroImage: /logo.svg
heroText: "@mr-hope/vuepress-plugin-copy-code"
tagline: Code Copy plugin for vuepress
Expand Down
2 changes: 1 addition & 1 deletion docs/copy-code/src/zh/config.md
@@ -1,6 +1,6 @@
---
title: 配置
icon: configuration
icon: config
---

## 插件配置
Expand Down
2 changes: 1 addition & 1 deletion docs/copy-code/src/zh/guide.md
@@ -1,6 +1,6 @@
---
title: 指南
icon: creativefill
icon: creative
---

## 使用
Expand Down
2 changes: 1 addition & 1 deletion docs/copy-code/src/zh/readme.md
@@ -1,7 +1,7 @@
---
home: true
title: "@mr-hope/vuepress-plugin-copy-code"
icon: homefill
icon: home
heroImage: /logo.svg
heroText: "@mr-hope/vuepress-plugin-copy-code"
tagline: 为 VuePress 提供代码块一键复制
Expand Down
2 changes: 1 addition & 1 deletion docs/last-update/src/.vuepress/styles/index.styl
@@ -1 +1 @@
@import '//at.alicdn.com/t/font_1446717_yja086re30b.css'
@import '//at.alicdn.com/t/font_1446717_q5huxk6v1h.css'
2 changes: 1 addition & 1 deletion docs/last-update/src/readme.md
@@ -1,7 +1,7 @@
---
home: true
title: "@mr-hope/vuepress-plugin-last-update"
icon: homefill
icon: home
heroImage: /logo.svg
heroText: "@mr-hope/vuepress-plugin-last-update"
tagline: Last update plugin for vuepress
Expand Down
2 changes: 1 addition & 1 deletion docs/last-update/src/zh/readme.md
@@ -1,7 +1,7 @@
---
home: true
title: "@mr-hope/vuepress-plugin-last-update"
icon: homefill
icon: home
heroImage: /logo.svg
heroText: "@mr-hope/vuepress-plugin-last-update"
tagline: 最后更新时间插件
Expand Down

0 comments on commit 75b4545

Please sign in to comment.