This repository contains the notebooks and Jupyterbook configuration for the Geospatial Python Tutorials website.
The website is a static website generated using the following technologies
- All the content is based on Markdown files and Jupyter notebooks.
- The HTML is generated using Jupyterbook.
- The webpages are hosted on Github Pages.
- Comments are powered by utterances.
git clone git@github.com:spatialthoughts/geopython-tutorials.git
cd geopython-tutorials
The following instructions have been tested for Linux/Mac systems. I prefer conda for environment management so the instructions use conda, but if you prefer virtualenv, you can use it instead as well.
Create a new environment named geopython-tutorials
and install dependencies. Optionally we also need make
to build the source files.
conda create --name geopython-tutorials
conda activate geopython-tutorials
conda install pip
conda install make
pip install -r requirements.txt
The homepage content is in the file introduction.md
. All other content is generated from the .ipynb
files in the notebooks
folder. The table of content is in the _toc.yml
file.
- Edit the corresponding notebook in the
notebooks/
folder using Jupyterlab/Colab.
- Add the
.ipynb
file in thenotebooks/
folder. - Edit the
_toc.yml
file and add the section for the new tutorial.
The Makefile
contains several rules to execute the commands to build the website.
After making changes, run the following to build the HTML pages and preview them.
make html
To push the changes to GitHub pages, run the following
make gh-pages
All the tutorials are available under a Creative Commons Attribution 4.0 International License