Hello everyone,
I was looking at ways to make CLI documentation better with Swift DocC. I found something that made me think. I want to hear what you think about it before I do anything else.
Now commands usually show all flags on the same page. One thing we could do is let each flag have its page with a link that always works. This would make it easy to go to a specific flag and add more documentation for each flag.
This might not be all good. If a lot of flags only have information, having separate pages could mean we end up with a lot of pages that are mostly empty. The command page would still need to list all the flags so people can find them.
So it seems like we have an option:
- Only document flags on the command page.
- Make pages for flags with links that always work.
- Let developers choose how they want to do it.
Before we decide on anything, I want to ask you:
- Do you think each flag should have its own page?
- Should they just be on the command page?
- If both ways are good, would it be helpful to be able to choose which way we want to do it?
- I would like to hear how you like to look at CLI documentation. If having separate pages for flags would be helpful in real life.
I would like you all to answer based on your experiences. I will definitely add in my proposal that while implementing a better solution, I am leaning more towards not making lots of empty files.
So, if you can also suggest any other better structure that you would like to see, that would be awesome.
Thanks!