spaCy/website/README.md

23 lines
1.1 KiB
Markdown
Raw Normal View History

2016-03-31 17:24:48 +03:00
# Source files for the spacy.io website and docs
2015-09-24 13:23:48 +03:00
2016-03-31 17:24:48 +03:00
The [spacy.io](https://spacy.io) website is implemented in [Jade (aka Pug)](https://www.jade-lang.org), and is built or served by [Harp](https://harpjs.com).
2015-09-24 13:23:48 +03:00
2016-03-31 17:24:48 +03:00
## Building the site
2015-09-24 13:23:48 +03:00
2016-03-31 17:24:48 +03:00
To build the site and start making changes:
2015-09-24 13:23:48 +03:00
2016-03-31 17:24:48 +03:00
sudo npm install --global harp
git clone https://github.com/spacy-io/website
cd website
harp server
2015-09-24 13:23:48 +03:00
2016-03-31 17:24:48 +03:00
This will serve the site on [http://localhost:9000](http://localhost:9000). You can then edit the jade source and refresh the page to see your changes.
2015-09-24 13:23:48 +03:00
2016-03-31 17:24:48 +03:00
## Reading the source
2015-09-24 13:23:48 +03:00
2016-03-31 17:24:48 +03:00
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
2016-03-31 17:30:19 +03:00
writing. You can read more about our approach in our blog post, ["Rebuilding a Website with Modular Markup Components"](https://spacy.io/blog/modular-markup).
2015-09-24 13:23:48 +03:00
2016-03-31 17:24:48 +03:00
If you want to write or edit the pages, the site's [styleguide](http://spacy.io/styleguide) serves as a useful reference of the available mixins.