-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite documentation #72
base: main
Are you sure you want to change the base?
Conversation
- Mention the possibility of future return values - Unify the documentation format of functions: - Function name in "code" font - Short introduction without references to parameter names - List of parameters with type and mandatory status, followed by a description - Return format as JSON (but tagged as yaml in MD file for better highlighting) followed by a description of the fields Signed-off-by: Daniel Sonck <[email protected]>
@tasleson I've done half of it as you might want to check whether my formatting changes are acceptable. I rather know ahead of time instead of doing it all and then do it all again. You can tell that I stopped at "Initiator operations" and yes, I will add the return values to the nfs as mentioned in #63. |
@dsonck92 Wow, all I was thinking was just update the existing to add the return value for nfs and document that dictionaries returned may have items added to them over time. I think the changes look good, although I am wondering if it would be better to not show the domain of values like |
@tasleson That's a good question, I was a bit undecided on this point. I write the type of the field as its value ( Yes I originally started out with the extra lines but while scrolling I discovered multiple formats, one of which that wasn't properly written to show properly after markdown. So after fixing this (seemingly old) format, I figured I could try to apply it to the rest. Yes, the other option is to just say "string" and let people read the description in the accompanying text, which already mentions the 2 cases and what can be done with them. |
I noticed you're using [
{
"name": string,
"size": number,
"free_size": number,
"uuid": string,
"type": string"domain[block|fs]",
},
] |
Yes the primary reason for using YAML is that it has a bit more freedom to use it to color the syntax while still conveying some meaning. Mainly as raw values like [
{
"name": "vol-1", // The name of the pool
"size": 2048, // The size of the pool
// ....
"type": "block", // Type of the pool, possible values: "block", "fs"
}
] Using |
@dsonck92 I like the |
Alright, then I will apply that to the rest then. I will see how far I can get this evening with the documentation. |
@tasleson just letting you know that I'm likely going to continue on this in the weekend of 15 Nov (maybe upcoming weekend) as I would finally have more time to work on my own things. |
Rewrite the documentation to reflect the recent changes and design decisions.
Closes: #63