rastandy / crabook

Repository for Climate Risk Assessment Book

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crabook

Climate Risk Assessment Book

Usage

Building the book

For the first time

If you'd like to develop and/or build this Climate Risk Assesment book, you should:

  1. Clone this repository
     git clone git@github.com:CLIMAAX/crabook.git
  2. Create Python or Conda virtual environment (example for Conda)
     conda create -n crabook
  3. Activate the environment
    conda activate crabook
  4. Install pip
     conda install pip
  5. Go to the the crabook/ directory
    cd crabook
  6. Install the libraries
    pip install -r requirements.txt
  7. Find the markdown files and edit what you need
  8. Go back to the crabook/ directory
  9. Remove any existing builds by running
    jupyter-book clean crabook/
  10. Finally build the book
    jupyter-book build crabook/

A fully-rendered HTML version of the book will be built in crabook/_build/html/.

Open the file crabook/_build/html/intro.html and navigate to the material you changed to check if everything is as expected.

Once you're happy with the changes, you can push to the repo.

Every next time

The Python/Conda environment is needed only for building the book, so you can activate it after editing the files.

  1. Edit the book's source files located in the crabook/ directory
    cd crabook
  2. Activate the environment
     conda activate crabook
  3. Remove any existing builds by running
    jupyter-book clean crabook/
  4. Finally build the book
    jupyter-book build crabook/

Useful notes

  • _build directory has been added to .gitignore, so when you build it, it will not be pushed to GitHub
  • If you clone the repo in this early phase and work on Jupyter notebooks, you might download some data. Please keep all data in folder named data, as that is also set up in .gitignore and not pushed to the repo
  • Please do not add new notebooks to this repo without them being reviewed by project partners
  • If you did add some markdown files or notebooks, make sure they are listed in the _toc.yml file too, otherwise they will not be added to the book

Quick links to Jupyter Book documentation

  • If you are unsure of what to do you can go through Jupyter Book tutorial and build an example book to practice before contributing here
  • Find out how to structure the book here: Structure of the book
  • Read about writing narrative content without the executable part in this section

Quick links to MyST markdown documentation

We are using powerful MyST Markdown flavour of Markdown which is very convenient for technical and scientific documentation.

Hosting the book

This book is not hosted anywhere yet and exists only when it is built locally. We will update here when it is published.

Contributors

We welcome and recognize all contributions. You can see a list of current contributors in the contributors tab.

Credits

This project is created using the excellent open source Jupyter Book project and the executablebooks/cookiecutter-jupyter-book template.

About

Repository for Climate Risk Assessment Book

License:Other


Languages

Language:TeX 62.2%Language:Jupyter Notebook 37.8%