Giter Club home page Giter Club logo

deafrica-training-workshop's Introduction

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

deafrica-training-workshop's People

Contributors

eefaye avatar jcrattz avatar caitlinadams avatar nanaboamah89 avatar andrewdhicks avatar oyetkin avatar lewislw avatar cbur24 avatar mubea avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.