Skip to content

digitalearthafrica/deafrica-training-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deafrica-training-workshop

Content on this site may be deprecated. Please visit learn.digitalearthafrica.org for the most up-to-date information.

Training material on how to use DE Africa data at https://training.digitalearthafrica.org/. Site will be decommissioned by the end of 2021. Training material can be alternatively accessed at learn.digitalearthafrica.org.

English: Documentation Status | RTD

French: Documentation Status | RTD | POEditor

To edit docs on the sandbox

(replace <branch_name> with the name of your new branch that relates to your change)

mkdir dev
cd dev
git clone https://github.com/digitalearthafrica/deafrica-training-workshop.git
cd deafrica-training-workshop
git checkout -b <branch_name>

You can now make your changes by adding, editing or deleting notebooks *

When you are ready to commit your files, you can use the Git panel. From the menu bar, select the Git -> Git Interface (or click the git button on the left panel, a diamond with a branch on it)

  • Click the + next to Changed files to move them Staged
  • Click the + next to Untracked files to add them and move them Staged
  • Enter a commit message in the Summary field at the bottom of the panel and click commit.
  • After you have done the below instructions once, you can use the Push committed changes button (cloud with an up arrow) at the top of the panel
git config --global credential.helper store
git push --set-upstream origin <branch_name>

To start a pull request:

Troubleshooting: If you get the error message: remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/digitalearthafrica/deafrica-training-workshop.git', follow the guide to creating a personal access token here (only the "repo" tickbox/scope needs to be selected in order to push).
Once you have generated a token (a string of letters and numbers), save the token in a safe location (if you lose this you can regenerate it again). Now you can git push and when git asks for your user name and password in the sandbox, enter your GitHub username e.g. BexDunn and instead of entering your GitHub password, enter your token string e.g. 3i4htrou3fgffgyy45tysiduhg6779yho87rtiouhihrego7wery

To build docs locally

git clone https://github.com/digitalearthafrica/deafrica-training-workshop.git
cd deafrica-training-workshop/docs
conda create -c conda-forge -n deafrica-training-workshop pandoc
conda activate deafrica-training-workshop
pip install -r requirements.txt
make html
open _build/html/index.html

To include .rst snippets in notebooks

  • From the toolbar at the top of the notebook, change from Markdown to Raw
  • On the left panel, click the cogs icon and change the Raw NBConvert Format to ReStructured Text

Notes

Website generation

PDF generation without latex

  • To install: pip install rinohtype
  • To run from docs folder: sphinx-build -b rinoh . _build/rinoh

About

ARCHIVED DEC 2021 - Training material on how to use DE Africa data

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages