support hide dependency and codeOnly dependency (#20)

* add custom doc

Signed-off-by: theonefx <chenxilzx1@gmail.com>

* add custom doc

Signed-off-by: theonefx <chenxilzx1@gmail.com>

* add custom doc

Signed-off-by: theonefx <chenxilzx1@gmail.com>

* add custom doc

Signed-off-by: theonefx <chenxilzx1@gmail.com>

* refactor docs

Signed-off-by: theonefx <chenxilzx1@gmail.com>

* allow hidden dependency

Signed-off-by: theonefx <chenxilzx1@gmail.com>

* support sample code write to project root

Signed-off-by: theonefx <chenxilzx1@gmail.com>

* spell fix

Signed-off-by: theonefx <chenxilzx1@gmail.com>

* spell fix

Signed-off-by: theonefx <chenxilzx1@gmail.com>

* allow hidden dependency

Signed-off-by: theonefx <chenxilzx1@gmail.com>

* support sample code write to project root

Signed-off-by: theonefx <chenxilzx1@gmail.com>

* add codeOnly depencencies proeprty of dependency

Signed-off-by: theonefx <chenxilzx1@gmail.com>

* support codeonly dependency

Signed-off-by: theonefx <chenxilzx1@gmail.com>

* hide group

Signed-off-by: theonefx <chenxilzx1@gmail.com>

* support dependency of dependency

Signed-off-by: theonefx <chenxilzx1@gmail.com>

* bugfix && page label update

Signed-off-by: theonefx <chenxilzx1@gmail.com>

* misspelling

Signed-off-by: theonefx <chenxilzx1@gmail.com>

Signed-off-by: theonefx <chenxilzx1@gmail.com>
This commit is contained in:
TheoneFx
2022-12-15 20:09:05 +08:00
committed by GitHub
parent 5545232a02
commit e2be410267
24 changed files with 417 additions and 318 deletions

View File

@@ -62,14 +62,18 @@ dependencies:
- name 分组名称;
- bom对应引入的 bom可选如果配置了 bom 则版本依赖全部由 bom 控制;
- compatibilityRange版本范围可选。如果配置该值代表支持的 Spring Boot 版本范围如果不配置则不关注Spring Boot 版本;
- hide: 是否在 metadata api 中显示这个分组;
- content具体组件依赖
- 组件依赖
- name依赖名称展示用
- id依赖的唯一标识需要全局唯一
- name依赖名称展示用
- description依赖描述展示用
- groupId、artifactId依赖坐标
- starter是否是 Spring Boot 的 starter
- links用于生成 help 文档中放置的关联连接
- hide: 是否在 metadata api 中显示这个依赖
- codeOnly: 如果为 true那么在选择这个组件时不会增加任何 maven 或者是 gradle 依赖,而只会添加对应的示例代码
- dependencies: 当前组件依赖的次级组件id当前选择该组件时这个属性设置的次级组件也会被同步选择上
### 架构配置
```yaml
architecture: