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

How to render .rst files in a markdown or html format?

In many django projects, in the docs directory I can see *.rst files: Is there a standard, simple, or common way of rendering and displaying these, instead of viewing their contents as plain text? Is it possible to generate HTML from the .rst files?
Eric
  • 5,101
  • 10
  • 37
  • 45
50
votes
1 answer

How can I find out what's causing differences in generated Sandcastle docs?

In Noda Time, we generate our documentation using Sandcastle and SHFB. We then commit the documentation back into the source repository - primarily because that makes it easy to view the latest (and historical) docs. I'm the primary developer for…
Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
49
votes
6 answers

Documentation-generator for Objective-C?

Is there a generally-accepted documentation generator for Objective-C (similar to RDoc for Ruby)? I've seen Doxygen and ObjcDoc, and am wondering which is most widely used.
Stephen Touset
  • 2,562
  • 2
  • 25
  • 24
48
votes
4 answers

How to document GraphQL with Swagger \ OpenAPI?

How to document GraphQL with Swagger? We have a huge backend REST API which is recently has partially started to use GraphQL. For documenting API we're using Swagger. The question is: how to use Swagger(OpenAPI) for documenting GraphQL…
user12367662
  • 547
  • 1
  • 4
  • 4
48
votes
7 answers

How to add package level comments in Javadoc?

I am using CheckStyle, FindBugs, and PMD to validate my Java code. I have fixed almost all the bugs caught by these tools. I am not able to understand how to write "package comment" which is a bug caught by checkstyle. I have gone through the…
Anil Kumar.C
  • 481
  • 1
  • 4
  • 3
47
votes
4 answers

Best way to add developer documentation to your Visual Studio projects

Basically, the question is: Where (and in which format) should I store textual developer documentation associated with my Visual Studio projects? To elaborate: XML comments are great, but they don't cover all use cases. Sometimes, you'd like to…
Heinzi
  • 167,459
  • 57
  • 363
  • 519
46
votes
4 answers

How to integrate examples with Doxygen?

I documented all of my classes and now I want to integrate an example of how to use these classes. How do I do that?
Tobi Weißhaar
  • 1,617
  • 6
  • 26
  • 35
46
votes
5 answers

What is the equivalent of a Python docstring in Ruby?

In Python, you can access an object's docstring by using obj.__doc__. What is the equivalent action in Ruby?
parzival
  • 1,536
  • 2
  • 19
  • 27
46
votes
3 answers

Android SDK and Developer Guide Offline or PDF

Where can I get PDF version of Android SDK docs and developer guide. Saw a posting that installed sdk has the html docs, mine does not. Is this a separate download. any eclipse update for this? Thanks
Androider
  • 21,125
  • 36
  • 99
  • 158
46
votes
10 answers

Where to document functions in C or C++?

I have a C program with multiple files, so I have, for example, stuff.c which implements a few functions, and stuff.h with the function prototypes. How should I go about documenting the functions in comments? Should I have all the docs in the header…
Claudiu
  • 224,032
  • 165
  • 485
  • 680
46
votes
3 answers

How to refer to array types in documentation comments

I just posted this question and learned about , however when i tried /// This is a set of extensions that allow more operations on a . The compiler gave me warnings about it not being formatted correctly. What do I…
Scott Chamberlain
  • 124,994
  • 33
  • 282
  • 431
46
votes
21 answers

Should I document my private methods?

Private methods documentation can only be seen by who has access to the source code. Is it worth the effort spent on it?
Jader Dias
  • 88,211
  • 155
  • 421
  • 625
45
votes
2 answers

How can I list the undocumented modules/classes/constants/methods with yardoc?

I have a small library of code that I am documenting with YARD. When I run the yardoc command, it tells me: Files: 40 Modules: 14 ( 0 undocumented) Classes: 39 ( 0 undocumented) Constants: 21 ( 4…
Jeff Terrell Ph.D.
  • 2,563
  • 26
  • 39
45
votes
9 answers

Automatic PHP Documentation Generation?

For ActionScript 2, I've used NaturalDocs. However it has pretty poor support for PHP. I've looked so far at doxygen and phpDocumentor, but their output is pretty ugly in my opinion. Does anyone have any experience with automatic documentation…
davr
  • 18,877
  • 17
  • 76
  • 99
45
votes
25 answers

What do you consider good API documentation?

I have always liked the documentation on Java APIs, generally speaking, but I know some people consider them lacking. So I'm wondering, what do you consider a good example of API documentation? Please, include a link or an actual example in any…
Daniel C. Sobral
  • 295,120
  • 86
  • 501
  • 681