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
37
votes
2 answers

How to document all exceptions a function might throw?

If you have a public function which may throw an exception which uses other (private or public) helper functions which can also throw exceptions I think you should document what exceptions the public function can throw and this includes exceptions…
rve
  • 5,897
  • 3
  • 40
  • 64
37
votes
5 answers

Documenting overloaded methods with the same XML comments

Say I have this constructor: /// /// Example comment. /// public SftpConnection(string host, string username, string password, int port) {...} which has these overloads: public SftpConnection(string host, string username,…
Nobody
  • 4,731
  • 7
  • 36
  • 65
37
votes
3 answers

.NET xml docs - inheriting documentation

NDoc has an XML element inheritdoc which allows you to inherit documentation of a member from the parent class (or an implemented interface). However, Visual Studio (i.e. the C# compiler) does not understand this tag and complains about the…
petr k.
  • 8,040
  • 7
  • 41
  • 52
37
votes
3 answers

What tools are available to auto-produce documentation for a REST API written in Flask?

I'm looking for a quick way to auto produce REST API docs from a Flask REST API I've written. Does anyone know of tools that can do this and how I would markup the code?
36
votes
1 answer

Are docstrings for internal functions (python) necessary?

In python we designate internal function/ private methonds with an underscore at the beginning. Should these functions be documented with docstrings(is it required?)? (the formal documentation i mean, not the one helping the code-reader to…
0xc0de
  • 8,028
  • 5
  • 49
  • 75
36
votes
8 answers

Inherit documentation in C#?

From Java and Eclipse I'm used to @inheritDoc that allows to use the same documentation as in the base class/method. How can I accomplish something similar in C# and Visual Studio 2010?
RoflcoptrException
  • 51,941
  • 35
  • 152
  • 200
36
votes
6 answers

download windows API reference (MSDN) for offline use

I would like to have a windows API reference document available offline. MSDN is fine, but I also need this kind of information when I don't have access to internet. pdf, chm, help (for emacs) would be fine. Surely I am not the first person to want…
Gauthier
  • 40,309
  • 11
  • 63
  • 97
36
votes
17 answers

What tools does your team use for writing user manuals?

Basic requests are: human readable / text format (for easy version control) online (for collaboration) easy formatting (markdown ok, html is too much) strict formatting (so authors don't invent new types of titles, bullets etc.) exportable to PDF,…
David Vidmar
  • 3,042
  • 6
  • 29
  • 35
36
votes
4 answers

How do I link between markdown documents in doxygen?

I have a project with a set of markdown pages that are interlinked with links such as [Go to this page](subdir/MyOtherPage.md) The pages all get picked up by doxygen and appear in the output, but the links are not altered to point to their new html…
izb
  • 50,101
  • 39
  • 117
  • 168
35
votes
7 answers

What are the C# documentation tags?

In C# documentation tags allow you to produce output similar to MSDN. What are a list of allowable tags for use inside the /// (triple slash) comment area above classes, methods, and properties?
Kevin Driedger
  • 51,492
  • 15
  • 48
  • 55
35
votes
5 answers

How to localize the documentation of a .NET library

I have an open-source project (here) whose documentation is currently in French. The documentation is generated from XML comments in code, using Sandcastle. Now I would like to translate the documentation to English and provide documentation in both…
Thomas Levesque
  • 286,951
  • 70
  • 623
  • 758
35
votes
1 answer

What is co_names?

The description for co_names in the inspect module reads: tuple of names of local variables However in practice it appears that co_names is a tuple of global variable names while co_varnames is a tuple of local variable names (and argument names).…
Alex
  • 18,484
  • 8
  • 60
  • 80
35
votes
1 answer

Does Microsoft SkyDrive have an API?

So with the recent news that Microsoft Skydrive is going to get bumped to 25GB of storage per account, does anyone know if SkyDrive has an API? (And if so, where are the docs?)
Dan Esparza
  • 28,047
  • 29
  • 99
  • 127
35
votes
4 answers

Slate vs Swagger - Which is better and which have more options?

I have to document my API's. I have to use any one of them Slate Or Swagger. I want to know which one have more options, pros and cons, which one is better.
Sariban D'Cl
  • 2,197
  • 2
  • 28
  • 42
35
votes
4 answers

How to document object-oriented MATLAB code?

I'm writing a sizable application using object-oriented MATLAB, and this has gotten me thinking about how to document the code. If this was C, I would use Doxygen. For Java, I'd use JavaDoc. Both have mostly agreed-upon standards for how class and…
jjkparker
  • 27,597
  • 6
  • 28
  • 29