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

A Better Boost reference?

The thing that really turns me off about Boost is their documentation. What I need is a good reference, and instead of explaining what a good reference is to me I would give example: java.sun.com/javase/6/docs/api/ Yes I love it. It is also…
Yordan Pavlov
  • 1,303
  • 2
  • 13
  • 26
31
votes
4 answers

What does % do to strings in Python?

I have failed to find documentation for the operator % as it is used on strings in Python. What does this operator do when it is used with a string on the left hand side?
Ram Rachum
  • 84,019
  • 84
  • 236
  • 374
30
votes
4 answers

How to write documentation comments in ANSI C?

I can't find how to write comments in C. I mean I know about // and /* */, what I mean is where can I find good practices? Like if I have a function, how do I write the @param variable is the value bla bla, like it is done in Java? Are there any…
bb2
  • 2,872
  • 7
  • 37
  • 45
30
votes
2 answers

Can Eclipse hover tips display Doxygen comments from header file?

I'm using Eclipse CDT to write C++ code. Having read several discussions here on StackOverflow about whether to place doxygen documentation in the header file or the implementation file, it seems the majority of developers favour putting doxygen…
Jack Kelly
  • 2,214
  • 2
  • 22
  • 32
30
votes
2 answers

How to serve documentation using godoc together with go modules?

It seems that the godoc tool is not Go modules aware. A simple godoc -goroot=. serves the project files, but it does not generate documentation for the packages. I tested it from withing the projects source directory, where also the go.mod and…
Simon Schürg
  • 2,134
  • 2
  • 20
  • 31
30
votes
4 answers

Java: JPQL date function to add a time period to another date

SELECT x FROM SomeClass WHERE x.dateAtt BETWEEN CURRENT_DATE AND (CURRENT_DATE + 1 MONTH) In the above JPQL statement, SomeClass has a memebr dateAttr, which is a java.util.Date and has a @Temporal(javax.persistence.TemporalType.DATE) annotation. I…
bguiz
  • 27,371
  • 47
  • 154
  • 243
30
votes
3 answers

Show xml tag into visual studio intellisense

I added the xml tag to some of my methods but I can't see its content in IntelliSense. Here is my code: /// /// we all live in a yellow summary /// /// what it returns public int MyMethod() { ....…
30
votes
1 answer

Annotating Methods in Delphi?

I have a piece of code that needs some serious documenting and wanted to ask whether a feature similar to C#/.NET's In-code XML-Documentation is available for Embarcadero Delphi. My aim is to display some sort of information on how to use a specific…
FLClover
  • 524
  • 5
  • 13
30
votes
1 answer

Where is the documentation for the "path" taskelement in Ant?

I must be missing something obvious here... I found the online documentation for the task, but I can't find it for the task, e.g.:
Jason S
  • 184,598
  • 164
  • 608
  • 970
29
votes
7 answers

How to properly write cross-references to external documentation with intersphinx?

I'm trying to add cross-references to external API into my documentation but I'm facing three different behaviors. I am using sphinx(1.3.1) with Python(2.7.3) and my intersphinx mapping is configured as: { 'python': ('https://docs.python.org/2.7',…
Gall
  • 1,595
  • 1
  • 14
  • 22
29
votes
1 answer

How should I provide YARD/RDoc documentation for Ruby keyword arguments?

For a basic Ruby method, I would provide YARD style doc for parameters in the following format. # @param query [String] The search string to query. # @param options [Hash] Optional search preferences. def search(query, options = {}) #…
Matt Huggins
  • 81,398
  • 36
  • 149
  • 218
29
votes
5 answers

How should unit tests be documented?

I'm trying to improve the number and quality of tests in my Python projects. One of the the difficulties I've encountered as the number of tests increase is knowing what each test does and how it's supposed to help spot problems. I know that part of…
ddbeck
  • 3,855
  • 2
  • 28
  • 22
29
votes
2 answers

Clojure docstring for libraries/namespaces

How to add docstrings and/or comments to Clojure libaries/namespaces as a whole, i.e. not just to specific functions within the namespace? I've noticed that the clojure source uses (comment ...) in some places to do this (example), is that…
mikera
  • 105,238
  • 25
  • 256
  • 415
29
votes
3 answers

What is the standard for documentation style in Bash scripts?

I am currently writing a Bash script that has a number of functions in it and would like to add docs to make other team members understand what the point of the function is. Is there a standard "style" for documenting Bash scripts and the functions…
linusthe3rd
  • 3,455
  • 3
  • 28
  • 43
28
votes
1 answer

How to get rid of "The documentation for this class was generated from the following files" paragraph?

What option, and where it is in the GUI front end, do I need to set to remove the paragraph The documentation for this class was generated from the following files: from my project documentation pages? Alternatively, how do I get rid of the…
myWallJSON
  • 9,110
  • 22
  • 78
  • 149