diff --git a/docs/gridsome.config.js b/docs/gridsome.config.js index c3fb6c70..0e7d1212 100644 --- a/docs/gridsome.config.js +++ b/docs/gridsome.config.js @@ -12,7 +12,7 @@ function addStyleResource(rule) { module.exports = { siteName: 'tiptap', - titleTemplate: '%s', + titleTemplate: '%s | tiptap', port: 3000, plugins: [ { @@ -20,7 +20,7 @@ module.exports = { options: { typeName: 'DocPage', baseDir: './src/docPages', - template: './src/templates/DocPage', + template: './src/templates/DocPage/index.vue', index: './introduction', plugins: [ '@gridsome/remark-prismjs', diff --git a/docs/src/docPages/introduction.md b/docs/src/docPages/introduction.md index b8a3280b..57036556 100644 --- a/docs/src/docPages/introduction.md +++ b/docs/src/docPages/introduction.md @@ -1,3 +1,7 @@ +--- +title: Renderless rich-text editor +--- + :::error Don’t try this at home Nothing here is production-ready, don’t use it anywhere. ::: diff --git a/docs/src/templates/DocPage/index.vue b/docs/src/templates/DocPage/index.vue index 0fb293a6..ef5b0a2f 100644 --- a/docs/src/templates/DocPage/index.vue +++ b/docs/src/templates/DocPage/index.vue @@ -6,4 +6,42 @@ + +query($path: String!) { + docPage(path: $path) { + id + title + fileInfo { + path + } + } +} + + + +