1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-25 18:46:32 +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:
sandydoo 2022-12-07 14:39:26 +00:00
parent 926afb6f1c
commit 3564228a10
No known key found for this signature in database
GPG key ID: D1A763BC84F34603

View file

@ -40,8 +40,10 @@ def generate_commonmark(options):
print(value['description']) print(value['description'])
print() print()
if 'type' in value: if 'type' in value:
print('*_Type_*:') print('*_Type_*')
print ('```')
print(value['type']) print(value['type'])
print ('```')
print() print()
print() print()
if 'default' in value: if 'default' in value: