Skip to content
/ jkan Public
forked from mysociety/jkan

A lightweight, backend-free open data portal, powered by Jekyll

License

Notifications You must be signed in to change notification settings

mdeuk/jkan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mySociety Data Portal repo - running on JKAN Build Status Join the chat at https://gitter.im/timwis/jkan

A lightweight, backend-free open data portal, powered by Jekyll

View at data.mysociety.org

Local Development

Vagrant file will get to a state where jekyll will run a local server:

$ vagrant up
$ vagrant ssh  
$ cd /vagrant
$ script/server

This will then start the rendering process and serve on http://127.0.0.1:4000

Can't get the JS development side working entirely on vagrant at the moment, see https://github.com/timwis/jkan/wiki/Architecture for how this is supposed to work.

Theme

Jkan runs on Jekyll.

Local adaptions to mySociety theme are in sass folder - both that and 'theme/sass' are equally accessible to compiler - so no need for relative paths.

Key template is templates/default.html - this then brings in various mysoc_ includes.

Don't forget to git submodule update --init --recursive to pull down the mySociety styles

Categories

Category information is stored in three places.

  1. References in datasets
  2. Entries in _data/categories.yml (with additional info like logos, or if they are a highlighted category)
  3. Markdown files in /_categories

The final set is generated from the first two to create the static pages for the category pages.

This isn't directly supported by Github Jekyll, so you can generate the markdown files using:

$ ruby script/generate_categories.rb

Or manually create the file when creating/modifying categories.

About

A lightweight, backend-free open data portal, powered by Jekyll

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 51.5%
  • JavaScript 30.6%
  • SCSS 13.2%
  • Ruby 3.1%
  • CSS 1.6%