Add a tutorial
Add a tutorial
Publish your tutorial as its own site at osgeo.id/<name>/, keep it as your project, and have it listed here.
How it works
Every tutorial lives in its own repository in the osgeoid organisation on GitHub and is published with GitHub Pages. Because the organisation site (this site, from the repository osgeoid.github.io) uses the custom domain osgeo.id, GitHub serves every other Pages site of the organisation under that domain: a repository called qgis-dasar appears at https://osgeo.id/qgis-dasar/. GitHub’s documentation says the organisation site’s custom domain “will be used for all project sites owned by the same account” (About custom domains and GitHub Pages).
So a tutorial:
- has its own maintainer(s), issues and release pace;
- needs no change to this site’s code to go live, only a card on the Learn page;
- can use any tool that produces a static website. We recommend Quarto, which this site also uses and which renders Jupyter notebooks directly. Our tutorial template is a ready-made Quarto site to start from.
What we look for
- Open source geospatial tools: QGIS, GRASS, PostGIS, GDAL, GeoServer and the like, or the libraries around them.
- Useful in Indonesia: Indonesian data, places or problems where possible.
- Reproducible: a reader can follow it from a clean machine. Say which versions you used and where every dataset comes from.
- Open licence: for example CC BY 4.0 for text and MIT or GPL for code. State it in a
LICENSEfile. - A named maintainer who answers issues, or hands the tutorial on when they step back.
English, Bahasa Indonesia, or both are all welcome. A tutorial in one language is fine; a translation can come later.
Steps
- Propose it. Post a short outline (topic, tools, audience, language) on the mailing list, in the Telegram group, or as an issue on this site’s repository. This avoids two people writing the same thing.
- Get a repository. An owner of the
osgeoidorganisation creates the repository and gives you write access, or you transfer an existing repository of yours into the organisation. Either way, it can be created from the template. The repository name becomes the address, so choose it with care (see Naming). - Write and publish. With the template, follow Start from the template. With your own setup, build the site and turn on GitHub Pages in the repository settings (from a branch folder such as
docs/, or with a GitHub Actions workflow); for Quarto, setsite-url: https://osgeo.id/<repo>/in_quarto.yml. - Ask for a review. Another member works through the tutorial from scratch and reports where they got stuck. Fix what they found.
- Add the card. Open a pull request on
osgeoid.github.iothat adds an entry toen/learn/tutorials-list.ymlandid/learn/tutorials-list.yml(see The card). A maintainer renders the site and merges.
A tutorial can be listed before it is finished: leave out path and set status, and the card shows it as in preparation.
Start from the template
The tutorial template is a working bilingual tutorial site in the style of osgeo.id. You write chapters as Jupyter notebooks or plain pages; it handles the menus, the EN/ID switch, the checks and the publishing. Using it is optional. See the live example and the repository.
You need Git, conda (or mamba), and Quarto 1.11 or later.
On the template’s GitHub page, choose Use this template > Create a new repository, then clone your new repository.
Run the setup once. It asks for the title in both languages and the repository, and writes them everywhere they are needed. If you start in your own account and will transfer the repository later, answer
osgeoid/<repo>, so the links match its final address.python tools/init_tutorial.pyAdd
--remove-examplesto delete the two example chapters. You may want to read the second one first: Writing a chapter explains the house style.Create and activate the environment, then add the packages your chapters need to
environment.yml.conda env create -f environment.yml conda activate tutorialStart a chapter and preview the site while you write. The number is the chapter’s place in the tutorial: use
01if you removed the example chapters, or03if you kept them. Add--lang idto the first command to write in Bahasa Indonesia first.python tools/new_chapter.py 01 data "Getting the data" python tools/site.py previewIn the repository’s Settings > Pages, set Source to GitHub Actions once. After that, every push to
mainchecks and publishes the site.
The template’s README describes every part, and its contributing guide covers writing, translating and checking chapters.
Naming
- Lowercase words joined by hyphens, in the language of the tutorial:
qgis-dasar,pygrass-climate-analysis. - Do not reuse a name that is already a folder or page of this site, such as
en,id,assetsorsite_libs. GitHub’s documentation does not say which wins when a project site and a folder of the organisation site share a path, so avoid the clash.
The card
Each entry in en/learn/tutorials-list.yml (English) and id/learn/tutorials-list.yml (Bahasa Indonesia) becomes one card:
- title: "Climate analysis with PyGRASS"
description: >
One or two sentences: what the reader will be able to do at the end.
tools: [GRASS, Python, pygrass] # shown as tags
categories: [GRASS, Python] # used by the filter box
level: Intermediate # Beginner, Intermediate or Advanced
languages: "English, Bahasa Indonesia"
time: "About 6 hours"
maintainer: "Your Name"
path: https://osgeo.id/your-repo/ # leave out until it is published
repo: https://github.com/osgeoid/your-repo
status: "In preparation" # optional, shown as a badge
lang: en # en in en/learn/, id in id/learn/| Field | Required | Notes |
|---|---|---|
title |
yes | Name of the tutorial. |
description |
yes | What the reader will be able to do. |
tools |
yes | Software and packages, written as their projects write them. |
level |
yes | Beginner, Intermediate or Advanced (Pemula, Menengah, Mahir). |
languages |
yes | Languages the tutorial is available in. |
time |
recommended | Honest estimate for a first run through. |
maintainer |
yes | Who answers issues. |
path |
when live | Address of the tutorial site. |
repo |
recommended | Source repository. |
status |
optional | For example “In preparation” or “Being updated”. |
lang |
yes | en or id: sets the card’s labels. |
Inside the tutorial repository
A short checklist for the repository itself. The template starts you off with the README, the licences (MIT for code, CC BY 4.0 for text), an environment.yml and the link back to osgeo.id; the data notes and the package versions are yours to fill in.
README.md: what the tutorial teaches, who it is for, how to run it, who maintains it.LICENSE: the licence for text and code.- An environment file (
environment.yml,requirements.txtor similar) with versions. - Data: where each dataset comes from, under which licence, and how to download it. Do not commit large data files.
- A link back to osgeo.id so readers can find the rest of the community.
Questions? Ask on the mailing list or in the Telegram group.