Skip to content

Conversation

elijahgreenstein
Copy link

Goal: Fix #10282

  1. Update documentation guidelines:
    • Explain reST table captions
    • Explain Sphinx :ref: and :numref: roles for cross references
    • Add reference to reST "CSV tables" (some of the documentation already uses these)
    • Request that contributors preface table hyperlink targets with _table_ (follows the pattern for figures)
  2. Update documentation :
    • Use table directives to "attach" captions to simple tables and grid tables. (Note: only existing captions were "attached" to tables; no new captions were added.)

In the process, modified a few additional tables to (1) specify header rows and (2) remove one unnecessary caption (inconsistent with other tables on the page).

Ticket(s): #

  • Backport to LTR documentation is requested

- Explain how to use a reST `table` directive to add captions to simple
  tables and grid tables
- Explain how to add captions to reST "list tables"
- Explain how to create cross references to tables with `:ref:` and
  `:numref:` roles
- Explain how to customize the `:numref:` link text
The "Overview of the Print Layout" details the tools in several menus.
Most tables detailing those tools do not have a caption, with one
exception. This update removes the unnecessary caption from that table.
This commit uses explicit reST table directives to move captions into
tables, rather than writing the caption as a separate paragraph after
the table.
Some of the documentation already uses reST `csv-table` directives to
create complicated tables. This commit adds a reference to "CSV Tables"
to the dcoumentation guidelines.
The updated table had a header, but the grid table did not mark the row
as a header. This update marks the header, leaving the table text
unchanged.
This commit uses reST `table` directives to "attach" captions to tables
in the "Gentle Introduction to GIS." The original captions followed the
tables as separate paragraphs. This update moves those captions into the
tables.

In places, the caption is shortened, and text from the original
caption is retained as a separate paragraph.

Cross references to tables are also updated to use Sphinx `:numref:`
roles.
@elijahgreenstein elijahgreenstein changed the title Tables Update guidelines on tables; add captions to tables Oct 3, 2025
@DelazJ DelazJ added Guidelines backport release_3.44 On merge create a backported pull request to 3.44 labels Oct 3, 2025
Copy link
Collaborator

@DelazJ DelazJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @elijahgreenstein for this harmonization.
See my feedback below.

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

Labels

backport release_3.44 On merge create a backported pull request to 3.44 Guidelines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Captions for tables and improved cross references

2 participants