This repository was archived by the owner on Jul 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Sunlight specific code
James McKinney edited this page Mar 17, 2014
·
23 revisions
- You can ignore
misc/
-
general.rb:item_type_nameimplements 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: Theuscfield should be a genericdatafield -
Search: You can ignore all the Sunlight-specific code -
User: You can ignore the:open_statesscope
- Need to be able to override
about.erbandindex.erb -
collections.erblinks to a Sunlight training video -
emails/footers/general.erbincludes a description of Sunlight and a call for donations - You can ignore
emails/footers/open_states.erbandemails/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.txthardcodeshttps://scout.sunlightfoundation.com. According to sitemaps.org, it must be an absolute URL, yet StackOverflow uses a relative URL. - By configuring the
assetssection ofconfig.yml, you can change the path to theassetsdirectories
-
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_stateskey in the hash. -
crontab.rake: Don't run thecrontab:settask with theenvironmentvariable set toproduction, as it will install Sunlight's crontab. -
deliver.rake: You can ignore thedeliver:customtask. -
sitemap.rake: Hardcodes the change frequency of Sunlight's item types only, default toweeklyotherwise. 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.