Skip to content

Commit

Permalink
Set source code and history URL branch version dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
tmszi committed Dec 27, 2021
1 parent d6d5a84 commit 3ced08a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/mkhtml.py
Expand Up @@ -81,8 +81,8 @@ def decode(bytes_):
addons_url = ""
if grass_version != "unknown":
major, minor, patch = grass_version.split(".")
trunk_url = "https://github.com/OSGeo/grass/tree/releasebranch_7_8/"
addons_url = "https://github.com/OSGeo/grass-addons/tree/grass7/"
trunk_url = f"https://github.com/OSGeo/grass/tree/releasebranch_{major}_{minor}/"
addons_url = f"https://github.com/OSGeo/grass-addons/tree/grass{major}/"

header_base = """<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
Expand Down

0 comments on commit 3ced08a

Please sign in to comment.