diff --git a/docs/gridsome.config.js b/docs/gridsome.config.js index e2d0c39f4..be94b2342 100644 --- a/docs/gridsome.config.js +++ b/docs/gridsome.config.js @@ -11,7 +11,7 @@ function addStyleResource(rule) { } module.exports = { - siteName: 'TipTap', + siteName: 'tiptap', port: 3000, plugins: [ { diff --git a/docs/src/assets/fonts/Inter-Black.woff b/docs/src/assets/fonts/Inter-Black.woff new file mode 100644 index 000000000..122e743a6 Binary files /dev/null and b/docs/src/assets/fonts/Inter-Black.woff differ diff --git a/docs/src/assets/fonts/Inter-Black.woff2 b/docs/src/assets/fonts/Inter-Black.woff2 new file mode 100644 index 000000000..a9012c8ab Binary files /dev/null and b/docs/src/assets/fonts/Inter-Black.woff2 differ diff --git a/docs/src/assets/fonts/Inter-BlackItalic.woff b/docs/src/assets/fonts/Inter-BlackItalic.woff new file mode 100644 index 000000000..ca4e6045e Binary files /dev/null and b/docs/src/assets/fonts/Inter-BlackItalic.woff differ diff --git a/docs/src/assets/fonts/Inter-BlackItalic.woff2 b/docs/src/assets/fonts/Inter-BlackItalic.woff2 new file mode 100644 index 000000000..cbc8c66ed Binary files /dev/null and b/docs/src/assets/fonts/Inter-BlackItalic.woff2 differ diff --git a/docs/src/assets/fonts/Inter-Bold.woff b/docs/src/assets/fonts/Inter-Bold.woff new file mode 100644 index 000000000..3891030c9 Binary files /dev/null and b/docs/src/assets/fonts/Inter-Bold.woff differ diff --git a/docs/src/assets/fonts/Inter-Bold.woff2 b/docs/src/assets/fonts/Inter-Bold.woff2 new file mode 100644 index 000000000..12a4b2a27 Binary files /dev/null and b/docs/src/assets/fonts/Inter-Bold.woff2 differ diff --git a/docs/src/assets/fonts/Inter-BoldItalic.woff b/docs/src/assets/fonts/Inter-BoldItalic.woff new file mode 100644 index 000000000..5f252017c Binary files /dev/null and b/docs/src/assets/fonts/Inter-BoldItalic.woff differ diff --git a/docs/src/assets/fonts/Inter-BoldItalic.woff2 b/docs/src/assets/fonts/Inter-BoldItalic.woff2 new file mode 100644 index 000000000..559d8e5c4 Binary files /dev/null and b/docs/src/assets/fonts/Inter-BoldItalic.woff2 differ diff --git a/docs/src/assets/fonts/Inter-ExtraBold.woff b/docs/src/assets/fonts/Inter-ExtraBold.woff new file mode 100644 index 000000000..a99d9b3f2 Binary files /dev/null and b/docs/src/assets/fonts/Inter-ExtraBold.woff differ diff --git a/docs/src/assets/fonts/Inter-ExtraBold.woff2 b/docs/src/assets/fonts/Inter-ExtraBold.woff2 new file mode 100644 index 000000000..fb90f3636 Binary files /dev/null and b/docs/src/assets/fonts/Inter-ExtraBold.woff2 differ diff --git a/docs/src/assets/fonts/Inter-ExtraBoldItalic.woff b/docs/src/assets/fonts/Inter-ExtraBoldItalic.woff new file mode 100644 index 000000000..c16b1c9a1 Binary files /dev/null and b/docs/src/assets/fonts/Inter-ExtraBoldItalic.woff differ diff --git a/docs/src/assets/fonts/Inter-ExtraBoldItalic.woff2 b/docs/src/assets/fonts/Inter-ExtraBoldItalic.woff2 new file mode 100644 index 000000000..2ef2e6356 Binary files /dev/null and b/docs/src/assets/fonts/Inter-ExtraBoldItalic.woff2 differ diff --git a/docs/src/assets/fonts/Inter-ExtraLight-BETA.woff b/docs/src/assets/fonts/Inter-ExtraLight-BETA.woff new file mode 100644 index 000000000..2c6af8ee4 Binary files /dev/null and b/docs/src/assets/fonts/Inter-ExtraLight-BETA.woff differ diff --git a/docs/src/assets/fonts/Inter-ExtraLight-BETA.woff2 b/docs/src/assets/fonts/Inter-ExtraLight-BETA.woff2 new file mode 100644 index 000000000..1b220ac8a Binary files /dev/null and b/docs/src/assets/fonts/Inter-ExtraLight-BETA.woff2 differ diff --git a/docs/src/assets/fonts/Inter-ExtraLightItalic-BETA.woff b/docs/src/assets/fonts/Inter-ExtraLightItalic-BETA.woff new file mode 100644 index 000000000..9152f8087 Binary files /dev/null and b/docs/src/assets/fonts/Inter-ExtraLightItalic-BETA.woff differ diff --git a/docs/src/assets/fonts/Inter-ExtraLightItalic-BETA.woff2 b/docs/src/assets/fonts/Inter-ExtraLightItalic-BETA.woff2 new file mode 100644 index 000000000..6115a9213 Binary files /dev/null and b/docs/src/assets/fonts/Inter-ExtraLightItalic-BETA.woff2 differ diff --git a/docs/src/assets/fonts/Inter-Italic.woff b/docs/src/assets/fonts/Inter-Italic.woff new file mode 100644 index 000000000..ada91b1c8 Binary files /dev/null and b/docs/src/assets/fonts/Inter-Italic.woff differ diff --git a/docs/src/assets/fonts/Inter-Italic.woff2 b/docs/src/assets/fonts/Inter-Italic.woff2 new file mode 100644 index 000000000..ca1604bc5 Binary files /dev/null and b/docs/src/assets/fonts/Inter-Italic.woff2 differ diff --git a/docs/src/assets/fonts/Inter-Light-BETA.woff b/docs/src/assets/fonts/Inter-Light-BETA.woff new file mode 100644 index 000000000..090169c77 Binary files /dev/null and b/docs/src/assets/fonts/Inter-Light-BETA.woff differ diff --git a/docs/src/assets/fonts/Inter-Light-BETA.woff2 b/docs/src/assets/fonts/Inter-Light-BETA.woff2 new file mode 100644 index 000000000..99aa927a2 Binary files /dev/null and b/docs/src/assets/fonts/Inter-Light-BETA.woff2 differ diff --git a/docs/src/assets/fonts/Inter-LightItalic-BETA.woff b/docs/src/assets/fonts/Inter-LightItalic-BETA.woff new file mode 100644 index 000000000..495a5b7ba Binary files /dev/null and b/docs/src/assets/fonts/Inter-LightItalic-BETA.woff differ diff --git a/docs/src/assets/fonts/Inter-LightItalic-BETA.woff2 b/docs/src/assets/fonts/Inter-LightItalic-BETA.woff2 new file mode 100644 index 000000000..9439aab47 Binary files /dev/null and b/docs/src/assets/fonts/Inter-LightItalic-BETA.woff2 differ diff --git a/docs/src/assets/fonts/Inter-Medium.woff b/docs/src/assets/fonts/Inter-Medium.woff new file mode 100644 index 000000000..8089ba2ac Binary files /dev/null and b/docs/src/assets/fonts/Inter-Medium.woff differ diff --git a/docs/src/assets/fonts/Inter-Medium.woff2 b/docs/src/assets/fonts/Inter-Medium.woff2 new file mode 100644 index 000000000..5ed9a9b4f Binary files /dev/null and b/docs/src/assets/fonts/Inter-Medium.woff2 differ diff --git a/docs/src/assets/fonts/Inter-MediumItalic.woff b/docs/src/assets/fonts/Inter-MediumItalic.woff new file mode 100644 index 000000000..9cb0d4276 Binary files /dev/null and b/docs/src/assets/fonts/Inter-MediumItalic.woff differ diff --git a/docs/src/assets/fonts/Inter-MediumItalic.woff2 b/docs/src/assets/fonts/Inter-MediumItalic.woff2 new file mode 100644 index 000000000..7235becb1 Binary files /dev/null and b/docs/src/assets/fonts/Inter-MediumItalic.woff2 differ diff --git a/docs/src/assets/fonts/Inter-Regular.woff b/docs/src/assets/fonts/Inter-Regular.woff new file mode 100644 index 000000000..82fd34ec1 Binary files /dev/null and b/docs/src/assets/fonts/Inter-Regular.woff differ diff --git a/docs/src/assets/fonts/Inter-Regular.woff2 b/docs/src/assets/fonts/Inter-Regular.woff2 new file mode 100644 index 000000000..9a02e8011 Binary files /dev/null and b/docs/src/assets/fonts/Inter-Regular.woff2 differ diff --git a/docs/src/assets/fonts/Inter-SemiBold.woff b/docs/src/assets/fonts/Inter-SemiBold.woff new file mode 100644 index 000000000..572fb474f Binary files /dev/null and b/docs/src/assets/fonts/Inter-SemiBold.woff differ diff --git a/docs/src/assets/fonts/Inter-SemiBold.woff2 b/docs/src/assets/fonts/Inter-SemiBold.woff2 new file mode 100644 index 000000000..f79159424 Binary files /dev/null and b/docs/src/assets/fonts/Inter-SemiBold.woff2 differ diff --git a/docs/src/assets/fonts/Inter-SemiBoldItalic.woff b/docs/src/assets/fonts/Inter-SemiBoldItalic.woff new file mode 100644 index 000000000..d10cec38b Binary files /dev/null and b/docs/src/assets/fonts/Inter-SemiBoldItalic.woff differ diff --git a/docs/src/assets/fonts/Inter-SemiBoldItalic.woff2 b/docs/src/assets/fonts/Inter-SemiBoldItalic.woff2 new file mode 100644 index 000000000..5695036d1 Binary files /dev/null and b/docs/src/assets/fonts/Inter-SemiBoldItalic.woff2 differ diff --git a/docs/src/assets/fonts/Inter-Thin-BETA.woff b/docs/src/assets/fonts/Inter-Thin-BETA.woff new file mode 100644 index 000000000..d9b1c1326 Binary files /dev/null and b/docs/src/assets/fonts/Inter-Thin-BETA.woff differ diff --git a/docs/src/assets/fonts/Inter-Thin-BETA.woff2 b/docs/src/assets/fonts/Inter-Thin-BETA.woff2 new file mode 100644 index 000000000..afdbdd8b4 Binary files /dev/null and b/docs/src/assets/fonts/Inter-Thin-BETA.woff2 differ diff --git a/docs/src/assets/fonts/Inter-ThinItalic-BETA.woff b/docs/src/assets/fonts/Inter-ThinItalic-BETA.woff new file mode 100644 index 000000000..d192c2352 Binary files /dev/null and b/docs/src/assets/fonts/Inter-ThinItalic-BETA.woff differ diff --git a/docs/src/assets/fonts/Inter-ThinItalic-BETA.woff2 b/docs/src/assets/fonts/Inter-ThinItalic-BETA.woff2 new file mode 100644 index 000000000..1bad137f5 Binary files /dev/null and b/docs/src/assets/fonts/Inter-ThinItalic-BETA.woff2 differ diff --git a/docs/src/assets/fonts/Inter-italic.var.woff2 b/docs/src/assets/fonts/Inter-italic.var.woff2 new file mode 100644 index 000000000..533e499fb Binary files /dev/null and b/docs/src/assets/fonts/Inter-italic.var.woff2 differ diff --git a/docs/src/data/install.md b/docs/src/data/install.md index 8517083b7..8e9886cfc 100644 --- a/docs/src/data/install.md +++ b/docs/src/data/install.md @@ -3,6 +3,10 @@ title: Install slug: install --- - - npm install @tiptap/core @tiptap/vue - \ No newline at end of file +``` +# Using npm +npm install @tiptap/core + +# Using Yarn +yarn add @tiptap/core +``` \ No newline at end of file diff --git a/docs/src/layouts/App/base.scss b/docs/src/layouts/App/base.scss index 1fcf6fcad..c353504c1 100644 --- a/docs/src/layouts/App/base.scss +++ b/docs/src/layouts/App/base.scss @@ -55,6 +55,11 @@ body { outline: none; } +ul, +ol { + list-style: none; +} + a { color: inherit; transition: color 0.2s $ease, background-color 0.2s $ease; diff --git a/docs/src/layouts/App/fonts.scss b/docs/src/layouts/App/fonts.scss new file mode 100644 index 000000000..1a0dd76b7 --- /dev/null +++ b/docs/src/layouts/App/fonts.scss @@ -0,0 +1,170 @@ +// @font-face { +// font-family: 'Inter'; +// font-style: normal; +// font-weight: 100; +// +// src: url("~@/assets/fonts/Inter-Thin-BETA.woff2") format("woff2"), +// url("~@/assets/fonts/Inter-Thin-BETA.woff") format("woff"), +// ; +// } +// @font-face { +// font-family: 'Inter'; +// font-style: italic; +// font-weight: 100; +// +// src: url("~@/assets/fonts/Inter-ThinItalic-BETA.woff2") format("woff2"), +// url("~@/assets/fonts/Inter-ThinItalic-BETA.woff") format("woff"), +// ; +// } + +// @font-face { +// font-family: 'Inter'; +// font-style: normal; +// font-weight: 200; +// +// src: url("~@/assets/fonts/Inter-ExtraLight-BETA.woff2") format("woff2"), +// url("~@/assets/fonts/Inter-ExtraLight-BETA.woff") format("woff"), +// ; +// } +// @font-face { +// font-family: 'Inter'; +// font-style: italic; +// font-weight: 200; +// +// src: url("~@/assets/fonts/Inter-ExtraLightItalic-BETA.woff2") format("woff2"), +// url("~@/assets/fonts/Inter-ExtraLightItalic-BETA.woff") format("woff"), +// ; +// } + +// @font-face { +// font-family: 'Inter'; +// font-style: normal; +// font-weight: 300; +// + // src: url("~@/assets/fonts/Inter-Light-BETA.woff2") format("woff2"), + // url("~@/assets/fonts/Inter-Light-BETA.woff") format("woff"), +// ; +// } +// @font-face { +// font-family: 'Inter'; +// font-style: italic; +// font-weight: 300; +// + // src: url("~@/assets/fonts/Inter-LightItalic-BETA.woff2") format("woff2"), + // url("~@/assets/fonts/Inter-LightItalic-BETA.woff") format("woff"), +// ; +// } + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 400; + src: + url("~@/assets/fonts/Inter-Regular.woff2") format("woff2"), + url("~@/assets/fonts/Inter-Regular.woff") format("woff"), + ; +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 400; + src: + url("~@/assets/fonts/Inter-Italic.woff2") format("woff2"), + url("~@/assets/fonts/Inter-Italic.woff") format("woff"), + ; +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 500; + src: + url("~@/assets/fonts/Inter-Medium.woff2") format("woff2"), + url("~@/assets/fonts/Inter-Medium.woff") format("woff"), + ; +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 500; + src: + url("~@/assets/fonts/Inter-MediumItalic.woff2") format("woff2"), + url("~@/assets/fonts/Inter-MediumItalic.woff") format("woff"), + ; +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 600; + src: + url("~@/assets/fonts/Inter-SemiBold.woff2") format("woff2"), + url("~@/assets/fonts/Inter-SemiBold.woff") format("woff"), + ; +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 600; + src: + url("~@/assets/fonts/Inter-SemiBoldItalic.woff2") format("woff2"), + url("~@/assets/fonts/Inter-SemiBoldItalic.woff") format("woff"), + ; +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 700; + src: + url("~@/assets/fonts/Inter-Bold.woff2") format("woff2"), + url("~@/assets/fonts/Inter-Bold.woff") format("woff"), + ; +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 700; + src: + url("~@/assets/fonts/Inter-BoldItalic.woff2") format("woff2"), + url("~@/assets/fonts/Inter-BoldItalic.woff") format("woff"), + ; +} + +// @font-face { +// font-family: 'Inter'; +// font-style: normal; +// font-weight: 800; +// +// src: url("~@/assets/fonts/Inter-ExtraBold.woff2") format("woff2"), +// url("~@/assets/fonts/Inter-ExtraBold.woff") format("woff"), +// ; +// } +// @font-face { +// font-family: 'Inter'; +// font-style: italic; +// font-weight: 800; +// +// src: url("~@/assets/fonts/Inter-ExtraBoldItalic.woff2") format("woff2"), +// url("~@/assets/fonts/Inter-ExtraBoldItalic.woff") format("woff"), +// ; +// } + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 900; + + src: url("~@/assets/fonts/Inter-Black.woff2") format("woff2"), + url("~@/assets/fonts/Inter-Black.woff") format("woff"), +; +} +// @font-face { +// font-family: 'Inter'; +// font-style: italic; +// font-weight: 900; +// +// src: url("~@/assets/fonts/Inter-BlackItalic.woff2") format("woff2"), +// url("~@/assets/fonts/Inter-BlackItalic.woff") format("woff"), +// ; +// } diff --git a/docs/src/layouts/App/index.vue b/docs/src/layouts/App/index.vue index 9d92e09f2..0ac3cd2a3 100644 --- a/docs/src/layouts/App/index.vue +++ b/docs/src/layouts/App/index.vue @@ -2,20 +2,22 @@
- - {{ $static.metadata.siteName }} - +
@@ -43,5 +45,6 @@ query { } +