This version is deprecated, see https://malmo.se/wag for the latest version.
Guidelines for The City of Malmö’s intranet applications.
This repository contains the source for the guidelines. Content is written in markdown using the kramdown dialect and the pages are found in the pages
directory in the gh-pages branch
.
The guidelines are published as Github pages using Jekyll. Publishing of the content is triggered when the gh-pages branch is updated. This happens when you push to that branch or if you edit a page directly on Github (the latter forces a push).
Checkout the gh-pages branch. Install Jekyll if you haven't done it before:
$ gem install jekyll
Run Jeykyll and tell it to generate pages when they are changed:
$ jekyll serve --baseurl "" --watch
Go to http://localhost:4000/
There are a few asset files in the gh-pages branch used for the WAG itself. The source is available in the stylesheets
and javascripts
directories. To compile during editing, start one or both of the following watchers:
$ sass --watch stylesheets/application.scss
$ coffee -c -w javascripts/application.coffee
You must compress the assets before pushing to Github if you edited them. This is not necessary if you just edit page content. Run the build script:
$ ./build.sh
Now you are ready to commit and push to Github.
Released under AGPL version 3.