This is the source code for the website discoverelectron.com.
The contents themselves are versioned separately as a submodule. You can find them at https://github.com/DiscoverElectron/discoverelectron-contents.
If you have io.js installed on your system, just run:
$ npm install
To build the site, do:
$ npm run build
If you want to see debugging info, set the DEBUG
environment variable:
$ DEBUG='metalsmith:*' npm run build
I'm using the debug package, so you can do more complex things like:
$ DEBUG='metalsmith:*,-metalsmith:ignore,-metalsmith:path' npm run build
If you want to rebuild the site every time you change a file, run this instead:
$ npm run watch
To generate all icons, do:
$ npm run icons
This will invoke ImageMagick's convert -resize
to create .ico
files, and Inkscape's inkscape --export-png
to create .png
files.
NOTE: You will need to have ImageMagick and Inkscape installed (obviously):
$ brew install imagemagick inkscape
- Code:
git clone git://github.com/DiscoverElectron/discoverelectron-metalsmith.git
- Home: https://www.discoverelectron.com/
Copyright (c) 2015 Daniel Perez Alvarez. This is free software, and may be redistributed under the terms specified in the LICENSE file.
The contents of the website are licensed separately. Please see https://github.com/DiscoverElectron/discoverelectron-contents.