0.9.2 • Published 3 years ago

monstra v0.9.2

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

Orbit-monstra is a simple docs generator from ts declaration files for @kiwicom/orbit-components project

Available commands:

  • docs: creates README.md files in component folder with table of props, subcomponents and description example: monstra docs --path='src/*/'

How to document component:

  • To create basic description add to index.d.ts next comment block: /* DOCS: <your description> */

    example:

    /* DOCS:
    
    # AirportIllustration
    
    To implement AirportIllustration component into your project you'll need to add the import:
    
    import AirportIllustration from "@kiwicom/orbit-components/lib/AirportIllustration";
    
    After adding import into your project you can use it simply like:
    
    <AirportIllustration name="Accommodation" size="small" />
    
    */

    Note: (same with /* FunctionalSpec: */)

  • When you run docs command it creates table with Name and Type like: | Name | Type | Optional | Description | | ---------- | ----------------- | ------- | ----------- | | size | [enum](#enum) | | | | name | Name | | |

    in order to add description and default value, you have to add comment lines in index.d.ts file of component in JSDoc format:

    export interface Props extends Globals, SpaceAfter {
      /** The size of the AirportIllustration */
      /** default: "small" */
      readonly size?: "extraSmall" | "small" | "medium" | "large" | "display";
      readonly name: Name;
      readonly alt?: string;
    }
0.9.2

3 years ago

0.9.0

3 years ago

0.9.1

3 years ago

0.7.2

3 years ago

0.8.0

3 years ago

0.7.1

3 years ago

0.8.3

3 years ago

0.7.0

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.0

4 years ago

0.3.4

4 years ago

0.3.2

4 years ago

0.3.3

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago