Code Monkey home page Code Monkey logo

avalon.docgen's Introduction

avalon.docgen

avalon.oniui的注释文档生成器

使用方式

安装

$ npm install git+https://github.com/RubyLouvre/avalon.docgen.git -g

运行

一、扫描当前目录

$ avalon-doc --all

扫描当前目录下所有目录,并查找是否存在avalon组件,并生成文档。组件命名规则及生成文件目录格式为:

  • according\
    • avalon.according.js
    • avalon.according.doc.html
  • at\
    • avalon.at.js
    • avalon.at.doc.html

二、指定目录

$ avalon-doc /home/workspace/oniui/at

以指定目录的目录名为组件名,执行生成


三、指定输入文件

$ avalon-doc at/avalon.at.js

示例列表自动生成

当avalon.uiname.js里不存在例子列表注释的时候,则会进入扫描目录逻辑,扫描avalon.uiname.ex[0-9]+.html,并提取其

<h1>例子文字说明</h1>

or

<h2>例子文字说明</h2>

内内容作为title生成例子列表,例如avalon.tooltip.ex1.html

<h1>接口触发显示</h1>

=>

<a href="avalon.tooltip.ex1.html">接口触发显示</a>

avalon.docgen's People

Contributors

gogoyqj avatar kyriosli avatar rubylouvre avatar yuhaoju avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.