Skip to content

Commit

Permalink
Use Vuepress for documentation website
Browse files Browse the repository at this point in the history
  • Loading branch information
baku89 committed Feb 15, 2024
1 parent 31bb71d commit 9987b04
Show file tree
Hide file tree
Showing 33 changed files with 2,295 additions and 294 deletions.
43 changes: 43 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"env": {
"node": true,
"commonjs": true,
"jest/globals": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaVersion": 2022,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"simple-import-sort",
"unused-imports",
"jest"
],
"rules": {
"no-console": "warn",
"no-debugger": "warn",
"eqeqeq": "error",
"prefer-const": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error",
"unused-imports/no-unused-imports-ts": "error",
"@typescript-eslint/no-namespace": "off",
"vue/no-multiple-template-root": "off",
"vue/multi-word-component-names": "off",
"vue/no-v-model-argument": "off",
"vue/attribute-hyphenation": "off",
"vue/v-on-event-hyphenation": "off"
},
"ignorePatterns": ["demo/examples/*.js"]
}
35 changes: 0 additions & 35 deletions .eslintrc.js

This file was deleted.

9 changes: 7 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
node_modules

/lib
/static


# local env files
Expand All @@ -27,4 +26,10 @@ lerna-debug.log*
*.ntvs*
*.njsproj
*.sln
*.sw?
*.sw?

# For Vuepress
.cache
.temp
docs/api
dist
4 changes: 0 additions & 4 deletions demo/declarations.d.ts

This file was deleted.

47 changes: 0 additions & 47 deletions demo/index.html

This file was deleted.

106 changes: 0 additions & 106 deletions demo/main.ts

This file was deleted.

4 changes: 0 additions & 4 deletions demo/modules.d.ts

This file was deleted.

69 changes: 0 additions & 69 deletions demo/style.css

This file was deleted.

9 changes: 9 additions & 0 deletions docs/.vuepress/client.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import {defineClientConfig} from '@vuepress/client'
import Sandbox from '../components/Sandbox.vue'

export default defineClientConfig({
enhance({app}) {
// app.component('Example', Example)
app.component('Sandbox', Sandbox)
},
})
Loading

0 comments on commit 9987b04

Please sign in to comment.