Giter Club home page Giter Club logo

docs's Introduction

LogicFlow

文档开发

docs目录下添加新的文档 文档预览: 先确保doscify已被全局安装 根目录下启动:yarn workspace docs serve 文档目录根目录下启动:docsify serve

示例开发

examples目录下的examples中开发示例

  1. 创建示例的集合目录,如场景案例(如果想要创建的集合已存在则跳过此步)
  2. 创建具体的例子集目录,如业务场景、常有功能,并在该目录下修改或创建 config.json,如
{
  "name": "例子集-1-1",
  "key": "example-set-1-1",
  "examples": [
    {
      "name": "自定义带有图标的节点-1-1",
      "key": "custom-node-1-1",
      "mode": "playground", // playground 表示需要playground, 会跳转至playground页面, link 表示链接,会跳到外部链接(非playground页面)
      "github": "https://github.com/xxx" //github 地址,如果有
    },
    {
      "name": "使用vue自定义html节点-1-1",
      "key": "vue-1-1",
      "mode": "link",
      "link": "/demo/dist/vue-1-1", //一般是 /demo/dist/ + 项目夹名称(如vue-1-1)
      "github": "https://github.com/xxx" //github 地址,如果有
    }
  ]
}

具体参考项目已有的 config.json

  1. 添加截图。开发完示例之后,如需使用自动截图工具(不保证其可用性,但可以试试不是嘛,帮我找找 BUG🐶)并自行安装相关依赖(有些依赖可能有点大,比如 puppeteer),执行yarn dev:screenshot以自动生成截图,或者手动截图放在examples/src/screenshots

  2. 根目录下执行yarn build, 确保项目正常打包

开发完成后将开发分支的代码合并至master(必要时rebase master以保证master分支线性时间线)以部署项目github pages

docs's People

Contributors

wumail avatar towersxu avatar zhhzcw avatar xinxin93 avatar inawang0317 avatar gary4j avatar sophia502 avatar flyovergu avatar kassadin avatar love666 avatar md-chen avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.