mirror of
https://github.com/MillironX/nfdocs-parser.git
synced 2024-11-24 09:49:56 +00:00
Add bolded text for parameter names
Signed-off-by: Thomas A. Christensen II <25492070+MillironX@users.noreply.github.com>
This commit is contained in:
parent
0b7d2df746
commit
7b9b9948cc
1 changed files with 3 additions and 2 deletions
|
@ -54,7 +54,7 @@ def params_to_table(type, params):
|
||||||
if "tuple" in param.keys():
|
if "tuple" in param.keys():
|
||||||
# Tuple title
|
# Tuple title
|
||||||
param_name_entry = nodes.entry()
|
param_name_entry = nodes.entry()
|
||||||
param_name_entry += nodes.Text("Tuple")
|
param_name_entry += nodes.strong(text="Tuple")
|
||||||
param_row += param_name_entry
|
param_row += param_name_entry
|
||||||
|
|
||||||
# Params table
|
# Params table
|
||||||
|
@ -74,7 +74,8 @@ def params_to_table(type, params):
|
||||||
# Parameter title
|
# Parameter title
|
||||||
param_name_entry = nodes.entry()
|
param_name_entry = nodes.entry()
|
||||||
if "name" in param.keys():
|
if "name" in param.keys():
|
||||||
param_name_entry += nodes.Text(f"{param['name']}({param['type']})")
|
param_name_entry += nodes.strong(text=param["name"])
|
||||||
|
param_name_entry += nodes.Text(f"({param['type']})")
|
||||||
else:
|
else:
|
||||||
param_name_entry += nodes.Text(param["type"])
|
param_name_entry += nodes.Text(param["type"])
|
||||||
param_row += param_name_entry
|
param_row += param_name_entry
|
||||||
|
|
Loading…
Reference in a new issue