_docs/
- directory containing documentation pages (in markdown) and file templates.
_data/
- configuration files for the website. Only edit /_data/sidebars/sidebar_ioos.yml
theme/
- Do not edit - the Jekyll theme files containing the look and feel and functionality of the site - sourced from the
ioos/documentation-theme-jekyll repo.
Below are the steps by which a team can iterate on developing a netCDF template.
- Generate a CDL file representing the netCDF file contents.
- File names should include a reference to the template type.
- Submit the CDL as a Pull Request to this repository
_docs/data/templates
. - Review CDL
- Raise issues by selecting the three dots on the line of concern and click "Reference in new issue". Include a description as to what should be changed.
- Resolve issues by making the adjustment per the discussion in the issue and submitting a Pull Request via GitHub.
- Once the template is finalized, a documentation site should be populated with details on the contents of the template.
- Once the website is updated, create a release of the repository.
- Use a tag that is logical for the release. Typically a semantic version number makes sense.
- CDL is a Common Data Language (CDL) text representation of a netCDF file, following the specifications provided here.
- CDL can be generated from a netCDF file by using the
ncdump
tool, or various other tools. - CDL can be used to generate a netCDF file using the
ncgen
tool. - An example working with a CDL file in python can be found in this notebook
- A CDL file can be edited using a simple text editor (like notepad, vim, emacs, or through the GitHub interface).
- Template files are found at
_docs/data/templates
.
The easiest way to get started is to file an issue to tell us about a spelling mistake, some awkward wording, or a factual error. This is a good way to introduce yourself and to meet some of our community members.
-
If you have a GitHub account, or are willing to create one, but do not know how to use Git, you can report problems or suggest improvements by creating an issue. This allows us to assign the item to someone and to respond to it in a threaded discussion.
-
If you are comfortable with Git, and would like to add or change material, you can submit a pull request (PR). Instructions for doing this are included below.
Contribute your documentation to the _docs/
directory.
- Update an existing page.
- Create a new page.
If you choose to contribute via GitHub, you may want to look at How to Contribute to an Open Source Project on GitHub. To manage changes, we follow GitHub flow. To use the web interface for contributing to a file:
- Fork the originating repository to your GitHub profile.
- Within your version of the forked repository, move to the
gh-pages
branch. - Navigate to the file(s) you wish to change within the branch and make revisions as required.
- Commit all changed files within the appropriate branch.
- Create pull requests from your changed branch to the
gh-pages
branch within the originating repository. - If you receive feedback, make changes using your issue-specific branches of the forked repository and the pull requests will update automatically.
- Repeat as needed until all feedback has been addressed.
When starting work, please make sure your clone of the originating gh-pages
branch is up-to-date before creating your own
revision-specific branch(es) from there.
Requirements:
- bundle
- Jekyll
See IOOS How To: Local Development with Jekyll.
Clone this repository:
git clone https://github.com/ioos/ioos-atn-data.git
Checkout the gh-pages branch:
git checkout gh-pages
To build the site, in the ioos-atn-data/
directory run:
bundle exec jekyll serve --config _config.yml --watch --verbose --incremental
This will deploy a website at: http://127.0.0.1:4000/ioos-atn-data/
Make edits to the appropriate markdown files in _docs/
.
If changing headers and menus, stop the running server by entering ctrl-c
in the terminal. Then run:
bundle exec jekyll clean
Then build the site again.
bundle exec jekyll serve --config _config.yml --watch --verbose --incremental
And review at http://127.0.0.1:4000/ioos-atn-data/