mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 22:57:59 -05:00
doc: Print rpc source links below method before comment
This commit is contained in:
@@ -110,12 +110,11 @@ def main(path):
|
|||||||
for m in methods:
|
for m in methods:
|
||||||
anchor = m["method"].replace(".", "").replace("/", "").lower()
|
anchor = m["method"].replace(".", "").replace("/", "").lower()
|
||||||
print(f"### `{m['method']}`\n")
|
print(f"### `{m['method']}`\n")
|
||||||
|
|
||||||
if m["comment"]:
|
|
||||||
print(f"{m['comment']}\n")
|
|
||||||
|
|
||||||
ghlink = f"https://codeberg.org/darkrenaissance/darkfi/src/branch/master/{path.replace('../', '')}#L{m['line']}"
|
ghlink = f"https://codeberg.org/darkrenaissance/darkfi/src/branch/master/{path.replace('../', '')}#L{m['line']}"
|
||||||
print(f'<sup><a href="{ghlink}">[source]</a></sup>\n')
|
print(f'<sup><a href="{ghlink}">[source]</a></sup>\n')
|
||||||
|
|
||||||
|
if m["comment"]:
|
||||||
|
print(f"{m['comment']}\n")
|
||||||
|
|
||||||
print("**Request:**\n")
|
print("**Request:**\n")
|
||||||
print("```json")
|
print("```json")
|
||||||
|
|||||||
Reference in New Issue
Block a user