Repository for main company website at http://www.digitalgrammars.com/. Hosted by GitHub pages, which uses Jekyll website generator.
Run:
$ ./run-docker.sh
Then browse to http://localhost:5050.
If you don't have bundler:
gem install bundler
Install local dependencies:
bundle install --path vendor/bundle
To generate and serve locally:
bundle exec jekyll serve
Then browse to http://127.0.0.1:4000.
Despite using Jekyll, some parts of the website need to built separately.
TypeScript and Babel are installed via Node and listed in the package dev-dependencies. To install node on your system:
brew install node
And then to install this package's dependencies locally:
npm install
All JavaScript files loaded by the webpage are in scripts/.
Some of these are generated:
Pitch.jsis generated by GF:make script/Pitch.jseditor.min.jsis generated in two steps:- compile
src/editor.tsintoscripts/editor.jsusing TypeScript - minify
scripts/editor.jsintoscripts/editor.min.jsusing Babel (Note thatscripts/editor.jsandscripts/editor.min.js.mapare git-ignored, so will not end up in production)
- compile
The stylesheet is in styles/styles.scss, written in Sass, which is a superset of CSS.
Jekyll takes care of producing the CSS file from this SCSS, such that it is loaded from the webpage as styles/styles.css.
After updating the GF grammar, you should run:
make scripts/Pitch.js
And then make sure to commit the updates to this file in the repository.