Questions tagged [documentation]

THIS TAG IS FOR DOCUMENT GENERATORS ONLY. Include language and/or SDE tag as well. DO NOT USE to ask for links to documentation or tools, or to critique vendor documentation.

Use the tag for questions related to self-documenting code and documentation generators.

Basic definitions

  • Software documentation is written text or illustration that accompanies computer software or is embedded in the source code. It either explains how it operates or how to use it, and may mean different things to people in different roles.Wikipedia

  • A documentation generator is a programming tool that generates software documentation intended for programmers or end users, or both, from a set of specially commented source code files, and in some cases, binary files.Wikipedia

Related tags

Possible synonyms:

Substitute these more specific tags for where possible:

"Documentation" topics on other SE sites

Questions about how documentation fits within the software development process are off-topic on StackOverflow, but are on-topic on Software Engineering.

Writing Stack Exchange has tags for Technical Writing, API Documentation and Software Tools, with a focus on the craft of professional writing.

Useful links

Off-Topic Questions

Remember that the following types of questions are off-topic, and subject to being closed and deleted:

  • Where is the documentation for... ?
  • What is the best way to document... ?
  • Is there a tool to help document... ?
  • Is this documentation correct?
4700 questions
1397
votes
27 answers

How do I create multiline comments in Python?

How do I make multi-line comments? Most languages have block comment symbols like: /* */
Dungeon Hunter
  • 19,827
  • 13
  • 59
  • 82
1135
votes
6 answers

What are the most common Python docstring formats?

I have seen a few different styles of writing docstrings in Python, what are the most popular styles?
Noah McIlraith
  • 14,122
  • 7
  • 31
  • 35
1013
votes
20 answers

#pragma mark in Swift?

In Objective C, I can use #pragma mark to mark sections of my code in the symbol navigator. Since this is a C preprocessor command, it's not available in Swift. Is there a stand-in for this in Swift, or do I have to use ugly comments?
Arbitur
  • 38,684
  • 22
  • 91
  • 128
308
votes
20 answers

Best Tips for documenting code using doxygen?

My team is starting to document our C code using doxygen, paying particular attention to our public API headers. There appears to be a lot of flexibility and different special commands in doxygen, which is great, but it's not clear what's a good…
Andrew Johnson
  • 7,277
  • 4
  • 23
  • 27
270
votes
44 answers

What is self-documenting code and can it replace well documented code?

I have a colleague who insists that his code doesn't need comments, it's "self documenting." I've reviewed his code, and while it's clearer than code which I've seen others produce, I still disagree that self-documenting code is as complete and…
Adam Davis
  • 91,931
  • 60
  • 264
  • 330
235
votes
9 answers

How to document a method with parameter(s)?

How to document methods with parameters using Python's documentation strings? PEP 257 gives this example: def complex(real=0.0, imag=0.0): """Form a complex number. Keyword arguments: real -- the real part (default 0.0) imag -- the…
David Andreoletti
  • 4,485
  • 4
  • 29
  • 51
227
votes
3 answers

pandas resample documentation

So I completely understand how to use resample, but the documentation does not do a good job explaining the options. So most options in the resample function are pretty straight forward except for these two: rule : the offset string or object…
Ryan Saxe
  • 17,123
  • 23
  • 80
  • 128
225
votes
2 answers

What to put in a python module docstring?

Ok, so I've read both PEP 8 and PEP 257, and I've written lots of docstrings for functions and classes, but I'm a little unsure about what should go in a module docstring. I figured, at a minimum, it should document the functions and classes that…
user297250
196
votes
4 answers

What are the new documentation commands available in Xcode 5?

One of Xcode 5's new features is the ability to document your own code with a special comment syntax. The format is similar to doxygen, but appears to only support a subset of those features. Which commands are supported, and which ones aren't? Do…
Senseful
  • 86,719
  • 67
  • 308
  • 465
186
votes
1 answer

How to specify an array of objects as a parameter or return value in JSDoc?

In JSDoc, the best documentation I can find shows to use the following if you have an array of a specific type (such as an array of strings) as: /** * @param {Array.} myStrings All my awesome strings */ function blah(myStrings){ …
Ray
  • 40,256
  • 21
  • 101
  • 138
174
votes
4 answers

Using javadoc for Python documentation

I am currently beginning with Python and I have a strong PHP background and in PHP I have took the habit of using javadoc as a documentation template. I was wondering if javadoc has its place as docstring documentation in Python. What are the…
JF Dion
  • 4,014
  • 2
  • 24
  • 34
171
votes
4 answers

How to document class attributes in Python?

I'm writing a lightweight class whose attributes are intended to be publicly accessible, and only sometimes overridden in specific instantiations. There's no provision in the Python language for creating docstrings for class attributes, or any sort…
intuited
  • 23,174
  • 7
  • 66
  • 88
160
votes
9 answers

How to use @link and @code in kotlin kDoc

I'm trying to document a method and trying to use @link and @code as in JavaDoc. I know in kotlin there is a kDoc but I can't find them or at least something similar.
humazed
  • 74,687
  • 32
  • 99
  • 138
158
votes
8 answers

How to document thrown exceptions in c#/.net

I am currently writing a small framework that will be used internally by other developers within the company. I want to provide good Intellisense information, but I am not sure how to document thrown exceptions. In the following example: public void…
Arnold Zokas
  • 8,306
  • 6
  • 50
  • 76
143
votes
5 answers

FFmpeg C API documentation/tutorial

I am trying to find documentation to use the FFmpeg C API. It seems that only command line documentation is available. Is there any good documentation/tutorials/links available?
fvisticot
  • 7,936
  • 14
  • 49
  • 79
1
2 3
99 100