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
35
votes
4 answers

What's the difference on docstrings with triple SINGLE quotes and triple DOUBLE quotes?

I was just wondering what is the difference between two ways of writing Python Docstrings (__doc__): three single quotes: ''' Comment goes here ''' three double quotes: """ Comment goes here """ Is there any subtle difference in the way doc…
prashu
  • 689
  • 2
  • 7
  • 10
35
votes
4 answers

How do I put blocks of PHP code into a PHPDoc DocBlock

I'm playing around with PHPDoc and have realised that you can use markdown to add some formatting to a DocBlock. In particular, I notice that you can use back ticks to highlight inline code. However, I can't seem to figure out how to add blocks of…
Mark Locker
  • 831
  • 1
  • 10
  • 19
34
votes
5 answers

Spring REST API Documentation using Swagger

I am looking for a tool which could help me generate RESTful API documentation. My server is written in Java and uses Spring MVC framework. I do not have VIEWS in my server. It's a 100% RESTful service and all it does is consumes JSON and spits out…
jsf
  • 2,851
  • 9
  • 30
  • 33
34
votes
6 answers

Is there a sensible way to do something like docstrings in R?

This is not just a coding style question. If you know python (and I think also Ruby has something like this), you can have a docstring in a function, such that you can readily get that string by issuing a "help" command. e.g.: def…
Dav Clark
  • 1,430
  • 1
  • 13
  • 26
34
votes
4 answers

How do I customize NetBeans PHP auto DocBlock for methods and attributes?

After I create a method I use /** to generate the DocBlock. It auto fills the @param and @return for that function. Example: /** * * @param type $str * @return type */ public function strlen($str){ return strlen($str); } How can I…
bxfckrclooo
  • 598
  • 1
  • 4
  • 8
34
votes
22 answers

What's a good example for class inheritance?

I'm writing documentation for an object-oriented language, and I wonder what kind of classes would be a good example for inheritance. Some common examples: class Person { } class Employee extends Person { } Currently my favorite, but I don't like…
Tim Jansen
  • 3,330
  • 2
  • 23
  • 28
34
votes
3 answers

Comprehensive tutorial on Pyinstaller?

I'm looking for a tutorial on PyInstaller that will explain things like how to create .pkg files how to include/exclude modules how to include data files inside the install directory. I cannot make much sense out of the standard PyInstaller…
Brandon
  • 3,684
  • 1
  • 18
  • 25
34
votes
4 answers

State of the Art for Clojure Documentation Tools

Over the last year or so I've seen various announcements on the Clojure discussion list and other places about tools for documenting Clojure code. These range from full-on literate programming systems like Marginalia, and the tool being used to…
rplevy
  • 5,393
  • 3
  • 32
  • 31
34
votes
6 answers

No reference documentation in Android Studio

A new problem just popped up yesterday. When I hover over a method or press Ctrl-Q, I used to get documentation info for that particular method. But now I just get (pressing Ctrl-Q on SharedPreferences.getLong()): Following external urls were…
j3App
  • 1,510
  • 1
  • 17
  • 26
34
votes
3 answers

Is there a reference of default keyboard behaviours for Silverlight 4 controls?

In the official Microsoft documentation there's only one paragraph mentioning how controls behave to keyboard (at least what I could find): http://msdn.microsoft.com/en-us/library/cc189015(v=VS.95).aspx#inputting_text Text Input and…
dain
  • 6,475
  • 1
  • 38
  • 47
34
votes
2 answers

Some documentation features not working in Xcode 8

I'm experimented with documentation comments for Swift in Xcode 8 and found that not every feature from Markup Formatting Reference works. In particular, I can't make seealso: callout working and can't insert image URL to my documentation comments.…
Alexander Doloz
  • 4,078
  • 1
  • 20
  • 36
34
votes
5 answers

Where is the JavaScript DOM API documented?

I am a C/C++ programmer, and I am currently playing with some Javascript code, and I am having problems finding where the documentation is for the standard Javascript libraries that are available in the browser. Specifically, I am setting an onload…
Marc O'Morain
  • 3,699
  • 5
  • 28
  • 34
34
votes
1 answer

What is the correct way to display a multi-line @param using PHPDoc?

From what I've done research on, I can't seem to find a correct method to format a multiline phpdoc @param line. What is the recommended way to do so? Here's an example: /** * Prints 'Hello World'. * * Prints out 'Hello World' directly to the…
Sean
  • 2,278
  • 1
  • 24
  • 45
33
votes
3 answers

How can you see field comments from mysql client?

I would like to see individual fields comments. Typically something I would expect from "describe" parameters. mysql> describe metrics; +-------+---------------------+------+-----+---------+----------------+ | Field | Type | Null |…
MonoThreaded
  • 11,429
  • 12
  • 71
  • 102
33
votes
4 answers

Xml string in a C# summary comment

I'm documenting a few methods I wrote in C# that deal with parsing tokens. Due to some technical restraints in other areas of the system, these tokens need to take the form of XML elements (i.e., ). I'd like to put the format of those…
loomisjennifer
  • 535
  • 1
  • 4
  • 9