mirror of
https://gitee.com/easii/mapstruct-plus.git
synced 2025-12-06 17:18:43 +08:00
docs: init doc
This commit is contained in:
parent
703328196c
commit
111f45cd96
14
.dumirc.ts
Normal file
14
.dumirc.ts
Normal file
@ -0,0 +1,14 @@
|
||||
import { defineConfig } from 'dumi';
|
||||
|
||||
export default defineConfig({
|
||||
themeConfig: {
|
||||
name: 'mapstruct-plus',
|
||||
logo: false,
|
||||
nav: [{ title: '指南', link: '/guide' }],
|
||||
prefersColor: { default: 'auto' },
|
||||
github: 'https://github.com/linpeilie',
|
||||
footer: false
|
||||
},
|
||||
base: '/mapstruct-plus',
|
||||
publicPath: '/mapstruct-plus/'
|
||||
});
|
||||
21
.github/workflows/gh-pages.yml
vendored
Normal file
21
.github/workflows/gh-pages.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
name: github pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master # default branch
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: npm install
|
||||
# 文档编译命令,如果是 react 模板需要修改为 npm run docs:build
|
||||
- run: npm run build
|
||||
- name: Deploy
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
# 文档目录,如果是 react 模板需要修改为 docs-dist
|
||||
publish_dir: ./dist
|
||||
8
.gitignore
vendored
8
.gitignore
vendored
@ -38,3 +38,11 @@ build/
|
||||
.DS_Store
|
||||
|
||||
.idea
|
||||
|
||||
node_modules
|
||||
|
||||
package-lock.json
|
||||
|
||||
dist
|
||||
.dumi/tmp
|
||||
.dumi/tmp-production
|
||||
4
.husky/commit-msg
Normal file
4
.husky/commit-msg
Normal file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
npx commitlint --edit "${1}"
|
||||
4
.husky/pre-commit
Normal file
4
.husky/pre-commit
Normal file
@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
npx lint-staged
|
||||
20
README.md
Normal file
20
README.md
Normal file
@ -0,0 +1,20 @@
|
||||
# mapstruct-plus
|
||||
|
||||
A static site base on [dumi](https://d.umijs.org).
|
||||
|
||||
## Development
|
||||
|
||||
```bash
|
||||
# install dependencies
|
||||
$ npm install
|
||||
|
||||
# start dev server
|
||||
$ npm start
|
||||
|
||||
# build docs
|
||||
$ npm run build
|
||||
```
|
||||
|
||||
## LICENSE
|
||||
|
||||
MIT
|
||||
1
docs/guide.md
Normal file
1
docs/guide.md
Normal file
@ -0,0 +1 @@
|
||||
This is a guide example.
|
||||
21
docs/index.md
Normal file
21
docs/index.md
Normal file
@ -0,0 +1,21 @@
|
||||
---
|
||||
title: A static site based on dumi
|
||||
hero:
|
||||
title: mapstruct plus
|
||||
description: 简单、强大的 Java Bean 转换工具
|
||||
actions:
|
||||
- text: 快速开始
|
||||
link: /
|
||||
features:
|
||||
- title: 快速开发
|
||||
emoji: 🚀
|
||||
description: Java 实体类之间的转换,仅需要一个注解,减少了乏味且容易出错的开发任务
|
||||
- title: 自动化
|
||||
emoji: 🌈
|
||||
description: 基于注解处理器,所有生成工作在编译阶段完成
|
||||
- title: 执行效率
|
||||
emoji: 💡
|
||||
description: 生成代码基于原有 getter/setter 方法,不会影响原有性能
|
||||
---
|
||||
|
||||
mapstruct-plus
|
||||
36
package.json
Normal file
36
package.json
Normal file
@ -0,0 +1,36 @@
|
||||
{
|
||||
"name": "mapstruct-plus",
|
||||
"version": "0.0.1",
|
||||
"description": "mapstruct-plus document",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"build": "dumi build",
|
||||
"deploy": "gh-pages -d dist",
|
||||
"dev": "dumi dev",
|
||||
"prepare": "husky install && dumi setup",
|
||||
"start": "npm run dev"
|
||||
},
|
||||
"commitlint": {
|
||||
"extends": [
|
||||
"@commitlint/config-conventional"
|
||||
]
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.{md,json}": [
|
||||
"prettier --write --no-error-on-unmatched-pattern"
|
||||
]
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^17.1.2",
|
||||
"@commitlint/config-conventional": "^17.1.0",
|
||||
"dumi": "^2.0.2",
|
||||
"dumi-theme-antd-style": "^0.10.5",
|
||||
"gh-pages": "^5.0.0",
|
||||
"husky": "^8.0.1",
|
||||
"lint-staged": "^13.0.3",
|
||||
"prettier": "^2.7.1"
|
||||
},
|
||||
"authors": [
|
||||
"linpeilie@qq.com"
|
||||
]
|
||||
}
|
||||
12
tsconfig.json
Normal file
12
tsconfig.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"strict": true,
|
||||
"skipLibCheck": true,
|
||||
"esModuleInterop": true,
|
||||
"baseUrl": "./",
|
||||
"paths": {
|
||||
"@@/*": [".dumi/tmp/*"]
|
||||
}
|
||||
},
|
||||
"include": [".dumi/**/*", ".dumirc.ts"]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user