diff options
author | sandydoo <hey@sandydoo.me> | 2022-12-07 14:39:26 +0000 |
---|---|---|
committer | sandydoo <hey@sandydoo.me> | 2022-12-07 14:39:26 +0000 |
commit | 3564228a10873061ee75d1278f3bc8c7ed1a1fa9 (patch) | |
tree | 0085604ea18b247ada86d18a608bf68c6fc99ef5 | |
parent | 926afb6f1c9bcca568eaf12fdd9d16c138a26136 (diff) |
nixos/make-options-doc: improve CommonMark formatting
Render the `type` attribute in a code block to match the rest of the attributes.
-rw-r--r-- | nixos/lib/make-options-doc/generateDoc.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nixos/lib/make-options-doc/generateDoc.py b/nixos/lib/make-options-doc/generateDoc.py index dffa8cd614012..1fe4eb0253add 100644 --- a/nixos/lib/make-options-doc/generateDoc.py +++ b/nixos/lib/make-options-doc/generateDoc.py @@ -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_*') |