Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ui-spec-md

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ui-spec-md

The efficient markdown compiler for UI documentation with UI Flows Graph

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

UI Spec MD

UI Spec MD is the efficient markdown compiler for UI documentation with UI Flows Graph. UI Spec MD compiles special markdown with following features

  • YAML header consists of the title and screen capture image path
  • Github-flavored Markdown
  • UI Flows code blocks

👉Quick Start Example

UI Flow codeblock

When you make UI documentation, you may need to have UI Flows Graph

UI Spec MD arrows to contain special code blocks to draw UI Flows with markdown friendly easy syntax. Here is a markdown example with the code block for UI Flows.

---
title: doc title
screen: ./screen1.png?highlight=[[216,193,150,70],[720,140,130,50]]
---

Write docs with markdown.
You can also contain uiflow code block.

```uiflow
[What the user sees]
What they do
==> What the user sees 2

[What the user sees 2]
What they do A
==> What the user sees 3
What they do B
==> What the user sees 4
```

| awesome | table |
| ---     | ---   |
| data    | data  |

Here is the complied result example.

Compile MD to HTML with gulp!

Example for gulp task

var gulp     = require( 'gulp' );
var uiSpecMd = require( 'ui-spec-md' );

gulp.task( 'md', function () {

  gulp.src( './src/**/*.md' )
      .pipe( uiSpecMd( { srcRoot: __dirname + '/src/' } ) )
      .pipe( gulp.dest('./build/' ) );

  // copy images as well
  gulp.src( [ './src/**/*.jpg', './src/**/*.png' ] )
      .pipe( gulp.dest( './build/' ) );

} );

Highlight Editor

UI Spec MD comes with the Highlight Editor! To launch the editor, just press Edit button on a documentation page.

FAQs

Package last updated on 01 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc