Giter Site home page Giter Site logo

ezc / sketch-designdoc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mamuso/sketch-designdoc

0.0 4.0 0.0 6.44 MB

Exports a simple website using a bunch of conventions and a Sketch document as the structure

Objective-C 87.67% C 5.19% JavaScript 1.59% HTML 5.54%

sketch-designdoc's Introduction

Sketch Design Doc ๐Ÿ”๐Ÿถ

This plugin exports a simple website using a bunch of conventions and a Sketch document as the structure. We named the plugin "design doc" because initially, we used it to export a design guideline, but we have been using it for many other things.

If you want to see an example, you can build this website using this Sketch file as a base.

How to Install

  1. Download and open sketch-designdoc-master.zip
  2. Open DesignDoc.sketchplugin
  3. Done! ๐Ÿ’ƒ

How it works

The plugin scans the document and builds a page following these rules:

Pages ๐Ÿ‘‰ Menu

The order of the pages in the panel is the order of the menu. The plugin generates a index.html page that redirects to the first element of the menu.

  • The plugin ignores the Symbols page.
  • If the name of the page starts with an underscore _, the plugin ignores the page.
  • _Settings is a special case.

Pages to Menu

Artboards ๐Ÿ‘‰ Web Page Structure

The order of the artboards in the panel defines the order of the content on the web page.

  • If the name of the artboard starts with an underscore _, the plugin doesn't generate a title for the section nor an entry on the menu.
  • If the name of the artboard starts with a slash /, the plugin indents one level the content on the menu and generates a lighter header for the content.

Artboards to Structure

Artboard Text

Each artboard can have a text description associated. Create a text layer and name it [name-of-the-artboard].md. Use Markdown to format the output. The plugin will ignore the style applied to the layer.

Artboards Description

Preface

Creating a text layer named _Preface.md in a page, will render as an introduction at web page level. This text layer supports Markdown too.

Preface

Settings

Customize the logo of the output, the color of the menu and the color of the links in the page _Settings if needed. This page is not mandatory.

  • Customize the logo adding an artboard with the name _logo. If the artboard is not present, the output will not have a logo.
  • Customize the color of the menu using a vector layer with the name _primary.
  • Customize the color of the links using a vector layer with the name _secondary

Settings

TODOs and Known Issues

  • The output is not mobile friendly (yet)

sketch-designdoc's People

Contributors

mamuso avatar

Watchers

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