OceanHackWeek, https://oceanhackweek.github.io/ohw-resources
This documentation is built and deployed using MkDocs, and uses the markdown extension admonition and the markdown plugin markdownextradata. The organization of pages on this site is specified in the mkdocs.yml
file, together with other site configurations.
- Install
mkdocs
and the markdown plugin fromconda-forge
:conda install -c conda-forge mkdocs mkdocs-markdownextradata-plugin
- To develop locally, activate the conda environment then run
mkdocs serve
to view and evaluate your edits on your browser - To publish your edits to the GitHub repository, please use the Git Forking workflow:
- Fork this repository
- Clone your fork:
git clone https://github.com/mygithubname/ohw-resources.git
- Add the "upstream" (main) GitHub repository as a git remote called "upstream":
git remote add upstream https://github.com/oceanhackweek/ohw-resources.git
- Make your edits locally to the markdown documents, then push your changes to your GitHub fork ("origin"):
git push origin mylocalbranchname
- Submit a Pull Request (PR) from your GitHub fork to the
master
branch of the main repository (the master branch will be selected by default)
- Your proposed changes will be reviewed by Emilio Mayorga or another person before merging into the
master
branch or asking you via GitHub discussions for clarifications or changes. Once the PR is merged, the web pages will be generated automatically and updated on thegh-pages
branch. It typically takes a couple of minutes after merginng the PR before the updates are published and visible.
Note: You'll find most MkDocs
instructions pointing to the use of the command mkdocs gh-deploy
to publish your local edits to the GitHub repository (more specifically, to the gh-pages
branch). Please ignore those instructions and follow the Git Forking workflow instructions listed above.
The easiest way to contribute additions or changes to an existing Learning Resources page, is to go to the page at the web site itself (not the GitHub repository markdown file). That way you can first read it exactly as intended, plus you can find it easily if you start at the OceanHackWeek Resources
home page. Then click on the "Edit on GitHub" link at the upper right, and edit away. A Pull Request will be generated that will be reviewed by us before "merging" it (your changes) into the repository or asking for clarifications.