If you only want to update some content displayed, have a look into the data
directory, as if contains most of the displayed texts.
data/
Contains all data displayed on the websitedata/countries
Contains all country relevant datadata/home
Contains all the content displayed in the blocks of the homepagedata/pages
Contains the about and report pagedata/people
Contains the import of all persons from the google sheetdata/translations
Contains the translations of the people keys
General site data, such as the twitter/ facebook link or the page title is
located in gatsby-config.js
.
All pages can contain markdown in the body text. Some frontmatter fields of a person can also contain markdown. Supported fields: gatsby-node.js.
The report (located in data/pages/report.md
) is capable of rendering
footnotes, which doesn't follow a markdown standard. In order to add a footnote
you have to use:
Lorem ipsum dolor. ##Footnote Text##
The footnote text can contain markdown, to e.g. render links.
Lorem ipsum dolor. ##Footnote Text with [link](http://sanctionswatch.cifar.eu).##
Portraits of the people under sanctions are stored in static/media
. The
filenames always have to start with the ID of the person and have to be at least
600px wide.
avatar.png
is the fallback, which is displayed if a person doesn't have an image.
npm run develop
You can manually lint all js
and jsx
files by running npm run lint
. Before
each commit, all staged files are linted automatically.
This project follows git-flow
.
- Create a release branch from
develop
and name itrelease/[version]
. - Create PR, wait for builds to be green.
- Merge
release/[version]
into master. git tag [version]
git push --tags
- Update release description on github
- Merge
master
intodevelop
npm run build
All people are currently fetched from a google spreadsheet. To re-import the data
run node scripts/import-persons.js
and commit the updated markdown files.
The import will omit the following values: Unknown
, Unkown
, .
. All column
headers will be transformed into a proper key. The original translation is
stored in data/translations/columns.json
.