mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
A new script then parses these json help files into the html help contents, in a standardised manner. Previously, the function help was a bunch of different formats and structures. Now, a custom stylesheet can be applied (and later tweaked!) to format these help. Eg, this commit colors variables and function names in the syntax section for greater readability.
9 lines
510 B
Plaintext
9 lines
510 B
Plaintext
{
|
|
"function": "get_feature",
|
|
"description": "Returns the first feature of a layer matching a given attribute value.",
|
|
"arguments": [ {"arg":"layer","description":"layer name or ID"},
|
|
{"arg":"attribute","description":"attribute name"},
|
|
{"arg":"value","description":"attribute value to match"}],
|
|
"examples": [ { "expression":"get_feature('streets','name','main st')", "returns":"first feature found in \"streets\" layer with \"main st\" value in the \"name\" field"}]
|
|
}
|