Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information