Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
- Report bugs, request features or submit feedback as a GitHub Issue.
- Make fixes, add content or improvements using GitHub Pull Requests
Ready to contribute? Here's a quick guide
To build our website, we need specific Python packages which are managed with the conda
and mamba
tools. If you already do not already have those tools installed, we recommend using the Mambaforge Installer:
-
Fork this hackweek's website repo on GitHub (https://github.com/ICESAT-2HackWeek/website2022).
-
Clone your fork locally:
git clone https://github.com/YOUR_FORK/website2022.git cd website2022
-
Create a branch to add your changes:
git checkout -b name-of-your-bugfix-or-feature
-
Create and activate the "hackweek" conda environment.
NOTE: If you're running linux or Windows use
conda/conda-linux-64.lock.yml
mamba env create --name hackweek --file conda/conda-osx-64.lock.yml mamba activate hackweek
NOTE: If you want to add packages or change the environment, you must follow the procedure outlined in ./conda/README.md.
-
Make your desired changes and build the book locally
./scripts/build_resources.sh
NOTE: to preview the changes open
book/build/html/index.html
-
Push your branch to GitHub when you're ready:
git add . git commit -m "Your detailed description of your changes." git push origin name-of-your-bugfix-or-feature
-
Open a pull request through the GitHub website: https://github.com/ICESAT-2HackWeek/website2022
If you're adding a new Jupyter Notebook Tutorial, please first take a look at our guide on creating tutorials.
When adding a new .ipynb
file under book/tutorials
be sure to:
-
Add an entry to the table of contents
book/_toc.yml
-
"Clear all Outputs" before saving. This keeps the book source code small, but outputs are still built for the HTML webpage by Jupyter Book.