-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Develop Documentation Guidelines #1575
Comments
A few references which we can use to develop our own guidelines: http://www.monperrus.net/martin/how-to-write-good-API-documentation |
I definitely think that a very short bit of example code should be included just to see the basic usage of the method and a short clear explanation of the parameters. Also a string possibly somewhere at the top of the needed "#using" statement. |
Putting sample code into the inline reference docs is pretty hard to do, but I agree that examples are important. At the very least the reference docs could link to examples of use that can be shared for multiple methods. I just don't know how that would work in the C# XML doc format. |
Well I'm not to sure how you would feel about adding samples individually per page, if doing it through the wiki (which would be a hell of a job), but I think that's the only way to get clearly defined examples. But yeah I don't think there would be any way to add examples inline and still keep code "cleanliness." |
I have to agree with @tomspilman about being able to supply useful sample code in the XML summary on a method. There are two segments of code in MonoGame. One is the low level platform code and the other is the XNA interface code. The XNA interface code should not require extensive documentation since it has a broad internet following already. The low level code will only be interfaced with "expert" level programmers who will be reading code rather than using a binary distro. For those reasons, I don't think we really need any code samples in the XML summaries. Just make sure the algorithm in the method is documented and the parameters are clearly documented with boundary conditions. |
Very true, no point in righting hundreds of more lines of text when most is already documented. |
Miguel would like us to use monodoc for documentation. We can import the |
I'm going to address this soon. Will add a README.md into the new Documentation folder which will contain instructions on how to help work on the docs as well as some examples of good and bad docs. |
Took a first stab at the guidelines... https://github.com/mono/MonoGame/blob/develop/Documentation/README.md ... could use some feedback on it. |
Looks like a good start, I don't see any issues with what's in there so far :) |
Thanks! |
We need to develop a set of guidelines for users helping with MonoGame API reference documentation.
The guidelines should include some simple bullet points as to things documentation writers should address in class, method, and parameter docs.
It should also include examples of bad and good docs which illustrate what we want to see and what we don't want to see in the MonoGame docs.
The guide should be maintained in the wiki.
The text was updated successfully, but these errors were encountered: