From c05448d50ce31f69a7f719e378da2d6ded5477a7 Mon Sep 17 00:00:00 2001 From: Evan You Date: Fri, 6 Apr 2018 17:08:01 -0400 Subject: [PATCH] support using component at root level --- README.md | 2 + docs/.vuepress/components/OtherComponent.vue | 3 + docs/.vuepress/components/demo-1.vue | 6 +- docs/assets.md | 0 docs/test.md | 5 ++ docs/using-vue.md | 36 +++++++-- lib/default-theme/styles.css | 6 ++ lib/markdown/component.js | 81 ++++++++++++++++++++ lib/markdown/hoist.js | 3 + lib/markdown/index.js | 6 +- 10 files changed, 136 insertions(+), 12 deletions(-) create mode 100644 docs/.vuepress/components/OtherComponent.vue create mode 100644 docs/assets.md create mode 100644 docs/test.md create mode 100644 lib/markdown/component.js create mode 100644 lib/markdown/hoist.js diff --git a/README.md b/README.md index 376b6ed017..7ed6e15e4a 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,8 @@ - Vue-powered: the layout system is a Vue app. It's also pre-rendered into static HTML. And you can register and use Vue components inside markdown content. + - Deep markdown customization to make using Vue inside markdown a breeze. + - Docs first: most of your content will be in Markdown. - Largely gitbook compatible: should be easy to migrate existing gitbook docs over, and maintain original URLs. diff --git a/docs/.vuepress/components/OtherComponent.vue b/docs/.vuepress/components/OtherComponent.vue new file mode 100644 index 0000000000..1d97c7ca8e --- /dev/null +++ b/docs/.vuepress/components/OtherComponent.vue @@ -0,0 +1,3 @@ + diff --git a/docs/.vuepress/components/demo-1.vue b/docs/.vuepress/components/demo-1.vue index 085af055ed..f1dfb581c5 100644 --- a/docs/.vuepress/components/demo-1.vue +++ b/docs/.vuepress/components/demo-1.vue @@ -1,14 +1,14 @@