CityOfLosAngeles / open-sdg-site-starter

A starting point for the site repository of an Open SDG platform implementation.
https://sdgdata.lamayor.org
MIT License
3 stars 3 forks source link

feat(content): provide the latest production code from dawn's repository and fix prose.io integration #11

Closed jaylenw closed 3 years ago

jaylenw commented 3 years ago

What does this PR do?

This PR brings over the latest files from Dawn's open-sdg-site-starter repository, https://github.com/dawncomer/open-sdg-site-starter, commit a5f2f08b6fe5303005ccfc7c18dbcb0ccb530c33. It also includes the fixes necessary for proper prose.io integration for the development environment.

Additional Background info:

We discovered that the edit buttons on the indicator pages do not show unless the environment key-value pair in the _config.yml is set to staging. Any other value will not result in the edit buttons from appearing in the development environment. According to the open-sdg documentation, they refer the environment as staging while we are referring it as the development environment.

How was this tested?

Changes made in this PR have been tested by running bundle exec jekyll serve --config _config.yml. This serves the dev version of the site. Visit http://127.0.0.1:4000/ to make sure the home page is served as expected. Also, visit http://127.0.0.1:4000/1-1-1/#edit to have the buttons appear to edit the data. Click on one of the buttons and it will take you to prose.io to edit the appropriate data file for the given indicator on the development branch of the data repository.

You may also test that the production version builds successfully by running bundle exec jekyll serve --config _config.yml,_config_prod.yml.

Issue(s) related to this PR?

This PR is related to issue #10

close #10