Skip to content

Script and tooling to convert QGIS embedded icons into a searchable website. Meant to be useful during QGIS plugin development (PyQGIS).

License

Notifications You must be signed in to change notification settings

geotribu/pyqgis-icons-cheatsheet

Folders and files

NameName
Last commit message
Last commit date
Apr 1, 2024
Feb 2, 2023
Feb 2, 2023
Feb 1, 2023
Mar 19, 2023
Jan 6, 2025
Feb 1, 2023
Apr 18, 2023
Dec 10, 2024
Dec 10, 2024
Feb 1, 2025

Repository files navigation

PyQGIS icons cheatsheet generator

πŸš€ Build & publish

Code style: black flake8 Imports: isort pre-commit pre-commit.ci status

Script to convert a remote QRC (Qt Resources Collection files) into a markdown table to preview images.

This project covers QGIS project and generates a cheatsheet published on https://geotribu.github.io/pyqgis-icons-cheatsheet/.

Credits

Author: Julien M. (:octopus: Guts on GitHub, 🐦 GeoJulien on Twitter) for Geotribu collaborative website.

Code under MIT license.
Content and methodolgy under Attribution-ShareAlike 4.0 International (CC BY-SA 4.0).
Website icon by Arunmozhi, CC BY-SA 4.0 https://creativecommons.org/licenses/by-sa/4.0, via Wikimedia Commons.

Related plugin

There is also a plugin that allow to browse resources right into QGIS. Don't miss it!

demo_qgis_plugin_resource_browser.webm

Related contents


Development

Requirements

Setup

Typically on Ubuntu:

python3 -m venv .venv
source .venv/bin/activate
python -m pip install -U pip setuptools wheel
python -m pip install -U -r requirements.txt
pre-commit install

Cheatsheet

Run the script:

python qrc_preview_in_md.py

The output markdown page is located at docs/index.md, overriding the version pushed as project has been started.

Website

Copy the README.MD into the docs folder:

cp README.md docs/credits.md

Build:

mkdocs build

Serve locally:

mkdocs serve

Open your browser on: http://localhost:8000


Deployment

The website is monthly regenerated and deployed on GitHub Pages using GitHub Actions. For more details, see the deploy.yml workflow.