Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ $ uvx --from 'gp-libs' --prerelease allow gp-libs
_Notes on upcoming releases will be added here_
<!-- END PLACEHOLDER - ADD NEW CHANGELOG ENTRIES BELOW THIS LINE -->

### Documentation

#### Extension metadata fields are described (#81)

The `TypedDict` returned from `linkify_issues`'s Sphinx `setup()` now says
what each key holds. They previously reached the rendered API reference as
"Alias for field number 0" or as a bare name carrying only its type.

### Development

#### CI actions updated to current majors
Expand Down
15 changes: 14 additions & 1 deletion src/linkify_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,20 @@ def condition(node: nodes.Node) -> bool:


class SetupDict(t.TypedDict):
"""Setup mapping for Sphinx app."""
"""Setup mapping for Sphinx app.

Attributes
----------
version : str
Version of this extension, returned to Sphinx so it can invalidate
its build environment when the extension changes.
parallel_read_safe : bool
Whether Sphinx may read source files in parallel while this
extension is loaded.
parallel_write_safe : bool
Whether Sphinx may write output in parallel while this extension is
loaded.
"""

version: str
parallel_read_safe: bool
Expand Down