mirror of
https://github.com/cp2k/cp2k.git
synced 2026-07-29 06:35:28 -04:00
Docs: Fix keywords with arbitrary number of values
This commit is contained in:
parent
214901717e
commit
fb643211e1
1 changed files with 1 additions and 1 deletions
|
|
@ -336,7 +336,7 @@ def render_keyword(
|
|||
|
||||
# Use Sphinx's py:data directive to document keywords.
|
||||
output += [f"```{{py:data}} {canonical_name}"]
|
||||
n_var_brackets = f"[{n_var}]" if n_var > 1 else ""
|
||||
n_var_brackets = f"[{n_var}]" if n_var > 1 else "[ ]" if n_var == -1 else ""
|
||||
if section_xref:
|
||||
output += [f":module: {section_xref}"]
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue