docs: rename all the things

This commit is contained in:
Hans Pagel
2021-01-26 00:57:47 +01:00
parent 4c34bfd8d2
commit f2a39743e1
12 changed files with 34 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
context('/demos/Guide/StoreContent/ExportHTML', () => {
context('/demos/Guide/Content/ExportHTML', () => {
before(() => {
cy.visit('/demos/Guide/StoreContent/ExportHTML')
cy.visit('/demos/Guide/Content/ExportHTML')
})
beforeEach(() => {

View File

@@ -1,6 +1,6 @@
context('/demos/Guide/StoreContent/ExportJSON', () => {
context('/demos/Guide/Content/ExportJSON', () => {
before(() => {
cy.visit('/demos/Guide/StoreContent/ExportJSON')
cy.visit('/demos/Guide/Content/ExportJSON')
})
beforeEach(() => {

View File

@@ -0,0 +1,7 @@
context('/demos/Guide/Content/GenerateHTML', () => {
before(() => {
cy.visit('/demos/Guide/Content/GenerateHTML')
})
// TODO: Write tests
})

View File

@@ -0,0 +1,51 @@
<template>
<pre><code>{{ output }}</code></pre>
</template>
<script>
import { generateHTML } from '@tiptap/html'
import Document from '@tiptap/extension-document'
import Paragraph from '@tiptap/extension-paragraph'
import Text from '@tiptap/extension-text'
import Bold from '@tiptap/extension-bold'
export default {
data() {
return {
output: '',
json: {
type: 'document',
content: [
{
type: 'paragraph',
content: [
{
type: 'text',
text: 'Example ',
},
{
type: 'text',
marks: [
{
type: 'bold',
},
],
text: 'Text',
},
],
},
],
},
}
},
mounted() {
this.output = generateHTML(this.json, [
Document,
Paragraph,
Text,
Bold,
])
},
}
</script>

View File

@@ -1,6 +1,6 @@
context('/demos/Guide/StoreContent/ReadOnly', () => {
context('/demos/Guide/Content/ReadOnly', () => {
beforeEach(() => {
cy.visit('/demos/Guide/StoreContent/ReadOnly')
cy.visit('/demos/Guide/Content/ReadOnly')
})
it.skip('should be read-only', () => {