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
136
votes
3 answers

How to create multiple levels of indentation in Javadoc?

Suppose, that as part of documenting your code (Javadoc) you want to indicate that the relationships between elements using deep indentation. How can I create a nested list as: some element some other element yet some other element
James Raitsev
  • 92,517
  • 154
  • 335
  • 470
127
votes
1 answer

How can I reference the value of a final static field in the class?

Using JavaDoc, how can I reference the value of a final static field in the class? I want the ??? in this example replaced by the value of the field STATIC_FIELD. /** * This is a simple class with only one static field with the value ???. …
Simon
  • 4,103
  • 7
  • 28
  • 53
124
votes
26 answers

Is a successor for TeX/LaTeX in sight?

TeX/LaTeX is great, I use it in many ways. Some of its advantages are: it uses text files, this way the input-files can be diffed and many tools exist to work with text it is very flexible it has a stable layout: if I change something at the start…
Mnementh
  • 50,487
  • 48
  • 148
  • 202
119
votes
4 answers

How to interpret function parameters in software and language documentation?

Is there a standard to interpret the syntax of function interfaces in API documentations and if yes, how is it defined? Here is an example on how to change the color of an item the JavaScript scripting guide for Photoshop for the "fillColor"…
dbonneville
  • 2,079
  • 4
  • 19
  • 26
117
votes
8 answers

Where to put the doxygen comment blocks for an internal library - in H or in CPP files?

The common sense tells that the Doxygen comment blocks have to be put in the header files where the classes, structs, enums, functions, declarations are. I agree that this is a sound argument for a libraries that are mean to be distributed without…
Singulus
  • 1,958
  • 2
  • 16
  • 16
106
votes
9 answers

Ways to synchronize interface and implementation comments in C#

Are there automatic ways to sync comments between an interface and its implementation? I'm currently documenting them both and wouldn't like to manually keep them in sync. UPDATE: Consider this code: interface IFoo{ /// ///…
Valentin V
  • 24,971
  • 33
  • 103
  • 152
103
votes
4 answers

How to document fields and properties in Python?

It's easy to document a class or method in Python: class Something: """ Description of the class. """ def do_it(self): """ Description of the method. """ pass class_variable = 1 # How to comment? @property def…
deamon
  • 89,107
  • 111
  • 320
  • 448
103
votes
5 answers

How to document Python code using Doxygen

I like Doxygen to create documentation of C or PHP code. I have an upcoming Python project and I think I remember that Python doesn't have /* .. */ comments, and also has its own self-documentation facility which seems to be the pythonic way to…
Hanno Fietz
  • 30,799
  • 47
  • 148
  • 234
100
votes
6 answers

How to specify resolution and rejection type of the promise in JSDoc?

I have some code that returns a promise object, e.g. using Q library for NodeJS. var Q = require('q'); /** * @returns ??? */ function task(err) { return err? Q.reject(new Error('Some error')) : Q.resolve('Some result'); } How to document…
Arikon
  • 1,213
  • 2
  • 9
  • 10
98
votes
10 answers

pinterest api documentation

Update Aug 2015: Pinterest provides it here now https://dev.pinterest.com/ Is there official or unofficial documentation on the v2 Pinterest API? Things I know: JSON api is in version 2. https://api.pinterest.com/v2 gives you a json…
Dylan Valade
  • 5,565
  • 6
  • 42
  • 56
96
votes
11 answers

Is there something like the official C documentation?

I'm looking for the documentation of all the syntax and built-in functions in C, but I can't find any site online which seems like an ultimate official source of standard C knowledge. Apart from the famous book by Kernighan and Ritchie, isn't there…
Auron
  • 13,626
  • 15
  • 47
  • 54
96
votes
5 answers

Linking to other packages in documentation in roxygen2 in R

I am wondering it there exists a method to link to function from other package when I'm trying to write a documentation for new package using roxygen2. Something like \link{pck=PACKAGE_NAME, fun=FUNCTION_NAME}?
Marcin
  • 7,834
  • 8
  • 52
  • 99
94
votes
2 answers

How to document magic (_call and _callStatic) methods for IDEs

After many happy years coding in notepad++ and sublime, I've been advised to give a PHP IDE a go. I'm trying out phpStorm and it seems nice. The code completion and documentation is a great feature but isn't working out for me when magic methods…
Rob Forrest
  • 7,329
  • 7
  • 52
  • 69
93
votes
7 answers

Syntax for documenting JSON structure

So I'm trying to document the format of the json returned by an api I am writing against and I'd like to know if there is any popular format for the documentation of json structure. Note I'm not trying to to test or validate anything, I'm just…
Roman A. Taycher
  • 18,619
  • 19
  • 86
  • 141
91
votes
1 answer

Using roxygen2 and doxygen on the same package?

I have an R package that uses roxygen2. It has some C code in /src, and I have just started working with Doxygen. Are there any ways to combine the documentation or integrate compiling with roxygen2? Any "best practices" for where to put the C code…
Abe
  • 12,956
  • 12
  • 51
  • 72