spaCy/website
2016-04-01 02:23:52 +11:00
..
_includes Update GitHub links 2016-04-01 02:23:52 +11:00
assets Fix main container flex properties 2016-04-01 02:23:42 +11:00
blog Replace website with new version 2016-04-01 01:24:48 +11:00
demos Replace website with new version 2016-04-01 01:24:48 +11:00
docs Replace website with new version 2016-04-01 01:24:48 +11:00
_data.json Replace website with new version 2016-04-01 01:24:48 +11:00
_fabfile.py Replace website with new version 2016-04-01 01:24:48 +11:00
_harp.json Replace website with new version 2016-04-01 01:24:48 +11:00
_layout.jade Replace website with new version 2016-04-01 01:24:48 +11:00
404.jade Replace website with new version 2016-04-01 01:24:48 +11:00
feed.xml.jade Replace website with new version 2016-04-01 01:24:48 +11:00
index.jade Update GitHub links 2016-04-01 02:23:52 +11:00
legal.jade Replace website with new version 2016-04-01 01:24:48 +11:00
README.md Update readme 2016-04-01 01:30:19 +11:00
styleguide.jade Replace website with new version 2016-04-01 01:24:48 +11:00
team.jade Replace website with new version 2016-04-01 01:24:48 +11:00

Source files for the spacy.io website and docs

The spacy.io website is implemented in Jade (aka Pug), and is built or served by Harp.

Building the site

To build the site and start making changes:

sudo npm install --global harp
git clone https://github.com/spacy-io/website
cd website
harp server

This will serve the site on http://localhost:9000. You can then edit the jade source and refresh the page to see your changes.

Reading the source

Jade is an extensible templating language with a readable syntax, that compiles to HTML. The website source makes extensive use of Jade mixins, so that the design system is abstracted away from the content you're writing. You can read more about our approach in our blog post, "Rebuilding a Website with Modular Markup Components".

If you want to write or edit the pages, the site's styleguide serves as a useful reference of the available mixins.