mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-06 21:34:00 -05:00
doc: Fix RPC source links to be proper with proper anchors
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user