Open nashysolutions opened 2 years ago
Thanks for filing @nashysolutions! This is related to https://github.com/apple/swift-docc/issues/340#issuecomment-1197593562. Did you have thoughts on the Markdown syntax you'd use to opt into this behavior? Using the new @Options
/@GlobalOptions
directives could make sense: https://forums.swift.org/t/supporting-more-types-of-documentation-with-swift-docc/59725#options-1. A good next step here would be to create a small pitch in the forums for further discussion.
Feature Name
Enum Sorting
Description
The enum cases are listed in the documentation in the order in which they are specified.
Motivation
I am documenting a package that calculates a poker hand from a selection of playing cards, and I have a list of possible hands declared as an enum.
I have purposely listed the hands in order of rank, because it reads better (no other reason).
It would be nice if that order was maintained in the documentation.
Importance
Not important.
Alternatives Considered
No idea.