[GRASS-git] [OSGeo/grass] 563797: utils/mkhtml.py: fix get and set addon manual page...

Tomas Zigo noreply at github.com
Sun Dec 26 08:06:13 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/OSGeo/grass
  Commit: 563797cd3bf0a8a394df11f92a9e7174b88851cd
      https://github.com/OSGeo/grass/commit/563797cd3bf0a8a394df11f92a9e7174b88851cd
  Author: Tomas Zigo <50632337+tmszi at users.noreply.github.com>
  Date:   2021-12-26 (Sun, 26 Dec 2021)

  Changed paths:
    M utils/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/grass8/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/grass8/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/grass8/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/
grass8/src/imagery/i.sentinel/i.sentinel.coverage.




More information about the grass-commit mailing list