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/package.json b/docs/package.json index 018096b6..2d07af4a 100644 --- a/docs/package.json +++ b/docs/package.json @@ -7,14 +7,14 @@ "build": "gridsome build" }, "dependencies": { - "@gridsome/remark-prismjs": "^0.4.0", + "@gridsome/remark-prismjs": "^0.5.0", "@gridsome/source-filesystem": "^0.6.2", "@gridsome/transformer-json": "^0.2.1", "@gridsome/vue-remark": "^0.2.5", "@mvasilkov/outdent": "^1.0.4", "collect.js": "^4.28.2", "globby": "^11.0.0", - "gridsome": "0.7.21", + "gridsome": "0.7.22", "gridsome-plugin-simple-analytics": "^1.1.0", "portal-vue": "^2.1.7", "raw-loader": "^4.0.2", @@ -34,7 +34,7 @@ "@babel/preset-env": "^7.11.5", "@babel/preset-react": "^7.10.4", "html-loader": "^1.3.2", - "node-sass": "^4.14.1", + "node-sass": "^5.0.0", "sass-loader": "^10.0.3", "style-resources-loader": "^1.3.3", "ts-loader": "^8.0.7" diff --git a/docs/src/demos/Examples/CollaborativeEditing/index.vue b/docs/src/demos/Examples/CollaborativeEditing/index.vue index d5bf961c..af1c2057 100644 --- a/docs/src/demos/Examples/CollaborativeEditing/index.vue +++ b/docs/src/demos/Examples/CollaborativeEditing/index.vue @@ -1,14 +1,83 @@ - - diff --git a/docs/src/demos/Examples/History/index.spec.js b/docs/src/demos/Examples/History/index.spec.js deleted file mode 100644 index 8e5d02ac..00000000 --- a/docs/src/demos/Examples/History/index.spec.js +++ /dev/null @@ -1,31 +0,0 @@ -context('/examples/history', () => { - before(() => { - cy.visit('/examples/history') - }) - - beforeEach(() => { - cy.get('.ProseMirror').then(([{ editor }]) => { - editor.clearContent() - }) - }) - - it('should not have a mistake', () => { - cy.get('.ProseMirror').then(() => { - cy.get('.ProseMirror').should('not.contain', 'Mistake') - }) - }) - - it('should have a mistake', () => { - cy.get('.ProseMirror').then(([{ editor }]) => { - editor.insertText('Mistake') - cy.get('.ProseMirror').should('contain', 'Mistake') - }) - }) - - it('the mistake should be removed again', () => { - cy.get('.ProseMirror').then(([{ editor }]) => { - editor.undo() - cy.get('.ProseMirror').should('not.contain', 'Mistake') - }) - }) -}) diff --git a/docs/src/demos/Examples/History/index.vue b/docs/src/demos/Examples/History/index.vue deleted file mode 100644 index 578c3926..00000000 --- a/docs/src/demos/Examples/History/index.vue +++ /dev/null @@ -1,47 +0,0 @@ - - - diff --git a/docs/src/demos/Examples/TodoApp/index.vue b/docs/src/demos/Examples/TodoApp/index.vue index 9ebd584a..702d9499 100644 --- a/docs/src/demos/Examples/TodoApp/index.vue +++ b/docs/src/demos/Examples/TodoApp/index.vue @@ -17,6 +17,10 @@ const CustomDocument = Document.extend({ content: 'taskList', }) +const CustomTaskItem = TaskItem.extend({ + content: 'paragraph', +}) + export default { components: { EditorContent, @@ -35,10 +39,10 @@ export default { Paragraph(), Text(), TaskList(), - TaskItem(), + CustomTaskItem(), ], content: ` -