|
|
@ -45,12 +45,11 @@ def scan_all_keybinds(root_dir):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def render_dfhack_keybind(command) -> List[nodes.paragraph]:
|
|
|
|
def render_dfhack_keybind(command) -> List[nodes.paragraph]:
|
|
|
|
|
|
|
|
out = []
|
|
|
|
if command not in _KEYBINDS:
|
|
|
|
if command not in _KEYBINDS:
|
|
|
|
return []
|
|
|
|
return out
|
|
|
|
newnode = nodes.paragraph()
|
|
|
|
|
|
|
|
for keycmd, key, ctx in _KEYBINDS[command]:
|
|
|
|
for keycmd, key, ctx in _KEYBINDS[command]:
|
|
|
|
n = nodes.paragraph()
|
|
|
|
n = nodes.paragraph()
|
|
|
|
newnode += n
|
|
|
|
|
|
|
|
n += nodes.strong('Keybinding:', 'Keybinding:')
|
|
|
|
n += nodes.strong('Keybinding:', 'Keybinding:')
|
|
|
|
n += nodes.inline(' ', ' ')
|
|
|
|
n += nodes.inline(' ', ' ')
|
|
|
|
for k in key:
|
|
|
|
for k in key:
|
|
|
@ -61,7 +60,8 @@ def render_dfhack_keybind(command) -> List[nodes.paragraph]:
|
|
|
|
if ctx:
|
|
|
|
if ctx:
|
|
|
|
n += nodes.inline(' in ', ' in ')
|
|
|
|
n += nodes.inline(' in ', ' in ')
|
|
|
|
n += nodes.literal(ctx, ctx)
|
|
|
|
n += nodes.literal(ctx, ctx)
|
|
|
|
return [newnode]
|
|
|
|
out.append(n)
|
|
|
|
|
|
|
|
return out
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# pylint:disable=unused-argument,dangerous-default-value,too-many-arguments
|
|
|
|
# pylint:disable=unused-argument,dangerous-default-value,too-many-arguments
|
|
|
|