To see the documentation, you access to:
https://resource-watch.github.io/doc-api
- Ruby
- Bundler gem
Please ensure that you are using the correct version of Ruby - this project requires Ruby version 2.4.1
.
It is recommend to use rvm
to manage different versions of Ruby in your development environment. You can find here instructions on how to install rvm
.
To install dependencies, use:
bundle install
To run the application server, use:
bundle exec middleman server
deploy.sh
You have set up the documentation project and are ready to contribute? Great, here are some tips to help you get started!
- You'll find the user docs in the
source/includes/api
folder and the developer docs in thesource/includes/dev
folder. - Each section of the API has its own file, roughly matching individual microservices. Looking at the URL you are trying to document will help you determine where your contribution should go.
- When it comes to documentation style (how you format your text or where do you place it in the document), odds are that something similar has already been done on another section. Before you start typing away, have a look at other sections and look for inspiration or copy-paste opportunities. They will both save you time and help the docs stay consistent in style and format.
- HTML elements like can be used but should be saved only for important notices or other info that cannot be communicated using the standard markdown structure.
- Use a spell checker.
- Keep in mind that this documentation is used for Resource Watch, Aqueduct and Global Forest Watch - each of these projects will have it's own
/source/index-<project initials>.html.md
- Contrary to what you may believe, Markdown rendering is not an exact science. Do test your changes by running the app server locally and checking the end result on the browser. Markdown preview tools output is known to be different from the HTML generated by this tool.
Created with slate project: