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 page

  • In 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:

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:

docs/documenteer.toml#
[[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.

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.

More information about displaying citations#