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
33
votes
6 answers

How can I generate JavaScript API documentation for GitHub Pages

There are a lot of great options for generating API documentation for other languages, but I have yet to find a solution for my JavaScript API that I want to host on GitHub Pages. It seem that I can use JSDoc3 but I would need to create a custom…
33
votes
3 answers

A doxygen eclipse plugIn automatically generating stub documentation?

I'am looking for an eclipse-plugin for doxygen code documentation. I have found the eclox-plugIn ( http://home.gna.org/eclox/ ). I would like find out, how can it automatically generate a "empty" doxygen comment, which could be filled out later or…
LonliLokli
  • 1,295
  • 4
  • 15
  • 24
33
votes
2 answers

How to set an input directory for Doxygen?

I have a directory in which all source and header files are saved. I would like to run Doxygen to generate documentation for these source code. However, I do not want to change anything in this directory (in particular I cannot add sub directories…
Roman
  • 124,451
  • 167
  • 349
  • 456
32
votes
12 answers

How do you read JavaDoc?

What tools/websites do you use to read JavaDocs? I currently use Firefox with 20+ tabs open when working on a J2EE project to have all the documentation available which is not very usable, is eating too much memory and is not searchable. What I…
jrudolph
  • 8,307
  • 4
  • 32
  • 50
32
votes
2 answers

Doxygen not documenting static classes?

I've been recently using Doxygen for a project of mine. I'm having a problem though that it won't generate the proper documentation for a C# static class. Is there some option I have to enable? My complete source code for the relevant class is…
Earlz
  • 62,085
  • 98
  • 303
  • 499
32
votes
2 answers

RESTful web service API documentation with Sphinx

What's the best way to markup methods/URLs for a RESTful webservice using ReST/Sphinx? Is there a default domain that's suitable for marking up URLs with their possible parameters, HTTP methods, headers and body content? Something along the lines…
deceze
  • 510,633
  • 85
  • 743
  • 889
32
votes
6 answers

Where should I put documentation comments?

In the header file containing the forward declarations, or in the .cpp file containing the implementations, like this? //header.h /* About foo() */ void foo(); /* About bar() */ int bar(); /* About A */ class A { public: /* About A's constructor…
wrongusername
  • 18,564
  • 40
  • 130
  • 214
32
votes
4 answers

auto-document exceptions on methods in C#/.NET

I would like some tool, preferably one that plugs into VS 2008/2010, that will go through my methods and add XML comments about the possible exceptions they can throw. I don't want the or other XML tags to be generated for me because I'll…
Sarah Vessels
  • 30,930
  • 33
  • 155
  • 222
32
votes
6 answers

Javadoc template generator

I have a large codebase without Javadoc, and I want to run a program to write a skeleton with the basic Javadoc information (e.g., for each method's parameter write @param...), so I just have to fill the gaps left. Anyone know a good solution for…
Alotor
  • 7,407
  • 12
  • 38
  • 36
32
votes
4 answers

Creating html doc from postman collection

I've developed a pretty extense API, and I have it on Postman, which works pretty nice. Now I have to generate an html doc to keep it versioned inside /docs along with my sources. Is there a tool or a way to achieve this? I really don't want to…
danielrvt
  • 10,177
  • 20
  • 80
  • 121
31
votes
3 answers

Why Doesn't jQuery use JSDoc?

Or do they and it's just not in the source? I'd really like to get something that will stop js-doc-toolkit from freaking out each time it parses jQuery. It also means I can't properly document any code using jQuery as a dependency without at least…
hlfcoding
  • 2,532
  • 1
  • 21
  • 25
31
votes
8 answers

Is 100% code coverage a really good thing when doing unit tests?

I always learned that doing maximum code coverage with unit tests is good. I also hear developers from big companies such as Microsoft saying that they write more lines of testing code than the executable code itself. Now, is it really great?…
Arseni Mourzenko
  • 50,338
  • 35
  • 112
  • 199
31
votes
1 answer

How to show scala doc from Java Editor in Eclipse?

I'm using the Akka Java API together with Eclipse (Kepler Service Release 2) + Maven. I can jump right into the scala class from the Java Editor, but I'm not able to see the documentation on hover (see example picture). Is there any way to include…
Flori
  • 671
  • 7
  • 12
31
votes
6 answers

Where can I browse the sourcecode for libc online (like doxygen)

Sometimes I want to look up the implementations of functions in the stdlib, I've downloaded the sourcecode, but it's quite messy. Just greping is not really suitable because of the many hits. Does anyone know a webpage doxygen style that has the…
monkeyking
  • 6,670
  • 24
  • 61
  • 81
31
votes
12 answers

How do you document your database structure?

Many database systems don't allow comments or descriptions of tables and fields, so how do you go about documenting the purpose of a table/field apart from the obvious of having good naming conventions? (Let's assume for now that "excellent" table…
Anders Sandvig
  • 20,720
  • 16
  • 59
  • 73