PyQGIS icons cheatsheet generator#
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. ( 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!
Demonstration video of the QGIS plugin PyQGIS Resource Browser
Related contents#
- blog posts/tutorials (in French ):
- resources file in QGIS project: https://github.com/qgis/QGIS/blob/master/images/images.qrc
- Qt documentation: https://doc.qt.io/qt-5/resources.html
Development#
Requirements#
- Python 3.10+
- network connection authorized to github.com
- Material for Mkdocs Insiders (sponsorware) token set as environment variable
GH_TOKEN_MATERIAL_INSIDERS
-
dependencies for images processing listed on theme documentation. Typically, on Ubuntu:
Setup#
Typically on Ubuntu:
Cheatsheet#
Run the script:
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:
Build:
Serve locally:
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.