Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Guide for Contributing to the CUAHSI Water Content Portal

The CUAHSI Water Content Portal is a community-driven resource. We rely on contributions from water science researchers and educators to keep our learning materials accurate and comprehensive.

Ways to Contribute

There are three primary ways you can help improve this resource:

  1. Suggesting Changes: Reporting typos, broken links, or platform bugs.

  2. Editing Existing Content: Updating text or code in markdown-based content or computational narratives (e.g., Jupyter Notebooks).

  3. Syncing External Content: Notifying us when a external repository existing in the platform has been updated.

Suggesting Platform Edits

If you notice an issue with the website itself (navigation, styling, or general errors), please do one of the following:

Editing Existing Content

Using the “Edit” Buttons

Some pages in the portal currently include a pencil and paper edit button at the top. Please note that clicking this edit button will redirect you away from this portal to the repository where the source content actually lives. The edit button can take you to different ways to contribute content:

content-management-graphic

Updating External Content (via Git submodules)

Because this portal aggregates content from various external repositories using Git submodules, updates made to a source repository do not always appear here automatically. A description of this workflow is below:

submodules-workflow

If you have updated a chapter or notebook in an external repo (e.g., chapter 2 in the Hydroinformatics E-book) and want to see it reflected in the portal:

  1. Open a GitHub Issue in the Water-Content-Portal repository.

  2. Title the Issue: E.g., “Update to Hydroinformatics Textbook”

  3. Provide Details: Briefly mention which chapters or files were updated so the core team can run a make update to sync the changes.

Building the Portal Locally to Preview Changes

If you want to preview your contributions before submitting them, you can build the book on your local machine:

  1. Clone the repo: git clone git@github.com:CUAHSI/Water-Content-Portal.git.

  2. Create the environment: conda env create --file environment.yml.

  3. Update content in external repo: make update.

  4. Serve the book: make serve.

For more detailed steps, see the Local Build Instructions.

Technical Architecture

This platform is built using the Jupyter Book Python package and MyST Markdown, allowing for the integration of computational narratives (e.g., Jupyter Notebooks) and standard documentation. We use Heap Analytics to track how each resource is being used by the community.

book-building-usage-tracking-graphic

The site is deployed via the web hosting serive Netlify.

website-hosting-graphic