doc: Fix RPC source links to be proper with proper anchors

This commit is contained in:
x
2026-01-01 16:15:40 +00:00
parent 8676007c99
commit d56580bd9e

View File

@@ -110,7 +110,7 @@ def main(path):
for m in methods:
anchor = m["method"].replace(".", "").replace("/", "").lower()
ghlink = f"https://codeberg.org/darkrenaissance/darkfi/src/branch/master/{path.replace('../', '')}#L{m['line']}"
print(f"### `{m['method']}` <sup><a href=\"{ghlink}\">[source]</a></sup>\n")
print(f"### `{m['method']}` <sup><a href=\"{ghlink}\">[source]</a></sup> {{#{anchor}}}\n")
if m["comment"]:
print(f"{m['comment']}\n")