Skip to content

DM-56680: Restructure the citations guide into an overview and recipes - #538

Open
jonathansick wants to merge 4 commits into
mainfrom
tickets/DM-56680-docs
Open

jonathansick wants to merge 4 commits into
mainfrom
tickets/DM-56680-docs

Conversation

@jonathansick

Copy link
Copy Markdown
Member

Summary

  • Splits the single-page user-guide citations documentation into a section (docs/guides/citations/): an overview that starts from declaring an entry and where it is displayed, recipes for specific kinds of site (DOI landing page, landing pages inside the site, CITATION.cff, never-deposited software, API-heavy sites), a page per display surface (cards, inline DOI links, footer, machine-readable metadata), and one troubleshooting page for every citation warning. Every label linked from the TOML reference and the technote citations page moves with its section, and the old URL redirects to the overview.
  • Documenteer's own docs now declare real citations — a root CITATION.cff as the preferred Software entry and the ADASS XXXIII paper as a non-footer entry — so the cards, :doi: links, and footer citation in these pages render live from the site's configuration instead of being described in text.
  • Fixes the undated-citation exemption: a software entry reading a CITATION.cff that declares no preferred-citation was reported as undated because the check keyed off the cff_preferred flag rather than the record actually read. GuideCitation now carries cff_cited_preferred, and both the exemption and the project-version fallback follow it. Without this fix Documenteer's own entry fails the -W docs build.

Validation steps

  • Open the built docs at guides/citations/ and confirm the overview shows the Software card (project version, link to documenteer.lsst.io, BibTeX key documenteer) and the Paper card (DOI link, key 2025ASPC..541..151S), and that the footer's "How to cite" lists only Software.
  • On guides/citations/cards.html, confirm the three selector tabs (label, BibTeX key, DOI) render the same Paper card.
  • View source on any citations page: no citation_* meta tags in <head>, one application/ld+json block with a WebSite subject and the software under citation.
  • Confirm guides/citations.html redirects to guides/citations/index.html.
  • Run nox -s docs-linkcheck; the paper DOI reports as redirected (302 to aspbooks.org), not broken.

References

… undated check

The undated-citation check exempted a URL-located software entry only
when it was not reading a CITATION.cff preferred-citation, but it keyed
that off the entry's cff_preferred flag, whose default *asks* for a
preferred citation. A file that declares none hands the entry its
top-level record, which describes the repository, and the entry was
reported anyway. Documenteer's own CITATION.cff is such a file, and the
docs build fails under -W without this fix.

GuideCitation now carries cff_cited_preferred, the record the file
actually supplied (CitationCffRecord.cited_preferred), alongside the
cff_preferred flag the entry wrote. The exemption and the project-version
fallback both follow the record read rather than the flag.
docs/guides/citations.rst was a single 655-line page that opened on the
self/preferred distinction and CFF edge cases before showing a basic
declaration. It is now a section, docs/guides/citations/, with an
overview that starts from declaring an entry and where it shows up,
recipes for specific kinds of site (DOI landing page, landing pages
inside the site, CITATION.cff, never-deposited software, API-heavy
sites), a page per display surface (cards, inline DOI links, footer,
machine-readable metadata), and one troubleshooting page for every
citation warning. Every label the TOML reference and the technote
citations page link to moves with its section, and the old URL redirects
to the overview.

Documenteer's docs now declare real citations: a CITATION.cff at the
repository root (software, no DOI, no version) as the preferred entry,
and the ADASS XXXIII paper as a non-footer entry, so the cards, inline
DOI links, and footer citation in these pages render live from the
site's own configuration instead of being described in text.
@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Documentation preview

Edition URL
DM-56680-docs https://documenteer.lsst.io/v/DM-56680-docs/

Build 1xw1-5rye-g5am-24 processed successfully.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant