GithubHelp home page GithubHelp logo

cassiocassio / developer.sketchapp.com Goto Github PK

View Code? Open in Web Editor NEW

This project forked from matt-curtis/developer.sketchapp.com

0.0 0.0 0.0 3.76 MB

Documentation for Sketch's plugin architecture

Ruby 0.14% HTML 82.70% CSS 11.55% JavaScript 5.61%

developer.sketchapp.com's Introduction

developer.sketchapp.com

This repository powers the development site for Sketch, that lives at developer.sketchapp.com.

Contribute!

We've made this repository public so you can contribute to it. If you find a typo, or an error, or want to improve the content, feel free to send us a pull request. Also, if there's anything you'd like to see covered or documented, file an issue and we'll do it for you.

We use Jekyll as our content backend, so make sure to read their docs if you need help understanding how the system works.

Setup

If you want to get the site working locally, you'll need to have node and bundler installed. On OS X you'll also need to have Xcode's command line tools installed (xcode-select --install).

Once you have them, run this:

sudo npm install --global gulp
bundle install --path _vendor
npm install

and then run

gulp

to start the server and open a browser automatically.

Note: you may find issues with nokogiri when running bundle install. If that's the case, try the following:

  bundle config build.nokogiri --use-system-libraries --with-xml2-include=/usr/include/libxml2/

If that doesn't work, check the troubleshooting tips on Nokogiri's page

Generated Sections

As well as the normal Jekyll processing, there are some areas of the site where the source files are themselves generated by other tools. In particular:

  • The API documentation is generated using esdoc, from the SketchAPI repo. This process can be triggered using the _external/build-api-docs.sh script, and will replace the contents of the _generated-api folder.
  • The plugin example documentation is generated using docco. This process can be triggered using the _external/build-plugin-examples.sh script, and will replace the contents of the _generated-plugins folder.

Both of these scripts have some dependencies, and neither are really set up to be run by other people (nor should it be necessary to do so). It's worth knowing that they are there however! Don't waste time hand-editing this generated content, as it will just get replaced next time the scripts are run. Instead, file pull-requests to change the things that the scripts generate the content from - eg the SketchAPI repo or the repos for the example plugins (all of which are open-source).

developer.sketchapp.com's People

Contributors

adamkirkwood avatar aenain avatar alssndro avatar bomberstudios avatar booc0mtaco avatar charliesneath avatar danielchasehooper avatar danielchatfield avatar dbainbridge avatar fandy avatar intemperie avatar joshukraine avatar kevlened avatar matt-curtis avatar pieteromvlee avatar rodya avatar samdeane avatar spjpgrd avatar timuric avatar wodory 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.