Thank you for your interest in contributing to the UNICEF Open Source Inventory! This page explains logistics of contributing, how to set up the project locally, and tips for submitting new patches.
First, decide if you are interested in submitting either content, code, or something else. We accept both updates & revisions to existing content and code to improve the user interface and experience. Other contribution ideas are welcome, but if you do not see something listed here, you may have to propose it.
Do you have new ideas for content? Is there incorrect information on the website? Have ideas on how to make the site look-and-feel better? Everything starts first as an issue-driven discussion. Open a GitHub issue to raise your idea or proposal to the UNICEF Community:
For content & writing: unicef/inventory
For design & code: unicef/inventory-hugo-theme
If you intend to contribute content or code to the UNICEF Open Source Inventory, you need a local environment. The local environment is how you run a copy of the website on your own machine. This way, you can test changes first before submitting them for review.
- Git
- Hugo (see installation documentation)
- AsciiDoctor
(see installation documentation)
- This is because many of the UNICEF Open Source Inventory pages are written in AsciiDoc. You must have AsciiDoctor installed in order for Hugo to build the site successfully.
You need to clone the git submodule of the unicef/inventory-hugo-theme repository for the site to build correctly. Use the following command to clone the git repository:
# SSH
git clone --recurse-submodules [email protected]:unicef/inventory.git
# HTTPS
git clone --recurse-submodules https://github.com/unicef/inventory.git
When you are ready to test your changes, start the Hugo server in a terminal with the following command:
cd /path/to/inventory
hugo serve
The UNICEF Open Source Inventory website should appear locally in your browser.
Navigate to localhost:1313/inventory/
after starting the server to see a preview.