1
0
Fork 0
mirror of https://github.com/zrgn/zrgn.github.io synced 2024-11-15 21:28:40 +00:00
mirror of the bylaws
Find a file
Vincent Batts 212d031cbe
npm: update all the things
I'm sure something will break with this...

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2021-03-09 12:20:57 -05:00
_data games.json: accidentally an "i" 2019-05-30 10:32:54 -04:00
_includes Move to standard Jekyll layout. 2019-05-30 10:49:56 -04:00
_layouts Add framework for creating reveal.js presentations. 2020-07-16 14:20:23 -04:00
_sass Add framework for creating reveal.js presentations. 2020-07-16 14:20:23 -04:00
assets Add framework for creating reveal.js presentations. 2020-07-16 14:20:23 -04:00
images Move to standard Jekyll layout. 2019-05-30 10:49:56 -04:00
.eslintrc.json Add eslint settings file. 2019-05-30 10:32:54 -04:00
.gitignore Ignore RVM ruby directive files. 2019-05-30 10:32:54 -04:00
404.html Move to standard Jekyll layout. 2019-05-30 10:49:56 -04:00
_config.yml bylaw updates 2020-07-16 14:30:33 -04:00
bower.json Add framework for creating reveal.js presentations. 2020-07-16 14:20:23 -04:00
Gemfile update gem and ruby deps to be inline with github-pages 2020-07-16 14:30:28 -04:00
Gemfile.lock build(deps): bump kramdown from 1.17.0 to 2.3.0 2020-08-08 01:18:47 +00:00
Gruntfile.js Add framework for creating reveal.js presentations. 2020-07-16 14:20:23 -04:00
index.md move the code of conduct toward the top 2020-07-29 08:30:12 -04:00
LICENSE Initial commit 2019-05-13 16:35:50 -04:00
package-lock.json npm: update all the things 2021-03-09 12:20:57 -05:00
package.json npm: update all the things 2021-03-09 12:20:57 -05:00
README.md Add README file. 2019-05-30 10:49:59 -04:00

Getting Started

  • Make sure you have Ruby, Node.js, and NPM installed. You need to install nodejs-grunt-cli.
  • gem install bundler
  • bundle install
  • npm install

What is This Node.JS Stuff?

It's a way for us to manage our asset dependencies (namely, our CSS framework and JavaScript framework). If you're just developing content for the site, you don't need to worry about it.

For the asset libraries, we're using Bower which is invoked via Grunt. If you need to update the libraries, you'll make a change to the bower.json file and change the version number. Then run grunt. The default Grunt task will wipe the old dependencies and install the new ones under assets/vendor and bower_components. The assets/vendor files can be used directly. The files under bower_components are primarily for pre-processing and should not be pulled in directly. For example, the zargon.scss file includes a bunch of the Bulma Sass so we can use their mixins and variables if we want. You'll notice in _config.yaml that we're telling Jekyll to place bower_components/bulma on the Sass load path.

This Seems Overly Complicated!

Yes. But apparently this is how The Internet has decided to do web development now. We could do this via a Rakefile but the only Rake integration I could find bolted a Rails-style asset pipeline onto Jekyll which is just as complicated (if not more so).

Writing Content

Create a file with a .md suffix. At the top add

---
title: My Title
layout: standard-page
---

That meta-data will tell Jekyll the title of your page and the page layout to use. Then just write your content using Markdown syntax.

Previewing the Site

Run bundle exec jekyll serve --livereload. Jekyll will render the site (into the _site directory) and start a webserver on localhost's port 4000. You can point a browser there and get a preview of the site. As a bonus the --livereload argument will watch the directory for changes. On any change, the site will be re-rendered and Jekyll will notify your browser to refresh itself.