[GRASS-git] [OSGeo/grass] c35c3a: utils/mkhtml.py: fix get and set addon manual page...
Tomas Zigo
noreply at github.com
Sun Dec 26 09:36:57 PST 2021
Branch: refs/heads/releasebranch_7_8
Home: https://github.com/OSGeo/grass
Commit: c35c3a189e5b2ad4511d28de3148e51b2822256c
https://github.com/OSGeo/grass/commit/c35c3a189e5b2ad4511d28de3148e51b2822256c
Author: Tomas Zigo <tomas.zigo at slovanet.sk>
Date: 2021-12-26 (Sun, 26 Dec 2021)
Changed paths:
M tools/mkhtml.py
Log Message:
-----------
utils/mkhtml.py: fix get and set addon manual page source and history URL link (#1892)
During g.extension compile (make command) addon, SOURCE_URL (which is addon
URL for downloading) global variable is setted, e.g. for i.sentinel addon is
SOURCE_URL=https://github.com/OSGeo/grass-addons/branches/grass7/src/imagery/
i.sentinel.
mkhtml.py script is runned and handle SOURCE_URL.
Next is find addon (get_addon_path() function) in GRASS GIS GitHub official addon
repository and return addon path e.g. for i.sentinel.coverage is addon path
/src/imagery/i.sentinel/i.sentinel.coverage.
Create final URL e.g. for i.sentinel.coverage url_source=https://github.com/OSGeo/
grass-addons/branches/grass7/src/imagery/i.sentinel/i.sentinel.coverage.
For addon source code URL e.g. i.sentinel.coverage replace in url_source var, branches
string with tree string https://github.com/OSGeo/grass-addons/tree/grass7/src/imagery/
i.sentinel/i.sentinel.coverage.
For addon source code history URL e.g. i.sentinel.coverage replace in url_source var,
branches string with commits string https://github.com/OSGeo/grass-addons/commits/
grass7/src/imagery/i.sentinel/i.sentinel.coverage.
More information about the grass-commit
mailing list