Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master #2

Open
wants to merge 817 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
817 commits
Select commit Hold shift + click to select a range
c78e4c8
Merge branch 'master' into handbook
Jul 27, 2016
c9c2f5b
Update custom location programmings
Jul 27, 2016
8e6a129
Just little loose ends
Jul 27, 2016
68f03ee
Finally got prefs to work
Jul 27, 2016
f884312
Oliver is flying in to CBR for the event
chris-beer Jul 27, 2016
9c5b5b4
Update joe-ortenzi.md
Jul 28, 2016
4a31bb6
landgate update
Jul 28, 2016
041bd12
more words for .Stat while Git's back up
chris-beer Jul 28, 2016
8a592f6
Update joe's email
Jul 28, 2016
e9f85e0
Merge branch 'master' of github.com:govhackaustralia/govhackaustralia…
Jul 28, 2016
16a8ab1
Added fonts, added tags display
Jul 28, 2016
d7d90d2
Surely these must be the last of the mentors?
Jul 28, 2016
db5e64f
Please let these be the last
Jul 28, 2016
c4db363
OCD
chris-beer Jul 28, 2016
9c32f86
OCD
chris-beer Jul 28, 2016
1231b33
OCD
chris-beer Jul 28, 2016
8393222
OCD
chris-beer Jul 28, 2016
28420f4
Layout
chris-beer Jul 28, 2016
58c61a8
Added icons; search works
Jul 28, 2016
4db5f79
Merge branch 'handbook'
Jul 28, 2016
7b32208
Merge branch 'master' of github.com:govhackaustralia/govhackaustralia…
Jul 28, 2016
3a60dd6
Push live
chris-beer Jul 28, 2016
c8903e3
OCD
chris-beer Jul 28, 2016
8a6cce3
Prizes
Jul 28, 2016
6be167e
API region
Jul 28, 2016
a43a03b
Tweaking dataset layouts
Jul 28, 2016
046230c
Mentor photo update
Jul 28, 2016
a2ffa3b
png != jpg
Jul 28, 2016
e65638b
...
Jul 28, 2016
c6762e2
Added slack links
chris-beer Jul 28, 2016
bbc36d8
Slack links
chris-beer Jul 28, 2016
ed640b7
OCD
chris-beer Jul 28, 2016
7095ead
Prizes...
Jul 28, 2016
573c50c
The ACT is special
Jul 28, 2016
7ffc333
OCD
chris-beer Jul 28, 2016
b3a9c38
OCD
chris-beer Jul 28, 2016
53ca42e
Last minute DSS
Jul 28, 2016
e841d42
this time fer sure
chris-beer Jul 28, 2016
727955a
Finally...
chris-beer Jul 28, 2016
8b6b480
Tweak
Jul 28, 2016
9b9c7e1
No OCD here
Jul 28, 2016
3d553ff
Guess what? Re-spon-sive chhhhyeaaaajjhhhh
Jul 28, 2016
91fc471
Handbook chapter updates
Jul 28, 2016
645f281
Merge branch 'handbook'
Jul 28, 2016
f0663f5
....
Jul 28, 2016
332e78d
Merge branch 'master' of github.com:govhackaustralia/govhackaustralia…
Jul 28, 2016
d7c8e21
Fontified
Jul 28, 2016
92c860e
I need sleep
Jul 28, 2016
7bb2f96
API regen
Jul 28, 2016
35a6fa5
Help page; JS to pull venue info
Jul 28, 2016
4ac6686
Merge branch 'master' of github.com:govhackaustralia/govhackaustralia…
Jul 28, 2016
ffbbd4c
This wont get done...
Jul 28, 2016
33d32f4
Tidyup, added OG image
Jul 28, 2016
f22ed5a
Merge branch 'handbook'
Jul 28, 2016
79f5c8d
Yeah bugfixes for that last one
Jul 28, 2016
3f89f24
Datasets
Jul 28, 2016
9f7071e
.
Jul 28, 2016
ccaed83
Updates which make the tile links live, but also add pretty pictures …
Jul 28, 2016
2684ce7
Last minute promoting of state data portals to sit above official sta…
Jul 28, 2016
14e2276
Down to the minutiae now, optimising OG tags etc
Jul 28, 2016
ec5d1e6
ARISE SIR HANDBOOK version one point zero
Jul 28, 2016
ecd4958
Merge branch 'master' of github.com:govhackaustralia/govhackaustralia…
Jul 28, 2016
71c82d4
Fixed the weird logo bug.
Jul 28, 2016
0d4fd73
The smallest glitches of all time
Jul 28, 2016
baf17ce
Imagizing pages
Jul 28, 2016
d22b8d7
correct the style
fayqiao Jul 29, 2016
a4412ca
correct the style
fayqiao Jul 29, 2016
3e4c1eb
correct the style
fayqiao Jul 29, 2016
1e06019
I bet these are the last sponsor changes. Hahahahahahuurgh.
Jul 29, 2016
ed83a76
More mentors. You owe me a beer, Chris.
Jul 29, 2016
1f3df2f
Requested handbook updates
Jul 29, 2016
1b9cda6
Merge branch 'handbook'
Jul 29, 2016
3b08551
Disabling mentor and dataset CTAs
Jul 29, 2016
80f1667
Mentor card now properly checks if they have supplied an email
Jul 29, 2016
0961211
Geeolong != Geelong
Jul 29, 2016
ba2f15e
The last dataset?
Jul 29, 2016
a4b3319
If I had a dollar for every mentor I could afford several copies of N…
Jul 29, 2016
b825392
typos
Jul 29, 2016
35c72d3
FML
Jul 29, 2016
1d7d3ef
Merge branch 'handbook'
Jul 29, 2016
5e86c97
Wrong boosted line... changed to the $100 line
Jul 29, 2016
1c6a23f
Obnoxiously large agency logos on dataset pages
Jul 29, 2016
dc4f42f
Nice big Slack and Twitter buttons for sponsor pages
Jul 29, 2016
b656b75
More fixing of for mentors w/o emails
Jul 29, 2016
f273b04
Starting to add twitter and slack contact details for sponsors
Jul 29, 2016
785d7c4
OCD
chris-beer Jul 29, 2016
c55de60
Geelong thermal imaging dataset
Jul 29, 2016
6b5f8eb
Parramatta curated datasets
Jul 29, 2016
a7c1855
API regen
Jul 29, 2016
55e77a6
Prize sponsor org titles now show more prominently on the prize lists
Jul 29, 2016
dc32e8c
Info box to prize page
Jul 29, 2016
557ae89
Data portals only work if they're known entities in Portal
Jul 29, 2016
0f3badc
Making major national sponsors more distinct
Jul 29, 2016
ace43ee
Spaaaaaaacing
Jul 29, 2016
ea78f26
API regen
Jul 29, 2016
3b476ec
Fixing the formatting on some datasets
Jul 29, 2016
72d4a6e
Regen chapters
Jul 29, 2016
b3b9ff3
New chapter Receiving awards
Jul 29, 2016
b6f38b6
Merge branch 'handbook'
Jul 29, 2016
61b8323
Merge branch 'master' of github.com:govhackaustralia/govhackaustralia…
Jul 29, 2016
3eab38a
Big blue button
Jul 29, 2016
f2a0e58
Linking major prize sponsors and their prizes
Jul 29, 2016
76996ec
Minor markdown mistranslation management
Jul 29, 2016
6f09c4a
Bulk tags
Jul 29, 2016
d157f6c
Merge branch 'handbook'
Jul 29, 2016
6f0b7af
Trying to think of an anagram for "sponsors". All I can come up with …
Jul 29, 2016
de0d6e2
oops. not quite right
Jul 29, 2016
e16f965
Merge pull request #142 from govhackaustralia/delay/tileupdates
Jul 29, 2016
4350a01
PRIZES!!!!!!!!!!!!!!!!!!!!!!!!!!
Jul 29, 2016
bba67a4
*prod github*
Jul 29, 2016
3242e8c
Hackerspace better descriptions
Jul 29, 2016
e09c68b
t push
Jul 29, 2016
39a1e98
IBM bluemix leading sentence change
Jul 29, 2016
e6d53de
Updated Sarah's twitter
Jul 29, 2016
b62278b
Removed registration from homepage
Jul 29, 2016
15d4191
Per Richard's instruction, prizes are to be hidden until further notice.
Jul 29, 2016
e3da60f
Twas missing!
chris-beer Jul 29, 2016
8c5e1ef
Update australia-abc-news-content.md
rctubb Jul 29, 2016
257cadf
Tweak
Jul 29, 2016
58c0bce
Update australia-abc-news-content.md
rctubb Jul 29, 2016
4d7cf31
.
Jul 29, 2016
2433adf
CSIRO
Jul 29, 2016
0a281d4
Update nsw-acceleration-award-govhack-nsw.md
rctubb Jul 29, 2016
082408a
Update nsw-acceleration-award-govhack-sydney.md
rctubb Jul 29, 2016
849a2f9
Update nsw-acceleration-award.md
rctubb Jul 29, 2016
bb23fcb
Update nsw-best-nsw-higher-education-team-entry.md
rctubb Jul 29, 2016
81f6fc3
Update nsw-city-of-parramatta-civic-hack.md
rctubb Jul 29, 2016
6737f58
Update nsw-helping-schools-respond-to-disasters.md
rctubb Jul 29, 2016
d97542f
Update nsw-helping-schools-respond-to-disasters.md
rctubb Jul 29, 2016
bf8e0b6
Update nsw-lifting-the-barriers.md
rctubb Jul 29, 2016
aa040d5
Update nsw-lifting-the-barriers.md
rctubb Jul 29, 2016
fb3ca84
Update nsw-most-fun-and-creative-use-of-data.md
rctubb Jul 29, 2016
06201fa
Update nsw-acceleration-award-govhack-nsw.md
rctubb Jul 29, 2016
a887c47
Update nsw-acceleration-award-govhack-sydney.md
rctubb Jul 29, 2016
35f1263
Update nsw-acceleration-award.md
rctubb Jul 29, 2016
005000c
Update nsw-city-of-parramatta-civic-hack.md
rctubb Jul 29, 2016
b4a1496
Update nsw-best-nsw-higher-education-team-entry.md
rctubb Jul 29, 2016
5ae7698
Update nsw-smart-cities-&-collaborative-economy.md
rctubb Jul 29, 2016
79ba3b1
Update nsw-team-encouragement-award.md
rctubb Jul 29, 2016
61501c3
Update nsw-the-govhack-spirit-award-sydney.md
rctubb Jul 29, 2016
31ae260
Update nsw-travelling-with-us.md
rctubb Jul 29, 2016
4ab6777
Update nsw-vibrant-sydney-night-time-economy.md
rctubb Jul 29, 2016
ddffa7d
Update qld-advance-queensland!.md
rctubb Jul 29, 2016
339848a
Update qld-age-friendly-community.md
rctubb Jul 29, 2016
aabefa7
Update qld-an-active-and-healthy-brisbane.md
rctubb Jul 29, 2016
950aac5
Update qld-create-a-cutting-edge-concept---the-science-sandpit!.md
rctubb Jul 29, 2016
4ced2d8
Update qld-educate-us!.md
rctubb Jul 29, 2016
eacfd66
Update qld-engaging-with-brisbane-city-council.md
rctubb Jul 29, 2016
5748aa0
Update qld-evacuation---help-us-get-away!.md
rctubb Jul 29, 2016
acb2961
Update sa-adelaide---best-in-location.md
rctubb Jul 29, 2016
f08aaf4
Update sa-best-maker.md
rctubb Jul 29, 2016
cf3d660
Update sa-connecting-across-sa.md
rctubb Jul 29, 2016
4e36972
Update sa-growing-up-healthy.md
rctubb Jul 29, 2016
29022fd
Update sa-helping-those-who-need-it.md
rctubb Jul 29, 2016
ff2689c
Update sa-mount-gambier---best-in-location.md
rctubb Jul 29, 2016
4ee3555
Update sa-mount-gambier---best-youth-team-in-location.md
rctubb Jul 29, 2016
d80b681
Update sa-mount-gambier-best-youth-spirit-prize.md
rctubb Jul 29, 2016
893826f
Update sa-mount-gambier-spirit-prize.md
rctubb Jul 29, 2016
8b7c25c
Update sa-neighbourhood-and-community-confidence.md
rctubb Jul 29, 2016
093b135
Update sa-playford---best-in-location.md
rctubb Jul 29, 2016
f2ddd9a
Update sa-protecting-our-environment.md
rctubb Jul 29, 2016
53cc1f8
Update sa-safe-travel.md
rctubb Jul 29, 2016
741f8db
Update sa-smart-lifestyles.md
rctubb Jul 29, 2016
faa2613
Update sa-storytelling-with-a-difference.md
rctubb Jul 29, 2016
4ea18fb
Update sa-supporting-sa-economy.md
rctubb Jul 29, 2016
3207358
Update sa-vibrant-adelaide.md
rctubb Jul 29, 2016
079ebca
Update tas-best-data-visualisation.md
rctubb Jul 29, 2016
e224600
Update tas-best-use-of-tasmanian-local-council-open-data.md
rctubb Jul 29, 2016
9689bb8
Update tas-design-excellence.md
rctubb Jul 29, 2016
c8813f4
Update tas-encouragement-award.md
rctubb Jul 29, 2016
3089e78
Update tas-most-disruptive-innovation.md
rctubb Jul 29, 2016
a8fcb09
Update vic-de-identification.md
rctubb Jul 29, 2016
483fa82
Update vic-hack-for-wyndham.md
rctubb Jul 29, 2016
faa5ffd
Update vic-journey-plannning.md
rctubb Jul 29, 2016
4a33106
Update vic-mav-technology-bounty.md
rctubb Jul 29, 2016
bc0a9d8
Update wa-big-data-and-analytics-prize.md
rctubb Jul 29, 2016
d12ede6
Update wa-encouragement-award.md
rctubb Jul 29, 2016
e8075d8
Update wa-geospatial-prize.md
rctubb Jul 29, 2016
2aa8901
Update wa-shark-solutions-prize.md
rctubb Jul 29, 2016
0940961
Update wa-sustainable-coastlines-prize.md
rctubb Jul 29, 2016
b145061
Update wa-the-keep-western-australia-moving-prize.md
rctubb Jul 29, 2016
b34c2b9
Update wa-western-australian-community-prize.md
rctubb Jul 29, 2016
908b09c
Update wa-western-australian-innovation-prize.md
rctubb Jul 29, 2016
7ae7853
Update wa-western-australian-sustainability-prize.md
rctubb Jul 29, 2016
d47d470
reenabling prize desc displaywq
Jul 29, 2016
dd50d41
oops, you need to put the tiles backgit status
Jul 29, 2016
d80a1e2
OCD
chris-beer Jul 29, 2016
523d500
Update experimental-industry-estimates.md
chris-beer Jul 29, 2016
c14e743
Update wa-western-australian-citizenship-price.md
rctubb Jul 29, 2016
027fd01
Update characteristics-of-temporary-skilled-migrants.md
chris-beer Jul 29, 2016
f44eee5
Link wasn't working - missing initial slash
Jul 29, 2016
c10fe96
Sydney official open/close time update
Jul 29, 2016
fdfe797
Added video to handbook
Jul 29, 2016
bb1a342
LIESSSS that other commit didn't change Sydney times. this one does
Jul 29, 2016
2d47bd9
Merge branch 'master' into handbook
Jul 29, 2016
e81d6a3
Handbook chapter updates
Jul 29, 2016
9d0aa0e
Merge branch 'master' of github.com:govhackaustralia/govhackaustralia…
Jul 29, 2016
b776d14
Uploaded file
chris-beer Jul 29, 2016
986513c
Link to Zip
chris-beer Jul 29, 2016
d4e9e8d
Update characteristics-of-temporary-skilled-migrants.md
chris-beer Jul 30, 2016
e73c44b
Create australia-aihw-visualisation.md
keithamoss Jul 30, 2016
6126ae2
Create epi-health-status.md
keithamoss Jul 30, 2016
8cbd51e
Video responsive embed, patched help page text
Jul 30, 2016
e7957b4
Merge branch 'master' of github.com:govhackaustralia/govhackaustralia…
Jul 30, 2016
11d70e5
Typo Geelong => Wyndham
Jul 30, 2016
a6d7b4e
Fix typos, fix broken images
Jul 30, 2016
7e0140f
Update bootstrap.html
Jul 31, 2016
d23993a
Update australia-paddock-to-plate-hack.md
keithamoss Jul 31, 2016
ff23df6
Initial import of submitted and valid projects
Aug 1, 2016
ba16cbe
Hackerspace project import script
Aug 1, 2016
e7aeefe
Barebones requirements for showing projects
Aug 1, 2016
9eee6ad
Add project image urls and alt video urls
Aug 2, 2016
9103119
Adding projects with no homepage/demo url
Aug 2, 2016
6416243
Adding missing Melbourne Ecol prize
Aug 2, 2016
7d70777
Adding projects for Melbourne's missing Ecol prize
Aug 2, 2016
237ffec
Project import script update
Aug 2, 2016
f2abd99
Fixing some funky project names
Aug 3, 2016
a3164f1
Fixing
Aug 3, 2016
ef59cc4
More funky fixing
Aug 3, 2016
5432b20
Some late projects being added
Aug 3, 2016
8afc4c4
Update to YouTube URL
Aug 3, 2016
034cc2b
Project import script updates
Aug 3, 2016
7e89060
Fixing image URLs
Aug 3, 2016
f6a6d21
Some more projects
Aug 7, 2016
766309b
Minor fix to project image URL import
Aug 7, 2016
e2be140
Prizes now link to their respective projects
Aug 7, 2016
b3772a9
All projects now get a category
Aug 7, 2016
7bb9c0f
Tweaks to prize import script
Aug 7, 2016
260fe84
Renaming prizes -> prize-entered
Aug 7, 2016
4a9e62b
Oops, forgot to actually add the gid to project frontmatter
Aug 7, 2016
d549a75
Demo of how winners can be structured
Aug 7, 2016
bafe52a
Typos
Aug 7, 2016
e08f21c
upgrade MAV Tech to state sponsor
Aug 11, 2016
6b5dbfb
The project cards page is up... Beware fat load times
Aug 11, 2016
388eb84
Showcase per-project page
Aug 12, 2016
a98058b
Template changes
andyepx Jun 17, 2017
5c0ea81
Moved everything
andyepx Jun 17, 2017
7ea5a10
Python and google sheets
andyepx Jun 17, 2017
48db9af
Getting locations from sheets
andyepx Jun 17, 2017
8e1a553
Renaming files, fixed fooer css
andyepx Jun 17, 2017
7c16216
Fix to python parser
andyepx Jun 17, 2017
2bb71f0
Updated doc
andyepx Jun 17, 2017
33d2448
Added New in 2017 section to README
andyepx Jun 17, 2017
6148f4a
Added hex background
andyepx Jun 17, 2017
a57844e
Typo in python
andyepx Jun 17, 2017
10ede01
Fix?
andyepx Jun 18, 2017
6620086
Fix??
andyepx Jun 18, 2017
b503bc6
Build with TrevisCI
andyepx Jun 18, 2017
03c2190
Moved all files back to root - GH Pages won't build otherwise
andyepx Jun 18, 2017
713834a
Delete CNAME
andyepx Jul 12, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added .DS_Store
Binary file not shown.
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
_site
.sass-cache/
.jekyll-metadata
.vscode
config-example.yaml
*.sublime-workspace
Gemfile.lock
startbootstrap-*
docs/
venv/
resources/HorizontalDropDownMenu/
resources/mega-dropdown
_layouts/bootstrap-horizontalmegamenu.html
python/data/
python/tmp/
sponsor-engine/
feed/prizes/
_glynn.yml
nohup.out
*prizes.log
*datasets.log
*.pyc
*.iml
.idea

google_sheets_client_secret.json
2 changes: 2 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Options +FollowSymlinks
RewriteEngine on
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: ruby
rvm:
- 2.1
script: "bundle exec jekyll build"
7 changes: 6 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
source 'https://rubygems.org'
gem 'github-pages'

require 'json'
require 'open-uri'
versions = JSON.parse(open('https://pages.github.com/versions.json').read)

gem 'github-pages', versions['github-pages']
407 changes: 390 additions & 17 deletions LICENSE

Large diffs are not rendered by default.

130 changes: 129 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,131 @@
This is the source for the govhack-science website highlighing sciency datasets at [govhack-science.github.io](http://govhack-science.github.io)

Content served by [Jekyll](http://jekyllrb.com/docs/), with layout and nice bits stolen shamelessly from [Rasmus Andersson](https://github.com/rsms/rsms.github.com)
Content served by [Jekyll](http://jekyllrb.com/docs/), with layout and nice bits stolen shamelessly from [Rasmus Andersson](https://github.com/rsms/rsms.github.com)

# New in 2017 ✨
- [Google Sheets API](#google-sheets-api)
- [Regions & Locations Loader](#regions--locations-loader)

# Planning
[GovHack Data Model](https://www.lucidchart.com/documents/view/d36186be-0c77-4e89-a735-6022a716566a)

# Documentation
- [Jekyll](https://jekyllrb.com/docs/github-pages/)
- [Liquid Templating Engine](https://shopify.github.io/liquid/)
- [Liquid For Designers](https://github.com/Shopify/liquid/wiki/Liquid-for-Designers)

# Requirements
- Ruby
- RubyGems
- NodeJS
- Python
- Jekyll

# Installation
https://jekyllrb.com/docs/installation/
https://jekyllrb.com/docs/github-pages/

> Our friends at GitHub have provided the github-pages gem which is used to manage Jekyll and its dependencies on GitHub Pages. Using it in your projects means that when you deploy your site to GitHub Pages, you will not be caught by unexpected differences between various versions of the gems. To use the currently-deployed version of the gem in your project, add the following to your Gemfile

> The best way to install Jekyll is via RubyGems. At the terminal prompt, simply run the following command to install Jekyll:

`$ gem install github-pages`

All of the GitHub pages flavour of Jekyll, and its gem dependencies are automatically installed by the above command, so you won’t have to worry about them at all.


# Run
https://jekyllrb.com/docs/usage/

`jekyll serve`

If you receive a message like:

> Could not find gem 'github-pages (= 67)' in any of the gem sources listed in your Gemfile or available on this machine. (Bundler::GemNotFound)

Then it means GitHub has upgraded their `github-pages` gem version, so just run `bundle install` from the root directory to upgrade to the latest set of deps GitHub is using.

# Python Tools
We have a few Python tools to help us manage the ingest of data, and generating a static JSON API.

To setup a virtual environment run (from the root directory):
```
virtualenv --system-site-packages venv
. venv/bin/activate
pip install -r python/requirements.txt
```

## Google Sheets API
**In 2017, data for the portal is fetch directly from Google Sheets**

You'll need to copy of the Google Sheets Client Secret before running the import scripts. If you're reading this, you most likely have access to the GOT Google Drive - the file is in `GovHack Drive 💾/Portal Data/google_sheets_client_secret.json`.

Download this file to your computer, and place it in the `python` directory of this project.

**ATTENTION:** do not commit this file 👍

_The first time you run one of the scripts, you will be asked to grant access to the Portal App to use your account to access to Google Sheets. Grant access or you won't be able to run any of the scripts._

### Google Sheets API Config

In `python/govhack_config.py` there are a few Spreadsheet IDS grabbed from Google Drive. The sheets only need to bo accessible by anyone with a GovHack Google account, no need for them to be public - even if the data in those sheets will then be made public by this site... 🔒


## Regions & Locations Loader
This scripts uses a Google Sheets to create `.md` files for all regions and locations. **Any local edit to files in `pages/_jurisdictions` and `pages/_locations/*` will be lost!**

To run:
```
. venv/bin/activate
cd python
python regions_locations.py
```

## Mentors Ingest
This script takes a `.csv` file exported from FormStack and generates a set of new .md files.

To run:
```
. venv/bin/activate
python python/mentors.py
```

The script tries its best to auto-populate the mentor files based on what exists in Jabberwocky (events, organisations, et cetera), but you should *still read the output of the script* to check for any `WARNINGS` you might need to fix up.


## Prizes Ingest
This script takes a directroy of `.csv` file downloaded from Google Drive and generates a set of new .md files.

To run:
```
. venv/bin/activate
python python/prizes.py
```

The script tries its best to auto-populate the prize files based on what exists in Jabberwocky (events, organisations, et cetera), but you should *still read the output of the script* to check for any `WARNINGS` you might need to fix up.


## Datasets Ingest
This script takes a `.csv` file exported from FormStack and generates a set of new .md files.

To run:
```
. venv/bin/activate
python python/datasets.py
```

The script tries its best to auto-populate the dataset files based on what exists in Jabberwocky (events, organisations, et cetera), but you should *still read the output of the script* to check for any `WARNINGS` you might need to fix up.


## Static API
This script *need to be run everytime we change the frontmatter of an .md* file so that we always serve the latest content to govhack.org. This generates one `.json.` file for each Markdown file thanks to the magic of [python-frontmatter](https://pypi.python.org/pypi/python-frontmatter/0.2.1).

At this stage it's a straight conversion from one to the other - with no magic to compose the full entity object, include links to and from it, yet.

To run:
```
. venv/bin/activate
python python/frontmatter-to-json.py
```

> Tip: If `importError: No module named yaml`, try [this SO](http://stackoverflow.com/questions/1909025/import-error-with-virtualenv). Otherwise the `virtualenv --system-site-packages venv` command should have imported the usual suspects like pyyaml.
131 changes: 131 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
cfg:
has_hackerspace: false
current_event: gh17
events:
- gh17
- gh16
- gh15
- gh14
- gh13

exclude:
- 2015
- docs
- python
- startbootstrap-agency-1.0.6
- startbootstrap-clean-blog-1.0.4
- startbootstrap-clean-blog-1.0.4-original
- startbootstrap-grayscale-1.0.6
- venv
- datasets

collections:
sponsors:
enabled: false
output: true

themes:
enabled: false
output: true

datasets:
enabled: false
output: true

dataportals:
enabled: false
output: true

mentors:
enabled: false
output: true

organisations:
enabled: false
output: true

prizes:
enabled: false
output: true

jurisdictions:
enabled: false
output: true

locations:
enabled: true
output: true

handbookchapters:
enabled: false
output: true

projects:
enabled: false
output: true

defaults:
- scope:
path: "_datasets"
type: datasets
values:
layout: dataset

- scope:
path: "_dataportals"
type: dataportals
values:
layout: dataportal

- scope:
path: "_mentors"
type: mentors
values:
layout: mentor
permalink: /mentors/:title.html

- scope:
path: "_organisations/sponsors"
type: organisations
values:
layout: organisation
permalink: /sponsors/:title.html

- scope:
path: "_organisations/supporters"
type: organisations
values:
layout: organisation
permalink: /supporters/:title.html

- scope:
path: "_prizes"
type: prizes
values:
layout: prize

- scope:
path: "_jurisdictions"
type: jurisdictions
values:
layout: jurisdiction
permalink: /regions/:title.html

- scope:
path: "_locations"
type: locations
values:
layout: location

- scope:
path: "_handbookchapters"
type: handbookchapters
values:
layout: handbook_chapter
permalink: /handbook/:categories/:title.html

- scope:
path: "_projects"
type: projects
values:
layout: project
71 changes: 71 additions & 0 deletions _data/sponsor_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"national": {
"defaultColumns": 3,
"classes": [{
"slug": "lead-agency",
"columns": 1.5
}, {
"slug": "lead-sponsor",
"columns": 1.5
}, {
"slug": "red-carpet-awards",
"columns": 1.5
}, {
"slug": "international-prize",
"columns": 3
}, {
"slug": "platinum",
"columns": 3
}, {
"slug": "gold",
"columns": 3
}, {
"slug": "silver",
"columns": 3
}, {
"slug": "govt-agency-supporter",
"columns": 3
}, {
"slug": "supporter",
"columns": 3
}, {
"slug": "foundation",
"columns": 3
}]
},
"state": {
"defaultColumns": 3,
"classes": [{
"slug": "gold-state-gov-wa",
"columns": 1,
"classNames": "unbound"
}, {
"slug": "platinum-state-qld",
"columns": 1.5
}, {
"slug": "naming-rights",
"columns": 1.5
}, {
"slug": "nz-national",
"columns": 3
}, {
"slug": "premier",
"columns": 3
}, {
"slug": "platinum",
"columns": 3
}, {
"slug": "gold",
"columns": 3
}, {
"slug": "silver",
"columns": 3
}, {
"slug": "bronze",
"columns": 3
}, {
"slug": "in-kind",
"columns": 4
}]
}
}
10 changes: 10 additions & 0 deletions _dataportals/agency/aad.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Australian Antarctic Division
gid: aad
website_url: http://data.gov.au/organization/australianantarcticdivision
logo_url: /resources/csiro-logo.png
jurisdiction: australia
type: agency-portal
---

The data portal for all Australian Antarctic Division data.
Loading