| Released: | 22.08.2025 |
|---|
✨ 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 :ref:`analyse <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 write a reStructuredText file with :external+needs:ref:`needextend <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 (:ref:`OneLineCommentStyle <oneline>`), 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.
| Released: | 16.07.2025 |
|---|
🐛 Applying default configuration value 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 :ref:`src_dir <source_dir>` in multiple project configurations point at different locations.
| 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