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

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


  Branch: refs/heads/releasebranch_8_0
  Home:   https://github.com/OSGeo/grass
  Commit: 245043d52fbadf700efa039e946856dade2b2fbe
      https://github.com/OSGeo/grass/commit/245043d52fbadf700efa039e946856dade2b2fbe
  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