-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
80 changed files
with
933 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
> 1% | ||
IE > 8 | ||
last 2 versions | ||
Firefox ESR | ||
Opera 12.1 | ||
Safari > 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
node_modules/** | ||
**/*.css | ||
**/*.html | ||
**/*.min.js | ||
**/node_modules/** | ||
site/** | ||
dist/** | ||
templates/** | ||
packages/*/dist/** | ||
node_modules/** | ||
**/node_modules/** | ||
packages/*/node_modules/** | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"files.watcherExclude": { | ||
"**/node_modules": true | ||
}, | ||
"search.exclude": { | ||
"**/node_modules": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
0 silly argv { _: [ 'clean' ], lernaVersion: '3.22.1', '$0': 'lerna' } | ||
1 notice cli v3.22.1 | ||
2 verbose rootPath /Users/deot/Desktop/wya/github/wya-doc | ||
3 info versioning independent | ||
4 error JSONError: Unexpected token ] in JSON at position 143 while parsing near '...*", "src/**", ], "scripts": { ...' in packages/utils/package.json | ||
4 error at module.exports (/Users/deot/Desktop/wya/github/wya-doc/node_modules/parse-json/index.js:26:19) | ||
4 error at parse (/Users/deot/Desktop/wya/github/wya-doc/node_modules/load-json-file/index.js:15:9) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,14 @@ | ||
{ | ||
"version": "2.0.0", | ||
"npmClient": "npm", | ||
"packages": [ | ||
"packages/*" | ||
] | ||
} | ||
"useWorkspaces": true, | ||
"npmClient": "yarn", | ||
"command": { | ||
"publish": { | ||
"ignoreChanges": ["*.md"], | ||
"message": "chore(release): publish" | ||
}, | ||
"bootstrap": { | ||
"npmClientArgs": ["--no-package-lock"] | ||
} | ||
}, | ||
"version": "independent" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env node | ||
parseInt(process.versions.node, 10) >= 12 | ||
? require('../src/index') | ||
: require('../dist/index'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"name": "@wya/doc-cli", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "dist/index.js", | ||
"files": [ | ||
"dist/**", | ||
"src/**", | ||
"bin/**" | ||
], | ||
"scripts": { | ||
"link": "npm link", | ||
"dev": "doc-cli dev ../../docs", | ||
"build": "doc-cli build ../../docs" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/wya-team/wya-doc" | ||
}, | ||
"keywords": [], | ||
"author": "wya-team", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/wya-team/wya-doc/issues" | ||
}, | ||
"homepage": "https://github.com/wya-team/wya-doc#readme", | ||
"engines": { | ||
"node": ">=12" | ||
}, | ||
"dependencies": { | ||
"@babel/core": "^7.7.5", | ||
"@babel/plugin-proposal-class-properties": "^7.7.4", | ||
"@babel/plugin-proposal-decorators": "^7.7.4", | ||
"@babel/plugin-proposal-export-default-from": "^7.7.4", | ||
"@babel/plugin-proposal-export-namespace-from": "^7.7.4", | ||
"@babel/plugin-proposal-function-bind": "^7.7.4", | ||
"@babel/plugin-syntax-dynamic-import": "^7.7.4", | ||
"@babel/plugin-syntax-jsx": "^7.7.4", | ||
"@babel/plugin-transform-modules-commonjs": "^7.7.5", | ||
"@babel/preset-env": "^7.7.6", | ||
"@babel/preset-env-standalone": "^7.7.7", | ||
"@babel/runtime": "^7.7.4", | ||
"@babel/standalone": "^7.7.7", | ||
"@wya/doc-playground": "^1.0.0", | ||
"@wya/doc-utils": "^1.0.0", | ||
"@wya/http": "^1.4.5", | ||
"@wya/ps": "^1.0.2", | ||
"@wya/sass": "^1.2.0", | ||
"@wya/socket": "^1.1.0", | ||
"@wya/utils": "^1.6.1", | ||
"@wya/vc": "^2.0.0-alpha.58", | ||
"babel-loader": "^8.0.6", | ||
"babel-plugin-import": "^1.13.0", | ||
"babel-plugin-syntax-jsx": "^6.18.0", | ||
"babel-plugin-transform-vue-jsx": "^3.7.0", | ||
"cac": "^6.5.3", | ||
"chalk": "^3.0.0", | ||
"chokidar": "^3.3.0", | ||
"codemirror": "^5.49.2", | ||
"css-loader": "^3.3.0", | ||
"friendly-errors-webpack-plugin": "^1.7.0", | ||
"fs-extra": "^8.1.0", | ||
"highlight.js": "^9.16.2", | ||
"html-loader": "^0.5.5", | ||
"html-webpack-plugin": "^3.2.0", | ||
"js-beautify": "^1.10.2", | ||
"lodash": "^4.17.15", | ||
"markdown-it": "^10.0.0", | ||
"markdown-it-anchor": "^5.2.5", | ||
"markdown-it-chain": "^1.3.0", | ||
"markdown-it-container": "^2.0.0", | ||
"node-sass": "^4.13.0", | ||
"portfinder": "^1.0.25", | ||
"sass-loader": "^8.0.0", | ||
"sass-resources-loader": "^2.0.1", | ||
"upath": "^1.2.0", | ||
"url-loader": "^3.0.0", | ||
"vue": "^2.6.10", | ||
"vue-loader": "^15.7.2", | ||
"vue-router": "^3.1.3", | ||
"vue-style-loader": "^4.1.2", | ||
"vue-template-compiler": "^2.6.10", | ||
"vue-template-es2015-compiler": "^1.9.1", | ||
"webpack": "^4.41.2", | ||
"webpack-cli": "^3.3.10", | ||
"webpack-dev-server": "^3.9.0", | ||
"webpack-merge": "^4.2.2" | ||
}, | ||
"bin": { | ||
"doc-cli": "bin/doc-cli" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import * as __UTILS__ from '@wya/utils'; | ||
|
||
window.__UTILS__ = __UTILS__; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
const path = require('path'); | ||
const sidebar = require('./nav.config.js'); | ||
|
||
const ENV_IS_DEV = process.env.NODE_ENV === 'development'; | ||
|
||
module.exports = { | ||
version: '1.0.0', | ||
/** | ||
* null | './xxx/xxx.vue' | 'default' | json; | ||
*/ | ||
routes: { | ||
'/': '/index', | ||
'/index': { | ||
default: './components/index.vue', | ||
sidebar: null, | ||
header: 'default', | ||
footer: 'default', | ||
extra: null, | ||
}, | ||
'/components/:name': { | ||
default: 'default', | ||
sidebar, | ||
header: 'default', | ||
footer: 'default', | ||
extra: null, | ||
}, | ||
'/api/:name': { | ||
default: 'default', | ||
sidebar, | ||
header: './components/header.vue', | ||
footer: './components/footer.vue', | ||
extra: null, | ||
}, | ||
'*': (to) => { | ||
return '/zh-CN/index'; | ||
} | ||
}, | ||
locales: { | ||
'zh-CN': '简体中文', | ||
'en-US': 'English' | ||
}, | ||
webpackConfig: { | ||
output: { | ||
path: path.resolve(__dirname, '../site/'), | ||
publicPath: ENV_IS_DEV | ||
? '/' | ||
: '/wya-doc/site/' | ||
}, | ||
devServer: {}, | ||
}, | ||
runtime: { | ||
define: { | ||
__DOC_SITE_DIR__: ENV_IS_DEV ? '/' : '/wya-doc/site/', | ||
__DOC_MD_DIR__: ENV_IS_DEV ? '/docs/' : '/wya-doc/docs/', | ||
// __DOC_MD_DIR__: (lang, name) => { return lang + name; }, | ||
__DOC_VERSION__: "1.0.0", | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template> | ||
<div>this is footer</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'hhh' | ||
}; | ||
</script> | ||
|
||
<style lang="scss"> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template> | ||
<div>this is header</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'hhh' | ||
}; | ||
</script> | ||
|
||
<style lang="scss"> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<template> | ||
<div class="v-index"> | ||
<router-link to="/en-US/components/installation"> | ||
<h1>Hello @wya/doc - en-US</h1> | ||
</router-link> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'v-index', | ||
}; | ||
</script> | ||
|
||
<style lang="scss"> | ||
.v-index { | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex: 1; | ||
min-height: 600px; | ||
} | ||
</style> |
Oops, something went wrong.