mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-19 07:59:24 +03:00
nixos/make-options-doc: improve CommonMark formatting
Render the `type` attribute in a code block to match the rest of the attributes.
This commit is contained in:
parent
926afb6f1c
commit
3564228a10
1 changed files with 4 additions and 2 deletions
|
@ -40,9 +40,11 @@ def generate_commonmark(options):
|
|||
print(value['description'])
|
||||
print()
|
||||
if 'type' in value:
|
||||
print('*_Type_*:')
|
||||
print('*_Type_*')
|
||||
print ('```')
|
||||
print(value['type'])
|
||||
print()
|
||||
print ('```')
|
||||
print()
|
||||
print()
|
||||
if 'default' in value:
|
||||
print('*_Default_*')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue