Skip to content

docs: rename the stockpiles tag to stockpile - #5917

Merged
ab9rf merged 3 commits into
DFHack:developfrom
Alistair-Afton:stockpile-tag
Sep 17, 2026
Merged

ab9rf merged 3 commits into
DFHack:developfrom
Alistair-Afton:stockpile-tag

Conversation

@Alistair-Afton

@Alistair-Afton Alistair-Afton commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes #5843

The stockpiles tag shares its name with the stockpiles plugin. When gui/launcher is opened for that tool (e.g. via the ? button on the plugin's window), the first word resolves as a tag before an entry, so the autocomplete switches to "Tagged tools" and lists everything carrying the tag instead of showing the plugin's entry and similar tools.

Renames the tag to stockpile in the tag list and in the plugin docs here. Companion scripts-side PR updates the tags in the script docs: DFHack/scripts#1623

Also makes tool_docs.py tolerate tool docs that reference tags not registered in Tags.rst. The scripts submodule pin lags behind changes in either repo, so during a tag rename one side always sees an unregistered tag; unregistered tags are now skipped and rendered as plain text instead of failing the build with a KeyError. That keeps CI green on both PRs independently of merge order.

Testing

  • Built the text and html docs locally with the pinned scripts submodule still using the old tag: the tag index now generates stockpile, the unregistered stockpiles tag is skipped and logged, and the stockpiles plugin entry no longer collides with a tag.

The tag shares its name with the stockpiles plugin, so opening help for
the tool in gui/launcher lists all tools carrying the tag instead of
showing the plugin's entry and related tools.

Fixes DFHack#5843
Tool docs live in both dfhack and the scripts submodule, but tags are
registered only from dfhack's Tags.rst. A tag rename lands in each repo
separately while the submodule pin lags, so a build can see :tags: that
no registered domain exists for. Skip unregistered tags instead of
failing with a KeyError; they render as plain text and still get logged.
@ab9rf
ab9rf merged commit 53e17e8 into DFHack:develop Sep 17, 2026
14 checks passed
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.

stockpiles plugin shares name with DFHack tool tag

2 participants