Welcome to your ES UI Guidelines project. This is a Jekyll served site, that uses Grunt to compile.
es-ui-guidelines
- ── less/
- ── js/
- ── fonts/
- ── dist/
- ── css/
- ── js/
- ── fonts/
- ── docs/
- ── grunt/ (not source, config files for Jekyll serve)
- Install Node
install npm
- Install Grunt
npm install -g grunt-cli
- Available Grunt commands:
grunt dist
(Just compile CSS and JavaScript) Regenerates the /dist/ directory with compiled and minified CSS and JavaScript files. As a Bootstrap user, this is normally the command you want.grunt watch
(Watch) Watches the Less source files and automatically recompiles them to CSS whenever you save a change.grunt test
(Run tests) Runs JSHint and runs the QUnit tests headlessly in PhantomJS.grunt docs
(Build & test the docs assets) Builds and tests CSS, JavaScript, and other assets which are used when running the documentation locally via jekyll serve. This blows awaybootstrap.less
for some reason, so you'll want to rungrunt dist
afterwards.grunt cssmin:docs
this will simply recompile the css for the Docs themselves. Useful for after you make updates todocs.css
for example.grunt build-glyphicons-data
Re/builds theglyphicons.yml
file that populates the list that appears on the /media/ page.
- If necessary, install Jekyll (requires v3.0.x).
- Install the Ruby-based syntax highlighter, Rouge, with
gem install rouge
. - From the root directory, run
jekyll serve --host $IP --port $PORT --baseurl ''
in the command line. - Watch for a notification for C9.io with link that will open in new browser tab, and voilà.
- Edit Gruntfile.js lines 166 & 178 to compile .css files into /docs/dist/css under the _site directory so you can see the changes (not sure if there is a smarter way)
- In separate command window, run
grunt watch
to complile the less file changes.
Learn more about using Jekyll by reading its documentation.
Pushing to AWS s3 "Production"
- Install s3_website, update s3_website.yml to point to s3
- From ~/workspace, run
s3_website push
to sync files. - More documentation is available on the s3_website github page.