GeezerVison is showing github.com — feat: add docs site · oeiter/lowcode-engine@260e179
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboard +20Lines changed: 20 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# Dependencies | | 2 | +/node_modules | | 3 | + | | 4 | +# Production | | 5 | +/build | | 6 | + | | 7 | +# Generated files | | 8 | +.docusaurus | | 9 | +.cache-loader | | 10 | + | | 11 | +# Misc | | 12 | +.DS_Store | | 13 | +.env.local | | 14 | +.env.development.local | | 15 | +.env.test.local | | 16 | +.env.production.local | | 17 | + | | 18 | +npm-debug.log* | | 19 | +yarn-debug.log* | | 20 | +yarn-error.log* |
Collapse file Copy file name to clipboard +46Lines changed: 46 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# Low-Code Engine 文档中心(site) | | 2 | + | | 3 | +This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator. | | 4 | + | | 5 | +### 安装 | | 6 | + | | 7 | +``` | | 8 | +$ yarn | | 9 | +``` | | 10 | + | | 11 | +### 本地开发 | | 12 | + | | 13 | +``` | | 14 | +$ yarn start | | 15 | +``` | | 16 | + | | 17 | +This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server. | | 18 | + | | 19 | +### 构建 | | 20 | + | | 21 | +``` | | 22 | +$ yarn build | | 23 | +``` | | 24 | + | | 25 | +### 部署 | | 26 | +```bash | | 27 | +1. npm run build | | 28 | +2. npm publish # 记得改下版本号,比如 1.0.1 | | 29 | + | | 30 | +# 发布完后执行 tnpm sync | | 31 | +3. tnpm sync | | 32 | + | | 33 | +4. 更新 diamond 版本 1.0.1 | | 34 | +5. lowcode-engine.cn 站点生效 | | 35 | +``` | | 36 | + | | 37 | + | | 38 | +## 功能 | | 39 | +- [x] 支持本地离线搜搜 | | 40 | +- [x] 版本化文档管理 | | 41 | +- [x] 离线静态部署 | | 42 | +- [x] 主题(fork 宜搭开发者中心) | | 43 | + | | 44 | +## 使用文档 | | 45 | +https://docusaurus.io/zh-CN/docs/docs-introduction | | 46 | + |
Collapse file Copy file name to clipboard +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +module.exports = { | | 2 | + presets: [require.resolve('@docusaurus/core/lib/babel/preset')], | | 3 | +}; |
Collapse file Copy file name to clipboardExpand all lines: docs/community/code-specification.md +4Lines changed: 4 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +--- | | 2 | +title: 编码规约 | | 3 | +--- | | 4 | + | 1 | 5 | 编码规约 | 2 | 6 | --- | 3 | 7 |
| |
Collapse file Copy file name to clipboard 141 KB
- Display the source diff
- Display the rich diff
Collapse file Copy file name to clipboard 104 KB
- Display the source diff
- Display the rich diff
Collapse file Copy file name to clipboard +112Lines changed: 112 additions & 0 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +--- | | 2 | +title: 关于引擎的 issue 说明 | | 3 | +sidebar_position: 2 | | 4 | +--- | | 5 | +> 提交地址:[https://github.com/alibaba/lowcode-engine/issues](https://github.com/alibaba/lowcode-engine/issues) | | 6 | +
| | 7 | +### 提交前必读 | | 8 | +由于引擎项目复杂,很多问题在复现和沟通上无法花费太多时间,需要大家尽力将复现步骤说明白。 | | 9 | + | | 10 | + | | 11 | + | | 12 | + | | 13 | +**你以为的 issue** | | 14 | + | | 15 | + | | 16 | + | | 17 | + | | 18 | +**我们看到的 issue** | | 19 | + | | 20 | +为了更好的进行协作,对引擎 issue 的处理定了一些处理的优先级。请大家认真阅读 Orz. | | 21 | + | | 22 | +- 【支持快】通过线上 Demo 地址 + 控制台输入 API 可复现。 | | 23 | +- 【支持快】通过线上 Demo + 导入 schema 可复现 | | 24 | +- 【支持稍慢】通过线上 Demo + 完整操作步骤可复现 | | 25 | +- 【支持稍慢】通过线上 Demo + 变更代码可复现,并清楚的说明变更代码的位置和内容 | | 26 | +- 【支持慢】有完整的项目地址,下载下来可直接安装依赖并启动复现的 | | 27 | +- 【支持慢】需求类型的由于人力有限,欢迎大家 PR,如能讲清楚背景上下文和场景,项目维护团队更容易给出方案建议或方向指引。 | | 28 | +- 【不保证提供支持】其他 | | 29 | + - 只有标题没有复现步骤 | | 30 | + - 复现步骤不清晰 | | 31 | + - 和引擎无关的 | | 32 | + | | 33 | +### 不同优先级的示例 | | 34 | +#### 【支持快】通过线上 Demo 地址 + 控制台输入 API 可复现。 | | 35 | +**示例** | | 36 | + | | 37 | +复现步骤: | | 38 | + | | 39 | +- 打开线上 demo | | 40 | +- 在控制台输入 | | 41 | +```json | | 42 | +// 当前 doc | | 43 | +const doc = window.AliLowCodeEngine.project.currentDocument | | 44 | + | | 45 | +// 新建 doc 并成功切换 | | 46 | +window.AliLowCodeEngine.project.openDocument({ | | 47 | + componentName: 'Page' | | 48 | +}); | | 49 | + | | 50 | +// 无法切换回来 | | 51 | +window.AliLowCodeEngine.project.openDocument('docl4xkca5b') | | 52 | +``` | | 53 | + | | 54 | +预期效果: | | 55 | + | | 56 | +- 使用 openDocument 可以正常的切换回原来的 doc | | 57 | + | | 58 | +#### 【支持快】通过线上 demo + 导入 schema 可复现 | | 59 | +步骤: | | 60 | + | | 61 | +- 使用线上 demo | | 62 | +- 导入下面的 schema | | 63 | +- schema 代码/schema zip 压缩包 | | 64 | +- 页面效果如下 | | 65 | + | | 66 | +期望: | | 67 | + | | 68 | +- 页面中的xxx部分和预期不符合,期望的效果是 xxx | | 69 | + | | 70 | +#### 【支持稍慢】通过线上 demo + 完整操作步骤可复现 | | 71 | +**示例** | | 72 | +1.使用 antd 组件 | | 73 | + | | 74 | + | | 75 | +2.拖拽这个组件 | | 76 | + | | 77 | + | | 78 | +3.配置该属性值为 100 | | 79 | + | | 80 | + | | 81 | +期望效果: | | 82 | + | | 83 | +- 组件同配置一致 | | 84 | + | | 85 | +#### 【支持稍慢】通过线上 demo + 变更代码可复现,并清楚的说明变更代码的位置和内容 | | 86 | +**示例** | | 87 | + | | 88 | + | | 89 | + | | 90 | + | | 91 | + | | 92 | + | | 93 | + | | 94 | + | | 95 | +#### 【支持慢】有完整的项目地址,下载下来可直接安装依赖并启动复现的 | | 96 | +由于完整的项目中有很多冗余的信息,这部分排查起来十分耗时且困难。不推荐使用改方式。 | | 97 | + | | 98 | +#### 【不保证提供支持】其他 | | 99 | +##### 只有标题没有复现步骤 | | 100 | + | | 101 | + | | 102 | +##### 复现步骤不清晰 | | 103 | + | | 104 | + | | 105 | +##### 和引擎无关的 | | 106 | + | | 107 | + | | 108 | + | | 109 | + | | 110 | + | | 111 | +### 扩展阅读 | | 112 | +强烈推荐阅读 [《提问的智慧》](https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way)、[《如何向开源社区提问题》](https://github.com/seajs/seajs/issues/545) 和 [《如何有效地报告 Bug》](http://www.chiark.greenend.org.uk/~sgtatham/bugs-cn.html)、[《如何向开源项目提交无法解答的问题》](https://zhuanlan.zhihu.com/p/25795393),更好的问题更容易获得帮助。(此段参考 [antd](https://github.com/ant-design/ant-design)) |
Collapse file Copy file name to clipboard +82Lines changed: 82 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +/** | | 2 | + * 此配置的修改,如未生效,可以重新启动下即可 | | 3 | + */ | | 4 | +module.exports = { | | 5 | + title: '', | | 6 | + logo: { | | 7 | + alt: 'LowCode-Engine', | | 8 | + src: 'https://img.alicdn.com/imgextra/i2/O1CN01uv6vu822RBCSYLro2_!!6000000007116-55-tps-139-26.svg', | | 9 | + srcDark: 'https://tianshu.alicdn.com/052a190e-c961-4afe-aa4c-49ee9722952d.svg', | | 10 | + }, | | 11 | + items: [ | | 12 | + { | | 13 | + type: 'doc', | | 14 | + docId: 'guide/quickStart/intro', | | 15 | + position: 'left', | | 16 | + label: '文档', | | 17 | + }, | | 18 | + { | | 19 | + type: 'doc', | | 20 | + docId: 'api/index', | | 21 | + position: 'left', | | 22 | + label: 'API', | | 23 | + }, | | 24 | + { | | 25 | + type: 'doc', | | 26 | + docId: 'faq/index', | | 27 | + position: 'left', | | 28 | + label: 'FAQ', | | 29 | + }, | | 30 | + { | | 31 | + type: 'doc', | | 32 | + docId: 'participate/index', | | 33 | + position: 'left', | | 34 | + label: '参与贡献', | | 35 | + }, | | 36 | + { | | 37 | + type: 'doc', | | 38 | + docId: 'article/index', | | 39 | + position: 'left', | | 40 | + label: '文章', | | 41 | + }, | | 42 | + { | | 43 | + type: 'doc', | | 44 | + docId: 'demoUsage/intro', | | 45 | + position: 'left', | | 46 | + label: 'Demo 使用文档', | | 47 | + }, | | 48 | + { | | 49 | + position: 'left', | | 50 | + href: 'https://developer.aliyun.com/ebook/7507', | | 51 | + label: '技术白皮书', | | 52 | + }, | | 53 | + { | | 54 | + position: 'left', | | 55 | + href: 'https://github.com/alibaba/lowcode-engine/releases', | | 56 | + label: '更新日志', | | 57 | + }, | | 58 | + { | | 59 | + to: '/community/issue', | | 60 | + position: 'left', | | 61 | + label: '社区', | | 62 | + activeBaseRegex: '/community/', | | 63 | + }, | | 64 | + // 版本切换,如需,这里开启即可 | | 65 | + // { | | 66 | + // type: 'docsVersionDropdown', | | 67 | + // position: 'right', | | 68 | + // dropdownActiveClassDisabled: true, | | 69 | + // }, | | 70 | + // { | | 71 | + { | | 72 | + href: 'https://github.com/alibaba/lowcode-engine', | | 73 | + position: 'right', | | 74 | + className: 'header-github-link', | | 75 | + 'aria-label': 'GitHub repository', | | 76 | + }, | | 77 | + { | | 78 | + type: 'search', | | 79 | + position: 'right', | | 80 | + }, | | 81 | + ], | | 82 | +}; |
Collapse file Copy file name to clipboard +55Lines changed: 55 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +/* | | 2 | + * Copyright (c) Facebook, Inc. and its affiliates. | | 3 | + * | | 4 | + * This source code is licensed under the MIT license found in the | | 5 | + * LICENSE file in the root directory of this source tree. | | 6 | + */ | | 7 | +const getDocsFromDir = require('../scripts/getDocsFromDir'); | | 8 | + | | 9 | +module.exports = { | | 10 | + // 手动配置的导航 | | 11 | + // guide: [ | | 12 | + // 'guide/quickStart/intro', | | 13 | + // 'guide/quickStart/start', | | 14 | + // { | | 15 | + // type: 'category', | | 16 | + // label: 'FAQ', | | 17 | + // collapsed: false, | | 18 | + // items: getDocsFromDir('guide/quickStart/faq'), | | 19 | + // }, | | 20 | + // ], | | 21 | + /** | | 22 | + * 根据当前目录自动生成导航配置 | | 23 | + */ | | 24 | + guide: [ | | 25 | + { | | 26 | + type: 'autogenerated', | | 27 | + dirName: 'guide', // '.' 即当前的文档文件夹 | | 28 | + }, | | 29 | + ], | | 30 | + api: [ | | 31 | + { | | 32 | + type: 'autogenerated', | | 33 | + dirName: 'api', | | 34 | + }, | | 35 | + ], | | 36 | + faq: [ | | 37 | + { | | 38 | + type: 'autogenerated', | | 39 | + dirName: 'faq', | | 40 | + }, | | 41 | + ], | | 42 | + participate: [ | | 43 | + { | | 44 | + type: 'autogenerated', | | 45 | + dirName: 'participate', | | 46 | + }, | | 47 | + ], | | 48 | + demoUsage: [ | | 49 | + { | | 50 | + type: 'autogenerated', | | 51 | + dirName: 'demoUsage', | | 52 | + }, | | 53 | + ], | | 54 | + // api: getDocsFromDir('api'), | | 55 | +}; |
Collapse file Copy file name to clipboard +13Lines changed: 13 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +module.exports = { | | 2 | + community: [ | | 3 | + { | | 4 | + type: 'autogenerated', | | 5 | + dirName: '.', | | 6 | + }, | | 7 | + { | | 8 | + type: 'link', | | 9 | + label: '生态资源', | | 10 | + href: 'https://github.com/lowcode-workspace/awesome-lowcode-engine', | | 11 | + }, | | 12 | + ], | | 13 | +}; |
|