+ + + +
+ diff --git a/docs/.gitignore b/docs/.gitignore new file mode 100644 index 0000000..fbea7fd --- /dev/null +++ b/docs/.gitignore @@ -0,0 +1,7 @@ +node_modules +.next +.DS_Store +yarn-error.log +dist +examples +packages \ No newline at end of file diff --git a/docs/.prettierignore b/docs/.prettierignore new file mode 100644 index 0000000..f74c781 --- /dev/null +++ b/docs/.prettierignore @@ -0,0 +1,2 @@ +.next +node_modules diff --git a/docs/LICENSE b/docs/LICENSE new file mode 100644 index 0000000..6734428 --- /dev/null +++ b/docs/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Shu Ding + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..d4d2792 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,8 @@ +# [Scenify](https://github.com/scenify/scenify-sdk) + +_Warning: this project is a work in progress, API might change without notice._ + + +**Scenify** is a [fabric.js](https://nextjs.org) based SDK that will help you build canvas-like editors for several business use cases. + +![](/public/preview.png) diff --git a/docs/next.config.js b/docs/next.config.js new file mode 100644 index 0000000..851af14 --- /dev/null +++ b/docs/next.config.js @@ -0,0 +1,2 @@ +const withNextra = require('nextra')('nextra-theme-docs', './theme.config.js') +module.exports = withNextra() diff --git a/docs/package.json b/docs/package.json new file mode 100644 index 0000000..60439ae --- /dev/null +++ b/docs/package.json @@ -0,0 +1,27 @@ +{ + "name": "nextra", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "dev": "next", + "start": "next start", + "build": "next build" + }, + "author": "Shu Ding", + "license": "MIT", + "dependencies": { + "next": "^10.0.8-canary.9", + "nextra": "^0.4.1", + "nextra-theme-docs": "^1.1.2", + "react": "^17.0.1", + "react-dom": "^17.0.1" + }, + "devDependencies": { + "prettier": "^2.0.5" + }, + "prettier": { + "semi": false, + "singleQuote": true + } +} diff --git a/docs/pages/_app.js b/docs/pages/_app.js new file mode 100644 index 0000000..3e7701b --- /dev/null +++ b/docs/pages/_app.js @@ -0,0 +1,5 @@ +import 'nextra-theme-docs/style.css' + +export default function Nextra({ Component, pageProps }) { + return