This repository has been archived by the owner on Jul 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
Sunlight specific code
James McKinney edited this page Mar 17, 2014
·
23 revisions
- You can ignore
misc/
-
general.rb
:item_type_name
implements only Sunlight types -
routing.rb
: You can ignore the OpenStates-specific if-statement initem_url
-
subscriptions.rb
: You can ignore the Sunlight-specific code
- You can ignore
ext/
-
Citation
: Theusc
field should be a genericdata
field -
Search
: You can ignore all the Sunlight-specific code -
User
: You can ignore the:open_states
scope
- Need to be able to override
about.erb
andindex.erb
-
collections.erb
links to a Sunlight training video -
emails/footers/general.erb
includes a description of Sunlight and a call for donations - You can ignore
emails/footers/open_states.erb
andemails/headers/open_states.erb
(The views have not been combed for adapter- or item-specific conditionals.)
- Do not use the files under
cron/
. See notes below aboutcrontab.rake
.
- Make the time zone configurable ("America/New_York")
-
email.rb
: You can ignore the three OpenStates-specific if-statements
- Need to be able to replace
BingSiteAuth.xml
- The sitemap location in
robots.txt
hardcodeshttps://scout.sunlightfoundation.com
. According to sitemaps.org, it must be an absolute URL, yet StackOverflow uses a relative URL. - By configuring the
assets
section ofconfig.yml
, you can change the path to theassets
directories
-
manager.rb
: You can ignore the Scout User-Agent string - All adapters that ship with Scout are Sunlight-specific except for
feed.rb
. You can ignore them.
-
analytics.rake
: You can ignore theopen_states
key in the hash. -
crontab.rake
: Don't run thecrontab:set
task with theenvironment
variable set toproduction
, as it will install Sunlight's crontab. -
deliver.rake
: You can ignore thedeliver:custom
task. -
sitemap.rake
: Hardcodes the change frequency of Sunlight's item types only, default toweekly
otherwise. It should be possible to register item types and set their change frequency. You can ignore the code that adds US Code pages. -
sunlight.rake
: You can ignore.