Skip to content

GispoCoding/foss4g_kosovo_2023_workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workshop repository

Welcome to the repository for the workshop on "Building PostGIS-enabled Enterprise GIS Workflows with QGIS." This workshop was originally presented at FOSS4G 2023 in Prizren, Kosovo.

Workshop Materials

The workshop materials are composed of slides and exercises, which you can access via the github pages link of this repository.

Feel free to explore the materials and follow along with the workshop content at your own pace. If you have any questions or need further assistance, please don't hesitate to reach out.

License

The content of this repository is licensed under the CC BY-ND 4.0.

Repository configuration

After creating a new repository from this template, two steps are required to publish the course materials online.

First, add a new repository secret to allow GitHub to automatically render and commit the materials. In order to do this, you need to have a GitHub access token with repo scope. After generating an access token, add a new repository secret in the newly created repository by clicking Settings - Secrets - New repository secret. Create a new secret with the name ACCESS_TOKEN, paste in your access token to the value field and click Add secret.

Second, publish the new repository on GitHub pages. In the new repository, click on Settings - Pages. Under the Source section, Select the main branch, choose the /docs root directory, and click Save. GitHub will provide you with an URL where the course materials are automatically published after rendering.

Editing content

The course materials are written using R Markdown and rendered to HTML using Bookdown. Editing the .Rmd files triggers a GitHub workflow that renders the materials to the docs/ directory. See the Bookdown documentation for instructions on Rmd syntax.

You can also render locally with Docker using the render.sh (render.ps1 on Windows) script. For Windows, you may need to enable script support first. Open Powershell as an administrator and run the command Set-ExecutionPolicy RemoteSigned.

Rendering

The index.Rmd file is a special file that always gets rendered first Other Rmd files get rendered in alphabetic order to separate pages. Use the YAML header section (separated by ---) of index.Rmd to define a author, title, and abstract for the materials.

The HTML is rendered using custom HTML and CSS templates defined in the index.Rmd YAML header. By default, these are src/custom.html and src/custom.css. Edit the template files to change the layout and appearance of the output.

Always preview the affect of changes to template files before committing changes. This can be done by rendering the output HTML locally using render.sh. After rendering, navigate to the out directory, start a http server (python -m http.server), and open http://localhost:8000.