From 50285072946d5bbe12486ba67a4257e9eb7accca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Mon, 30 Nov 2020 14:20:34 +0100 Subject: [PATCH 1/2] dont show test files in demos --- docs/src/components/Demo/index.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/src/components/Demo/index.vue b/docs/src/components/Demo/index.vue index 56c36297..71cd96b7 100644 --- a/docs/src/components/Demo/index.vue +++ b/docs/src/components/Demo/index.vue @@ -111,6 +111,7 @@ export default { mounted() { this.files = collect(require.context('~/demos/', true, /.+\..+$/).keys()) .filter(path => path.startsWith(`./${this.name}/`)) + .filter(path => !path.endsWith('.spec.js') && !path.endsWith('.spec.ts')) .map(path => path.replace('./', '')) .map(path => { const extension = path.split('.').pop() From 4fbdb0ff0c89dfed146007e68f2457533f8c0c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Mon, 30 Nov 2020 14:24:48 +0100 Subject: [PATCH 2/2] code style --- docs/src/demos/Marks/Highlight/index.vue | 10 +++++----- docs/src/docPages/api/editor.md | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/src/demos/Marks/Highlight/index.vue b/docs/src/demos/Marks/Highlight/index.vue index aa45ff17..70eefe82 100644 --- a/docs/src/demos/Marks/Highlight/index.vue +++ b/docs/src/demos/Marks/Highlight/index.vue @@ -67,11 +67,11 @@ export default { Highlight, ], content: ` -

This isn’t highlighted.

-

But that one is.

-

And this is highlighted too, but in a different color.

-

And this one has a data attribute.

- `, +

This isn’t highlighted.

+

But that one is.

+

And this is highlighted too, but in a different color.

+

And this one has a data attribute.

+ `, }) }, diff --git a/docs/src/docPages/api/editor.md b/docs/src/docPages/api/editor.md index 370e965b..e47e0238 100644 --- a/docs/src/docPages/api/editor.md +++ b/docs/src/docPages/api/editor.md @@ -47,7 +47,7 @@ new Editor({ extensions: [ ...defaultExtensions(), Highlight, - ] + ], }) ```