g.extension: fix addon SOURCE_URL env var value for official GitHub addons #2936
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe the bug
Installed extension HTML manual page has wrong source code and history GitHub URL link.
Wrong is
SOURCE_URL
env var value, which is for every official addon https://github.com/OSGeo/grass-addons (correct URL for e.g. db.join addon should be https://github.com/OSGeo/grass-addons/tree/grass8/src/db/db.join):grass/scripts/g.extension/g.extension.py
Line 2091 in c0addd9
which is used inside mkhtml.py file (line 802)
grass/utils/mkhtml.py
Lines 791 to 804 in c0addd9
To Reproduce
Steps to reproduce the behavior:
g.extension db.join
$EDITOR $GRASS_ADDON_BASE/docs/html/db.join.html
Check if these URLs exists:
Expected behavior
Installed extension HTML manual page should have correct source code and history GitHub URL link.
e.g. db.join addon
Check if these URLs exists:
System description (please complete the following information):
Additional context
To be backported with #2895.