Changelog¶
1.1.0¶
- Released:
02.10.2025
New and Improved¶
✨ Added C# parser for
analysemodule.Need ID references and marked RST blocks can be extracted from C# source files. The comments styles supported are:(
//,/* */,///)✨ Added YAML parser for
analysemodule.Need ID references can be extracted from YAML files. The supported comment style is
#as well as inline comment style, e.g.key: value # comment.👌 Directive
src-traceitself does not create need items anymore and only generate need items from the one-line need definition in the given source.The need item is removed because:
It has no use cases so far.
It creates extra need items users may not actually want in their documentation
It creates errors with some Sphinx-Needs configurations, e.g., when
need_id_requiredorneeds_statusesis defined.
Fixes¶
🐛 Replace absolute path with relative path to fix
local-urlnot working on the non-local environment🐛 Add more file extensions of C/C++ for SourceDiscover
1.0.0¶
- Released:
22.08.2025
New and Improved¶
✨ Added a new
analyseCLI command and corresponding API.The
analysecommand parses source files (Python, C/C++) and extracts markers from comments. It can extract three types of markers, as documented in the analyse section:One-line need definitions
Need ID references
Marked RST blocks
The extracted markers and their metadata are saved to a JSON file for further processing.
✨ Added a new
write rstCLI command.The
write rstcommand writes a reStructuredText file with needextend directive from the extracted markers generated byanalyse. The generated RST can be included in the Sphinx documentation to create the source code links in the existing needs👌 Replaced
virtual_docswith the newanalysemodule.The
virtual_docsfeature, which handled one-line need definitions (OneLineCommentStyle), has been migrated into the newanalysemodule and removed from the core. The caching feature ofvirtual_docsis temporarily removed and may be reintroduced later.👌 Updated the
src-traceSphinx directive.The
src-tracedirective now uses the newanalyseAPI instead of the oldvirtual_docsone.👌 Unified configuration in TOML
The configuration for
src-tracedirective defined in TOML is now compatible with the newanalysemodule.
0.1.2¶
- Released:
16.07.2025
Fixes¶
🐛 Apply default configuration values when not given
When a user does not specify certain configuration options, the extension will automatically use predefined default values, allowing users to get started quickly without needing to customize every option. Users can override these defaults by explicitly providing their own configuration values.
🐛 Fix local links for multi project configurations
Local links between docs and one-line need definitions work correctly, when src_dir in multiple project configurations point at different locations.
0.1.1¶
- Released:
11.07.2025
Initial release of Sphinx-CodeLinks
This version features:
✨ Sphinx Directive
src-trace✨ Virtual Docs and Source Discovery CLI
✨ One-line comment to define a
Sphinx-Needsneed item