Skip to content

Commit

Permalink
docs: add enum variant documentation for RON types
Browse files Browse the repository at this point in the history
- Add enum variant type to RON format documentation in files.nix
- Document enum type support across multiple sections
  • Loading branch information
HeitorAugustoLN committed Dec 23, 2024
1 parent d88ddee commit 5b3a5ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/files.nix
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
- `char`: The value is stored as a single character. (e.g. `'a'`).
- `map`: The value is stored as a map. (e.g. `{ "key" = "value" }`).
- `tuple`: The value is stored as a tuple. (e.g. `(1, 2, 3)`).
- `enum`: The value is stored as an enum variant.
- Named structs: A structured entry with a name identifier.
All values are serialized to RON format using `lib.cosmic.generators.toRON`.
Expand Down Expand Up @@ -91,6 +92,7 @@
- `char`: The value is stored as a single character. (e.g. `'a'`).
- `map`: The value is stored as a map. (e.g. `{ "key" = "value" }`).
- `tuple`: The value is stored as a tuple. (e.g. `(1, 2, 3)`).
- `enum`: The value is stored as an enum variant.
- Named structs: A structured entry with a name identifier.
All values are serialized to RON format using `lib.cosmic.generators.toRON`.
Expand Down Expand Up @@ -138,6 +140,7 @@
- `char`: The value is stored as a single character. (e.g. `'a'`).
- `map`: The value is stored as a map. (e.g. `{ "key" = "value" }`).
- `tuple`: The value is stored as a tuple. (e.g. `(1, 2, 3)`).
- `enum`: The value is stored as an enum variant.
- Named structs: A structured entry with a name identifier.
All values are serialized to RON format using `lib.cosmic.generators.toRON`.
Expand Down

0 comments on commit 5b3a5ca

Please sign in to comment.