GeezerVison is showing github.com — docs: some minor doc optimizations · strogo/lowcode-engine@546017d
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: docs/docs/api/index.md +32-2Lines changed: 32 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3,9 +3,39 @@ title: API 总览 | 3 | 3 | sidebar_position: 0 | 4 | 4 | --- | 5 | 5 |
| 6 | | -引擎直接提供 9 大类 API,以及若干间接的 API,具体如下图: | | 6 | +引擎提供的公开 API 分为`命名空间`和`模型`两类,其中`命名空间`用于聚合一大类的 API,`模型`为各 API 涉及到的对象模型。 | | 7 | + | | 8 | +### 命名空间 | | 9 | + | | 10 | +引擎直接提供以下几大类 API | | 11 | + | | 12 | +- skeleton 面板 API | | 13 | +- material 物料 API | | 14 | +- project 模型 API | | 15 | +- simulator-host 模拟器 API | | 16 | +- hotkey 快捷键 API | | 17 | +- setters 设置器 API | | 18 | +- event 事件 API | | 19 | +- config 配置 API | | 20 | +- common 通用 API | | 21 | +- logger 日志 API | | 22 | +- init 初始化 API | | 23 | + | | 24 | +### 模型 | | 25 | +以下模型通过前面的 API 以返回值等形式间接透出。 | | 26 | + | | 27 | +- document-model 文档 | | 28 | +- node 节点 | | 29 | +- node-children 节点孩子 | | 30 | +- props 属性集 | | 31 | +- prop 属性 | | 32 | +- setting-prop-entry 设置属性 | | 33 | +- setting-top-entry 设置属性集 | | 34 | +- component-meta 物料元数据 | | 35 | +- selection 画布选中 | | 36 | +- detecting 画布 hover | | 37 | +- history 操作历史 | 7 | 38 |
| 8 | | - | 9 | 39 |
| 10 | 40 | ### API 设计约定 | 11 | 41 | 一些 API 设计约定: | |
Collapse file Copy file name to clipboardExpand all lines: docs/docs/demoUsage/appendix/api.md +3-2Lines changed: 3 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | --- | 2 | | -title: DataSource - 数据源 API | 3 | | -sidebar_position: 12 | | 2 | +title: demo 使用相关 API | | 3 | +sidebar_position: 2 | 4 | 4 | --- | | 5 | +## 数据源相关 | 5 | 6 | ### 请求数据源 | 6 | 7 | ```javascript | 7 | 8 | // 请求 userList(userList 在数据源面板中定义) | |
Collapse file Copy file name to clipboard +4-2Lines changed: 4 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | { | 2 | | - "label": "扩展低代码编辑器", | 3 | | - "position": 1 | | 2 | + "label": "扩展编辑态", | | 3 | + "position": 1, | | 4 | + "collapsed": false, | | 5 | + "collapsible": true | 4 | 6 | } |
Collapse file Copy file name to clipboardExpand all lines: docs/docs/guide/expand/editor/summary.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | --- | 2 | | -title: 低代码扩展简述 | | 2 | +title: 编辑态扩展简述 | 3 | 3 | sidebar_position: 0 | 4 | 4 | --- | 5 | 5 | ## 扩展点简述 | |
Collapse file Copy file name to clipboard +4-2Lines changed: 4 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | { | 2 | | - "label": "扩展低代码运行时", | 3 | | - "position": 2 | | 2 | + "label": "扩展运行时", | | 3 | + "position": 2, | | 4 | + "collapsed": false, | | 5 | + "collapsible": true | 4 | 6 | } |
Collapse file Copy file name to clipboardExpand all lines: docs/docs/participate/config.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9,6 +9,7 @@ sidebar_position: 3 | 9 | 9 | <!-- engine-ext 引擎的扩展包,负责收拢内置 setters / plugins,方便迭代 --> | 10 | 10 | < script crossorigin= "anonymous" src= "//alifd.alicdn.com/npm/@alilc/[email protected]/dist/js/engine-ext.js"></ script> | 11 | 11 | ``` | | 12 | +> 注,这里的版本号是示例,请尽量选用最新版 | 12 | 13 |
| 13 | 14 | 工程化配置我们进行了统一,具体如下: | 14 | 15 | ```shell | @@ -22,7 +23,6 @@ sidebar_position: 3 | 22 | 23 | "react": "var window.React", | 23 | 24 | "react-dom": "var window.ReactDOM", | 24 | 25 | "prop-types": "var window.PropTypes", | 25 | | - "rax": "var window.Rax", | 26 | 26 | "@alilc/lowcode-engine": "var window.AliLowCodeEngine", | 27 | 27 | "@alilc/lowcode-engine-ext": "var window.AliLowCodeEngineExt", | 28 | 28 | "moment": "var moment", | @@ -39,7 +39,7 @@ sidebar_position: 3 | 39 | 39 | ["build-plugin-fusion", { | 40 | 40 | }], | 41 | 41 | ["build-plugin-moment-locales", { | 42 | | - "locales": ["zh-cn"] | | 42 | + "locales": ["zh-CN"] | 43 | 43 | }], | 44 | 44 | "./build.plugin.js" | 45 | 45 | ] | |
Collapse file Copy file name to clipboardExpand all lines: docs/docs/participate/flow.md +31-3Lines changed: 31 additions & 3 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -19,7 +19,8 @@ sidebar_position: 2 | 19 | 19 | 几点要求: | 20 | 20 |
| 21 | 21 | 1. commit message 格式遵循 [ConvensionalCommits](https://www.conventionalcommits.org/en/v1.0.0/#summary) | 22 | | - | | 22 | + | | 23 | + <img src="https://img.alicdn.com/imgextra/i3/O1CN01M9UzVM1iqYpyxECdV_!!6000000004464-2-tps-2070-594.png" width="700"/> | 23 | 24 | 2. 请按照一个 bugfix / feature 对应一个 commit,假如不是,请 rebase 后再提交 MR,不要一堆无用的、试验性的 commit。 | 24 | 25 |
| 25 | 26 | 好处:从引擎的整体 commit 历史来看,会很清晰,**每个 commit 完成一件确定的事,changelog 也能自动生成**。另外,假如因为某个 commit 导致了 bug,也很容易通过 rebase drop 等方式快速修复。 | @@ -42,7 +43,7 @@ sidebar_position: 2 | 42 | 43 |
| 43 | 44 | > 此处是理想节奏,实际情况可能会有调整 | 44 | 45 |
| 45 | | -- 日常迭代 2 周,一般月中或月底 | | 46 | +- 日常迭代 2 周,一般月中或月底,发版日两天前发最后一个 beta 版本,原则上不接受新 pr,灰度 2 天后,发正式版。 | 46 | 47 | - 特殊情况紧急迭代随时发 | 47 | 48 | - 大 Feature 迭代,每年 2 - 4 次 | 48 | 49 |
| @@ -79,7 +80,34 @@ sidebar_position: 2 | 79 | 80 |
| 80 | 81 | 如果是发布 beta 版本,步骤如下(以发布 1.0.1 版本为例): | 81 | 82 |
| 82 | | -#### 发某版本首个 beta,如 1.0.1-beta.0 | | 83 | +#### 发某 y 位版本首个 beta,如 1.1.0-beta.0 | | 84 | +1. 拉 develop 分支 | | 85 | + ```bash | | 86 | + git checkout develop | | 87 | + ``` | | 88 | + 更新到最新(如需) | | 89 | + ```bash | | 90 | + git pull | | 91 | + ``` | | 92 | +2. 拉 release 分支,此处以 1.1.0 版本做示例 | | 93 | + ```bash | | 94 | + git checkout -b release/1.1.0-beta | | 95 | + git push --set-upstream origin release/1.1.0-beta | | 96 | + ``` | | 97 | +3. build | | 98 | + ```bash | | 99 | + npm run build | | 100 | + ``` | | 101 | +4. 发布,此处需有 @alilc scope 发包权限 | | 102 | + ```bash | | 103 | + npm run pub:preminor | | 104 | + ``` | | 105 | +5. 同步到 tnpm 源 & alifd CDN | | 106 | + ```bash | | 107 | + tnpm run sync | | 108 | + ``` | | 109 | + | | 110 | +#### 发某 z 位版本首个 beta,如 1.0.1-beta.0 | 83 | 111 | 1. 拉 develop 分支 | 84 | 112 | ```bash | 85 | 113 | git checkout develop | |
Collapse file Copy file name to clipboardExpand all lines: docs/package.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | { | 2 | 2 | "name": "@alilc/lowcode-engine-docs", | 3 | | - "version": "1.0.7", | | 3 | + "version": "1.0.8", | 4 | 4 | "description": "低代码引擎版本化文档", | 5 | 5 | "license": "MIT", | 6 | 6 | "files": [ | |
|