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
61
votes
7 answers

Can Swagger autogenerate its yaml based on existing express routes?

I inherited an existing API and I would like to document it with swagger, but I don't yet know the full scope of it. Can Swagger (or another middleware/tool) auto-magically generate the yaml (for swagger) based on the existing express routes? For…
Manatax
  • 4,083
  • 5
  • 30
  • 40
60
votes
2 answers

When documenting in Roxygen: How do I make an itemized list in @details?

What is the appropriate syntax to add an itemized list to roxygen2, for instance, in the @details section? Can I create a latex list environment? It seems that line breaks are simply ignored, i.e. #' @details text describing parameter inputs in…
cboettig
  • 12,377
  • 13
  • 70
  • 113
60
votes
2 answers

Multiple functions in one .Rd file

Short version: Can I emulate the documentation of Normal in package stats using roxygen? Long version: I'm working on a package and was trying make the documentation more readable by having a number of functions with common inputs/parameters…
dardisco
  • 5,086
  • 2
  • 39
  • 54
57
votes
21 answers

Taking over a project - What should I ask the previous programmer?

I'm taking over a development of a commercial web site. This site was developed over two years by another programmer. It's mostly a one-man job (maintain and expand the site). I'll have a 2-3 days transition period when the other programmer will…
Thierry Roy
  • 8,452
  • 10
  • 60
  • 84
57
votes
5 answers

Visual Studio with DoxyGen for documentation, or should we use something else?

We are currently using DoxyGen to document code written in C/C++, PHP and Java. To have a consistent environment it would be nice to use it for C# documentation as well. However we are wondering: Do you see any advantages in the generated…
Deleted
  • 4,067
  • 6
  • 33
  • 51
56
votes
7 answers

Generating Javascript documentation

I'm looking for a way to generate documentation automatically from my Javascript project. Anyone know how can I do this? As far as I know, there're some tools like JSDoc but I want to know your opinion, your best choice and why. Thanks! EDIT: just…
Fran Verona
  • 5,438
  • 6
  • 46
  • 85
56
votes
4 answers

javadoc: @version and @since

Is there a reason to include both @version and @since as part of a class? They seem to be mutually exclusive. Also, what does %I% and %G% mean, and how to set/use them? @version %I%, %G%
Sasha
55
votes
5 answers

jQuery UI Color Picker

I have heard that jQuery UI includes a Color Picker but could find little documentation regarding it. Does it exist? Any decent documentation on how to implement it? I found this: http://docs.jquery.com/UI/Colorpicker But…
Damien
  • 13,927
  • 14
  • 55
  • 88
55
votes
10 answers

Generating HTML documentation from WSDL

What are your approaches to generating some sort of human-readable documentation from WSDLs? In the past I've used WSDL viewer (by Tomi Vanek) and I'm happy with the results, but I'm interested in any possible alternatives. I've also heard of x3sp,…
Igor Brejc
  • 18,714
  • 13
  • 76
  • 95
55
votes
4 answers

RESTful API Documentation

I'm going to design a RESTful API soon, thus I need to describe it in order to enable other people to start implementing clients using it. I've looked around a bit, but unfortunately, I've not found any standardized form of describing web-based…
b_erb
  • 20,932
  • 8
  • 55
  • 64
53
votes
4 answers

Should I use @return self, this or the current class?

I have a method that return the current object, how do I document this? /** * set something * * @return this */ public function setSomething(){ // ... return $this; } Or should I do @return self or @return…
lucaswxp
  • 2,031
  • 5
  • 23
  • 34
52
votes
1 answer

KDoc: Insert code snippet

How do I insert a code snippet in KDoc, Kotlin's default documentation tool? In Java, I can use the following: /** * Example usage: * *
 * @JavaAnnotation
 * public void foo() {
 *     // Code
 * }
 * 
 * 
F. George
  • 4,970
  • 4
  • 20
  • 38
51
votes
16 answers

Offline documentation for various programming languages?

I recently found this: http://php.net/get/php_manual_en.chm/from/a/mirror. It's a .chm file that contains all the documentation for PHP which you can normally find on their site. Handy for offline use. I'm wondering, does anybody know of similar…
KdgDev
  • 14,299
  • 46
  • 120
  • 156
51
votes
5 answers

Documenting C++/CLI library code for use from c# - best tools and practices?

I'm working on a project where a c++/cli library is being used primarily from a c# application. Is there any way to make the code comments in c++/cli visible to c# intellisence within visual studio? Assuming there isn't, what would be the best way…
Hrvoje Prgeša
  • 2,051
  • 5
  • 21
  • 36
50
votes
7 answers

Writing Maintainable Event-Driven Code

I have just recently started playing with event-driven architectures, coming from a pretty standard object-oriented mindset. The first thing I noticed was that the difficulty in understanding and tracing through programs seems to increase…