Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

Commit

Permalink
Merge pull request #613 from 18F/jekyll
Browse files Browse the repository at this point in the history
Switch to Jekyll
  • Loading branch information
meiqimichelle committed Oct 9, 2015
2 parents 8704c4d + c201b40 commit ec0e432
Show file tree
Hide file tree
Showing 404 changed files with 2,285 additions and 6,086 deletions.
1 change: 0 additions & 1 deletion .cfignore

This file was deleted.

12 changes: 8 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
*.css
*.css.map
*.pem
.*.sw?
.DS_Store
node_modules
.env
.sass-cache
.jekyll-metadata
_site
bower.json
bower_components
*.pem
node_modules
npm-debug.log
*.css
*.css.map

Binary file added .jekyll-metadata
Binary file not shown.
16 changes: 16 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
title: US EITI

sass:
style: compressed

exclude:
- bin
- lib
- node_modules
- package.json
- routes.yml
- server.js
- show
- styles
- test
- views
107 changes: 107 additions & 0 deletions _data/datatypes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# this YAML file should have one key per "data type" on the resources page.
# the spec for each looks like this:
#
# slug:
# # the human-readable name of this data type (e.g. "Revenue")
# name: Name of Type
#
# # if true, disable this option in the <select> element
# disabled: false
#
# # determines which geographical features will be visible on the map
# geo:
# (states|offshore): true
# counties:
# (filters)
#
# # an optional list of hierarchies within this data type
# hierarchy:
# - Product
#
# # a list of data URLs, least specific to most, with optional filters that
# # will only match on specific parameter combinations
# data:
# - url: /path/to/data/:parameter.tsv
# # the "value" column to sum on
# value: Value
# # the optional column on which to group by geographic region
# geo: Region
# params:
# (filters)
# - url: /some/other/path.tsv
#
# Conventions:
#
# * (filters) is a hash in which each key is one that should exist in the
# parameters for a given view. A value of `true` indicates that the key
# should just be present; other values will require a equality with `==`.

revenue:
name: Revenue
geo:
states: true
offshore: true
counties:
regiontype: onshore
region: true
data:
- url: /data/regional/resource-revenues.tsv
value: Revenue

- url: /data/county/by-state/:region/resource-revenues.tsv
subregions: /data/county/by-state/:region/counties.tsv
params:
regiontype: onshore
region: true
value: Revenue
geo: +FIPS # group by county

- url: /data/offshore/revenues.tsv
params:
regiontype: offshore
value: Revenue

production:
name: Production
disabled: true
geo:
states: true
offshore: true
counties:
regiontype: onshore
hierarchy:
- Product
data:
- url: /data/state/production.tsv
subregions: /data/county/by-state/:region/counties.tsv
params:
regiontype: onshore
value: Volume
geo: State

- url: /data/offshore/production.tsv
params:
regiontype: offshore
value: Volume
geo: Area

exports:
name: Exports
geo:
states: true
data:
- url: /data/state/exports-by-industry.tsv
value: Value
geo: State

jobs:
name: Jobs
disabled: true
geo:
states: true
varies:
- Type
data:
- url: /data/state/gdp.tsv
geo: State
value: GDP
28 changes: 28 additions & 0 deletions _data/offshore_areas.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
region,id,name
Alaska,CHU,Chukchi Sea
Alaska,COK,Cook Inlet
Alaska,GEO,St. George Basin
Alaska,GOA,Gulf of Alaska
Alaska,HOP,Hope Basin
Alaska,KOD,Kodiak
Alaska,MAT,St. Matthew-Hall
Alaska,NAL,North Aleutian Basin
Alaska,NAV,Navarin Basin
Alaska,NOR,Norton Basin
Alaska,SHU,Shumagin
Atlantic,FLS,Florida Straits
Atlantic,MDA,Mid Atlantic
Atlantic,NOA,North Atlantic
Atlantic,SOA,South Atlantic
Gulf,GUL,Gulf
Gulf,ALA,Aleutian Arc
Gulf,ALB,Aleutian Basin
Gulf,BFT,Beaufort Sea
Gulf,BOW,Bowers Basin
Gulf,CGM,Central Gulf of Mexico
Gulf,EGM,Eastern Gulf of Mexico
Gulf,WGM,Western Gulf of Mexico
Pacific,CEC,Central California
Pacific,NOC,Northern California
Pacific,SOC,Southern California
Pacific,WAO,Washington-Oregon
144 changes: 144 additions & 0 deletions _data/resources.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
{
"groups": {
"oilgas": "Oil & Gas",
"coal": "Coal",
"minerals": "Hard Minerals",
"renewables": "Renewables"
},
"subgroups": {
},
"commodities": {
"Oil": {
"group": "oilgas"
},
"Gas": {
"group": "oilgas"
},
"Oil & Gas": {
"group": "oilgas"
},
"Oil Shale": {
"group": "oilgas"
},
"NGL": {
"group": "oilgas"
},
"Tar Sands": {
"group": "oilgas"
},
"Coal": {
"group": "coal"
},
"Geothermal": {
"group": "renewables"
},
"Wind": {
"group": "renewables"
},
"Asphalt": {
"group": "minerals"
},
"Anhydrous Sodium Sulfate": {
"group": "minerals"
},
"Borax-Anhydrous": {
"group": "minerals"
},
"Borax-Decahydrate": {
"group": "minerals"
},
"Borax-Pentahydrate": {
"group": "minerals"
},
"Boric Acid": {
"group": "minerals"
},
"Boric Oxide": {
"group": "minerals"
},
"Clay": {
"group": "minerals"
},
"Copper": {
"group": "minerals"
},
"Garnet": {
"group": "minerals"
},
"Gemstones": {
"group": "minerals"
},
"Gilsonite": {
"group": "minerals"
},
"Gold": {
"group": "minerals"
},
"Hardrock": {
"group": "minerals"
},
"Iron": {
"group": "minerals"
},
"Limestone": {
"group": "minerals"
},
"Phosphate": {
"group": "minerals"
},
"Potassium": {
"group": "minerals"
},
"Quartz": {
"group": "minerals"
},
"Salt": {
"group": "minerals"
},
"Salt-Waste": {
"group": "minerals"
},
"Sand & Gravel": {
"group": "minerals"
},
"Soda Ash-Granular": {
"group": "minerals"
},
"Sodium": {
"group": "minerals"
},
"Sulfur": {
"group": "minerals"
},
"Mining": {
"group": "minerals"
},
"Other": {
"group": "other"
},
"Other Products": {
"group": "other"
},
"Hot Springs": {
"group": "other"
}
},

"colors": {
"oilgas": {
"primary": "#a0a539"
},
"coal": {
"primary": "#955dce"
},
"minerals": {
"primary": "#c63e3a"
},
"renewables": {
"primary": "#177dab"
},
"other": {
"primary": "#999999"
}
}
}
52 changes: 52 additions & 0 deletions _data/states.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
id,name,FIPS
AL,Alabama,01
AK,Alaska,02
AZ,Arizona,04
AR,Arkansas,05
CA,California,06
CO,Colorado,08
CT,Connecticut,09
DE,Delaware,10
DC,District of Columbia,11
FL,Florida,12
GA,Georgia,13
HI,Hawaii,15
ID,Idaho,16
IL,Illinois,17
IN,Indiana,18
IA,Iowa,19
KS,Kansas,20
KY,Kentucky,21
LA,Louisiana,22
ME,Maine,23
MD,Maryland,24
MA,Massachusetts,25
MI,Michigan,26
MN,Minnesota,27
MS,Mississippi,28
MO,Missouri,29
MT,Montana,30
NE,Nebraska,31
NV,Nevada,32
NH,New Hampshire,33
NJ,New Jersey,34
NM,New Mexico,35
NY,New York,36
NC,North Carolina,37
ND,North Dakota,38
OH,Ohio,39
OK,Oklahoma,40
OR,Oregon,41
PA,Pennsylvania,42
RI,Rhode Island,44
SC,South Carolina,45
SD,South Dakota,46
TN,Tennessee,47
TX,Texas,48
UT,Utah,49
VT,Vermont,50
VA,Virginia,51
WA,Washington,53
WV,West Virginia,54
WI,Wisconsin,55
WY,Wyoming,56

0 comments on commit ec0e432

Please sign in to comment.