Contributions to the content are more than welcome - please see the instructions below to get started.
How to deploy the site locally¶
- Clone the repository (
git clone https://github.com/esgf2-us/esgf2-us.github.io.git
)` - Install the require packages (
conda env create -f environment.yml
) - Run the website from your command line (
myst start
), see more on the myst website documentation
How to change content¶
All of the content is written as Jupyter Notebooks or markdown files. Once you make changes to files in the repository (ex. README.md
), you can do the following:
- Make sure the file is in the table of contents (
_toc.yml
), if it is not, add it to the list of files - Render the website locally (see previous steps)
- Commit your changes to github on your own fork of the project, creating a dedicated feature branch (see git branches content here for more details)
How to write markdown documents¶
This website makes use of myst markdown - for a detailed guide on the required syntax, please see “Working with MyST Markdown”
How to contribute to Github¶
Once you have changes you would like to make, please follow the workflow:
- Fork the project repository at https://
github .com /esgf2 -us /esgf2 -us .github .io - Clone the forked repository
git clone https://github.com/{USERNAME}/esgf2-us.github.io.git
where USERNAME is your own username - Create a new branch using
git checkout -b 'new-branch name'
- Make your changes, and add them
git add new_markdown_file.md
- Commit your changes
git commit -m "ADD: Add new file"
- Push your changes
git push
- Open a pull request on the web editor at https://
github .com /esgf2 -us /esgf2 -us .github .io
A maintainer will follow up with your pull request and suggest changes or approve the contribution!
For more on Git/Github, please see the “Getting Started with Github Guide”