Dynamic Form creation for QGIS with Python/PyQGIS #362
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Quick write-up of my own first steps with PyQGIS, interspersed with Matrix references and my usual colloquial writing.
Task list
tutorials/content/
index.md
. In case of an Rmarkdown tutorial I have knitted myindex.Rmd
toindex.md
(both files are pushed to the repo).yaml
header:authors
yaml tag, using[MY_AUTHOR_ID]
. An author information file exists in<tutorials>/data/authors/<author>.toml
.categories
to the YAML header and my category tags are from the list of categories.tags
(i.e. keywords) in the YAML header to improve the visibility of the new tutorial (see the tags listed in the tutorials website side bar).date
is in formatYYYY-MM-DD
and adjusted.Note that I suggest adding a
python
category with this PR.Previewing the pull request
Thanks to GitHub Actions, an artifact (=zip file) of the rendered website is automatically created for each pull request.
This provides a way to preview how these updates will look on the website, useful to contributors and reviewers.
Instructions to preview the updated website
Downloads/tutorials_preview
.http
sites on your local machine. One such option is theservr
package in R:& '\C:\Program Files\R\R-4.4.2\bin\Rscript.exe' -e "servr::httd('./tutorials_preview')" -p8887
(make sure to adjust the path to yourRscript.exe
; on Linux, simply useRscript -e [...]
).Note: for step 3, you can use any other simple HTTP server to serve the current directory, e.g. Python
http.server
:python -m http.server 8887 --bind localhost --directory path/to/tutorials_preview
Alternative: Locally Building the Site
Alternatively, you can build the entire site locally (see the README for instructions); the Hugo preview server will update changes on the fly.
This requires Hugo to be installed on your computer.