mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 14:59:27 +08:00
move docs to own folder
This commit is contained in:
parent
4574b74864
commit
3c0727fd59
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,7 +1,7 @@
|
||||
*.log
|
||||
.cache
|
||||
.DS_Store
|
||||
src/.temp
|
||||
.temp
|
||||
node_modules
|
||||
dist
|
||||
.env
|
||||
|
15
README.md
15
README.md
@ -1,14 +1 @@
|
||||
# Default starter for Gridsome
|
||||
|
||||
This is the project you get when you run `gridsome create new-project`.
|
||||
|
||||
### 1. Install Gridsome CLI tool if you don't have
|
||||
|
||||
`npm install --global @gridsome/cli`
|
||||
|
||||
### 2. Create a Gridsome project
|
||||
|
||||
1. `gridsome create my-gridsome-site` to install default starter
|
||||
2. `cd my-gridsome-site` to open the folder
|
||||
3. `gridsome develop` to start a local dev server at `http://localhost:8080`
|
||||
4. Happy coding 🎉🙌
|
||||
# Tiptap
|
||||
|
30
docs/package.json
Normal file
30
docs/package.json
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "@tiptap/docs",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "gridsome develop",
|
||||
"build": "gridsome build"
|
||||
},
|
||||
"dependencies": {
|
||||
"@gridsome/remark-prismjs": "^0.3.0",
|
||||
"@gridsome/source-filesystem": "^0.6.2",
|
||||
"@gridsome/transformer-json": "^0.2.1",
|
||||
"@gridsome/vue-remark": "^0.1.10",
|
||||
"@mvasilkov/outdent": "^1.0.4",
|
||||
"@noxify/gridsome-plugin-remark-embed": "^1.1.5",
|
||||
"globby": "^11.0.0",
|
||||
"gridsome": "0.7.12",
|
||||
"raw-loader": "^4.0.0",
|
||||
"react": "^16.13.1",
|
||||
"react-dom": "^16.13.1",
|
||||
"typescript": "^3.8.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/preset-react": "^7.9.4",
|
||||
"node-sass": "^4.13.1",
|
||||
"sass-loader": "^8.0.2",
|
||||
"style-resources-loader": "^1.3.3",
|
||||
"ts-loader": "^6.2.2"
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
@ -4,13 +4,13 @@ import 'prismjs/components/prism-jsx.js'
|
||||
import DefaultLayout from '~/layouts/Default.vue'
|
||||
import Demo from '~/components/Demo'
|
||||
import Tab from '~/components/Tab'
|
||||
import ReactWrapper from '~/components/ReactWrapper'
|
||||
import ReactRenderer from '~/components/ReactRenderer'
|
||||
|
||||
export default function (Vue, { router, head, isClient }) {
|
||||
Vue.component('Layout', DefaultLayout)
|
||||
Vue.component('Demo', Demo)
|
||||
Vue.component('Tab', Tab)
|
||||
Vue.component('ReactWrapper', ReactWrapper)
|
||||
Vue.component('ReactRenderer', ReactRenderer)
|
||||
Vue.filter('highlight', (code, lang = 'javascript') => {
|
||||
return Prism.highlight(code, Prism.languages[lang], lang)
|
||||
})
|
31
package.json
31
package.json
@ -1,26 +1,19 @@
|
||||
{
|
||||
"name": "tiptap-docs",
|
||||
"private": true,
|
||||
"workspaces": [
|
||||
"docs",
|
||||
"packages/*"
|
||||
],
|
||||
"scripts": {
|
||||
"start": "gridsome develop",
|
||||
"build": "yarn build:packages",
|
||||
"build:docs": "gridsome build",
|
||||
"start": "yarn --cwd ./docs start",
|
||||
"build:docs": "yarn --cwd ./docs build",
|
||||
"build:packages": "yarn clean:packages && lerna exec --parallel -- microbundle --raw --compress",
|
||||
"clean:packages": "rm -rf ./packages/*/dist",
|
||||
"test:debug": "cypress open",
|
||||
"test": "cypress run",
|
||||
"startandtest": "start-server-and-test start http://localhost:3000 test"
|
||||
},
|
||||
"dependencies": {
|
||||
"@gridsome/remark-prismjs": "^0.3.0",
|
||||
"@gridsome/source-filesystem": "^0.6.2",
|
||||
"@gridsome/transformer-json": "^0.2.1",
|
||||
"@gridsome/vue-remark": "^0.1.10",
|
||||
"@mvasilkov/outdent": "^1.0.4",
|
||||
"@noxify/gridsome-plugin-remark-embed": "^1.1.5",
|
||||
"devDependencies": {
|
||||
"@types/prosemirror-commands": "^1.0.1",
|
||||
"@types/prosemirror-history": "^1.0.1",
|
||||
"@types/prosemirror-inputrules": "^1.0.2",
|
||||
@ -29,23 +22,11 @@
|
||||
"@types/prosemirror-state": "^1.2.3",
|
||||
"@types/prosemirror-transform": "^1.1.1",
|
||||
"@types/prosemirror-view": "^1.11.2",
|
||||
"globby": "^11.0.0",
|
||||
"gridsome": "0.7.12",
|
||||
"cypress": "^4.3.0",
|
||||
"lerna": "^3.20.2",
|
||||
"microbundle": "^0.11.0",
|
||||
"parcel": "^1.12.4",
|
||||
"raw-loader": "^4.0.0",
|
||||
"react": "^16.13.1",
|
||||
"react-dom": "^16.13.1",
|
||||
"typescript": "^3.8.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/preset-react": "^7.9.4",
|
||||
"cypress": "^4.3.0",
|
||||
"node-sass": "^4.13.1",
|
||||
"sass-loader": "^8.0.2",
|
||||
"start-server-and-test": "^1.10.11",
|
||||
"style-resources-loader": "^1.3.3",
|
||||
"ts-loader": "^6.2.2"
|
||||
"typescript": "^3.8.3"
|
||||
}
|
||||
}
|
||||
|
@ -26,9 +26,9 @@
|
||||
]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts",
|
||||
"src/**/*.tsx",
|
||||
"src/**/*.vue",
|
||||
"docs/src/**/*.ts",
|
||||
"docs/src/**/*.tsx",
|
||||
"docs/src/**/*.vue",
|
||||
"packages/**/*.ts",
|
||||
"packages/**/*.tsx",
|
||||
"packages/**/*.vue",
|
||||
|
Loading…
Reference in New Issue
Block a user