Skip to content

Commit 1a9906d

Browse files
docs: Remove lightning- prefix from all RPCs
Changelog-None.
1 parent 98679aa commit 1a9906d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/scripts/sync-rpc-cmds.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def extract_rpc_commands(rst_content):
7070
commands = re.findall(
7171
r"\b([a-zA-Z0-9_-]+)" r"\s+<([^>]+)>\n", manpages_block.group(1)
7272
)
73-
return commands
73+
return [(re.sub(r"\blightning-", "", rpc_name), file_name) for rpc_name, file_name in commands]
7474
return []
7575

7676

@@ -102,7 +102,6 @@ def main():
102102
if commands_from_local:
103103
order = 0
104104
for name, file in commands_from_local:
105-
# print(f"{name}\t\t{file}")
106105
with open("doc/" + file) as f:
107106
body = f.read()
108107
publishDoc(Action.ADD if name in commands_to_add else Action.UPDATE, name, body, order, headers)

0 commit comments

Comments
 (0)