Citations#
Your documentation can help readers reference your project by including citation information. A site can carry several citations: the DOI the site itself is published under, a paper that describes the work, and the software the site documents. Documenteer displays those citations in four places:
As machine-readable metadata in every page’s HTML
<head>, which is what makes a site a DOI’s landing pageIn the site footer, so a reader finds the citation from any page of the site
In citation cards placed in your content, on a DOI landing page or on a page about citing the project
As inline DOI links, wherever a sentence, a bullet, or a table cell refers to one of the works
All four read the same declared citations, so they never disagree about how the site asks to be cited. The rest of this page shows the basics: how to declare a citation, and where it appears. The recipes that follow cover specific kinds of site, and the display pages go into each surface in depth.
Declaring a citation#
A site declares its citations in the [[project.citations]] array of documenteer.toml, one entry per work.
An entry is made of three kinds of field:
Bibliographic fields that compose the citation: title, authors, publisher, date, type, and version. An entry can state them itself, or read them from a repository’s
CITATION.cfffile with cff.Presentation fields that say how the site uses the entry: label, note, self, preferred, in_footer, page, and bibtex_key.
The field reference describes every field; the recipes below show which fields each kind of site needs.
Recipes for declaring citations#
An example documenteer.toml [[project.citations]]#
Documenteer’s own site declares two citations, one based on the CITATION.cff for the GitHub repository, and a second for a conference proceedings article:
[[project.citations]]
cff = "../CITATION.cff"
label = "Software"
preferred = true
note = "Cite the version of Documenteer you used; this site documents the version shown."
[[project.citations]]
doi = "10.26624/XWGH8202"
label = "Paper"
type = "article"
bibtex_key = "2025ASPC..541..151S"
in_footer = false
title = "The Documentation Developer Experience: Documentation Engineering at the Vera C. Rubin Observatory"
publisher = "Astronomical Society of the Pacific"
date = 2025
authors = [
{ family_name = "Sick", given_name = "Jonathan", orcid = "https://orcid.org/0000-0003-3001-676X", affiliation = "Vera C. Rubin Observatory" },
{ family_name = "Economou", given_name = "Frossie", affiliation = "Vera C. Rubin Observatory" },
]
note = "Cite this paper when describing how Rubin Observatory builds its documentation."
The first entry reads Documenteer’s own CITATION.cff file at the root of its repository, a software record with no DOI, and marks it as the citation the site prefers.
The second states the fields of a conference paper itself, located by its DOI, and keeps the paper out of the footer so that a card or an inline link is the only place it shows.
Where citations are displayed#
Citation cards#
The citation-card directive renders a citation as a card wherever a page asks for one.
With no argument it renders the preferred citation:
.. citation-card::
:::{citation-card}
:::
Software
Sick, Jonathan. Documenteer (version 2.5.0b4.dev192+gad5d98384). https://documenteer.lsst.io
BibTeX
@software{documenteer,
author = {Sick, Jonathan},
title = {{Documenteer}},
version = {2.5.0b4.dev192+gad5d98384},
url = {https://documenteer.lsst.io}
}Cite the version of Documenteer you used; this site documents the version shown.
An argument selects another of the site’s entries by its label, its BibTeX key, or its DOI:
.. citation-card:: Paper
:::{citation-card} Paper
:::
Paper
Sick, Jonathan; Economou, Frossie (2025). The Documentation Developer Experience: Documentation Engineering at the Vera C. Rubin Observatory. Astronomical Society of the Pacific. https://doi.org/10.26624/XWGH8202
BibTeX
@article{2025ASPC..541..151S,
author = {Sick, Jonathan and Economou, Frossie},
title = {{The Documentation Developer Experience: Documentation Engineering at the Vera C. Rubin Observatory}},
year = {2025},
publisher = {Astronomical Society of the Pacific},
doi = {10.26624/XWGH8202},
url = {https://doi.org/10.26624/XWGH8202}
}Cite this paper when describing how Rubin Observatory builds its documentation.
The paper is kept out of this site’s footer, so a card or an inline link is the only way a page shows it. See Citation cards.
Inline DOI links#
The doi role links a declared citation’s DOI inline, with the resolvable https://doi.org/ URL as the link text: the paper is published as https://doi.org/10.26624/XWGH8202, written as :doi:`Paper`.
See Inline DOI links.
Machine-readable metadata#
Every page of a site that marks an entry self carries that citation in its <head> as Highwire and Dublin Core meta tags, which is what Google Scholar and Zotero read.
This site marks no entry self, so it emits none of those tags.
Every page does carry a schema.org JSON-LD block describing the site, with the software under citation; view the source of this page to see it.
See Machine-readable metadata.