Skip to content

Instantly share code, notes, and snippets.

Last active May 9, 2018
What would you like to do?
Design Manual setup with Collect Components
const DesignManual = require('design-manual');
const scraper = require('collect-components');
// gather components
url: 'http://localhost:8000/',
paths: ['patterns.html'],
output: 'docs/components.json',
complete: function() {
// build design manual{
output: 'docs/',
pages: './',
components: 'docs/components.json',
meta: {
domain: '',
title: 'Example'
<!DOCTYPE html>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- @component
name: hello world
description: This is my first component
<img src="" alt="" />

!{hello world}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment