Traceability with Sphinx-Needs
Run it
git clone https://github.com/remotivelabs/remotivelabs-remotive-car.git
cd remotivelabs-remotive-car
pip install -r docs/requirements.txt
sphinx-build -W -b html docs build/html
Open build/html/index.html.
Sphinx-Needs allows you to combine Docs-as-Code with Application Lifecycle Management, to track requirements, specifications, test cases, and other engineering objects in your documentation.
This example adds ISO 26262-style traceability to RemotiveCar, developed together with useblocks.
It is a limited sample of what the full documentation would look like: features, system and component requirements,
the ECUs, channels and behavioral models of the platform, the test cases that verify them, and FMEA entries, all as
linked "needs" in .rst files next to the code.
Feature <- (satisfies) <- System Req <- (satisfies) <- Component Req <- (verifies) <- Test Case
^
(mitigates) FMEA Entry
- Part of the RemotiveCar example
- Using Sphinx-Needs: what the project contains, how to build it and the tools available
- Need types, link types and fields: ubproject.toml
- Validation rules that run on every build: schemas.json
Build the HTML documentation (PlantUML and Python 3.10 or later are needed):
pip install -r docs/requirements.txt
sphinx-build -W -b html docs build/html
Then open build/html/index.html.
Notice:
-Wturns warnings into errors, so a missing ASIL rating or a test case that verifies nothing fails the build.