Skip to content

Add Documentation for Source Code Linker#2461

Merged
MaximilianSoerenPollak merged 7 commits intoeclipse-score:mainfrom
qorix-group:MSP_add_documentation_for_dac_tool
Jan 26, 2026
Merged

Add Documentation for Source Code Linker#2461
MaximilianSoerenPollak merged 7 commits intoeclipse-score:mainfrom
qorix-group:MSP_add_documentation_for_dac_tool

Conversation

@MaximilianSoerenPollak
Copy link
Copy Markdown
Contributor

This will add additional documentation for developers about the Source Code Linker and it's capabilities.

@github-actions
Copy link
Copy Markdown

⚠️ Docs-as-Code version mismatch detected
Please check the CI build logs for details and align the documentation version with the Bazel dependency.

@@ -0,0 +1,125 @@
..
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just call it code tracability tooling as geenral tools means nothing.

@github-actions
Copy link
Copy Markdown

The created documentation from the pull request is available at: docu-html

"""Your function that implements the requirement partiall or fully"""
...

The parser will look through most files but not those that fulfil any of these properties
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hard to understand sentence

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-wrote it.

Comment thread docs/contribute/development/traceability_tooling.rst Outdated
Comment thread docs/contribute/development/traceability_tooling.rst Outdated
The implementation here differs based on your source code language though.
So it is best if you read up in the language you want to develop in how to do this.

In rough terms the data flow looks as follows.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In rough terms the data flow looks as follows:


You can now also do statistics on your tests. `Docs as Code Test Statistics examples <https://eclipse-score.github.io/docs-as-code/main/internals/requirements/test_overview.html>`_


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this needs betetr explanation and not just "in cloud" one. @PiotrKorkus maybe some comments ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this comment on the wrong line? I can't quiet follow you here.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, maybe you can provide codeblock with ..needtable & ..needpie examples? Button edit on github still doesn't work, so it can be difficult to others to quickly find the code.
Also I would appreciate information if cross-repo linking and reporting is possible

`Python implementation [NOT LINKED YET]`
`RUST Implementation [NOT LINKED YET]`
`CPP Implementation [NOT LINKED YET]`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this ? Isn;t this enought to just link to doc-as-code and thats it ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How you do the testing properties in each is different, so we most likely should describe that quickly with an example?
As in 'docs-as-code' only the python one is described (if even)

Traceability Tooling
####################

This document describes tools or some functionality of them, that can be used regardless of source code language.These tools are also provided by S-CORE projects, like Docs-As-Code.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"This document describes tools or some functionality of them" The whole description in this doc shall be precise imho as this is what will be used.

Link Requirements to Tests
**************************

There is a tool that has the ability to link requirements to your tests as well as provide virtual tests needs in order to make statistics etc. possible to be rendered.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add link to tool

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentence is a bit weird :D, I re-word it and add the link to the tool.

In rough terms the data flow looks as follows.

Your testing framework produces XML files with pre-defined properties.
These XML files get read in and parsed. The test needs get build from the parsed data and linked to the requirements mentioned.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These XML files are loaded and parsed. The test needs to get build details from the parsed data and link it to the requirements mentioned. ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds nicer. Will adopt this wording.


You can now also do statistics on your tests. `Docs as Code Test Statistics examples <https://eclipse-score.github.io/docs-as-code/main/internals/requirements/test_overview.html>`_


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree, maybe you can provide codeblock with ..needtable & ..needpie examples? Button edit on github still doesn't work, so it can be difficult to others to quickly find the code.
Also I would appreciate information if cross-repo linking and reporting is possible

"""Your function that implements the requirement partiall or fully"""
...

An rendered example of a need where this is implemented can be seen in `Rendered Example <https://eclipse-score.github.io/docs-as-code/main/internals/requirements/requirements.html#tool_req__docs_common_attr_id>`_
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A rendered example

Incooperating PR comments
Adding screenshot of rendered example instead of linking to it
@MaximilianSoerenPollak MaximilianSoerenPollak marked this pull request as ready for review January 22, 2026 13:47
@MaximilianSoerenPollak MaximilianSoerenPollak requested a review from a team as a code owner January 22, 2026 13:47
FScholPer
FScholPer previously approved these changes Jan 23, 2026
It is either `# req-Id: <your requirement>` or `# req-traceability: <your requirement>`
If there is multiple requirements that need to be linked to this place in the source code, repeat the line for each one.

As an example for one requirement:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel all docs-as-code howto should be at docs-as-code, and this should only link there?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extend. It's suppose to make the 'score contribution / development' place a one stop shop to at least start and get all important information.

I agree that this makes it a bit cumbersome if we change things, as we have to change it in two places. Though I found just adding a link with a single sentence like 'please find the documentation for traceability here' also a bit too small.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Theoretically we could do that too. Just have a link to the how to into docs as code and extend the how to inside docs as code to make it more cohesive.
If that works better, I can change it to that.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlexanderLanin definitely from dev perspective, all those fundamental things without details, and tones of other doc are needed in one place. Most of people need only know how pattern shall look like and thats it. This is valuable here.

Copy link
Copy Markdown
Member

@AlexanderLanin AlexanderLanin Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pawelrutkaq @MaximilianSoerenPollak we need that link, as we have to expect that this howto will be out of date and not updated at some point. I'm 100% sure, we'll forget to update it here on every important change. So overview here + link to up-to-date-and-more-detailed-instructions seems good?!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That currently is there no?
The last section has a 'Further information' with a link to the current Docs-AS-Code documentation.

Or do you think it should be more visible or at a different spot?

pawelrutkaq
pawelrutkaq previously approved these changes Jan 26, 2026
Copy link
Copy Markdown
Contributor

@PiotrKorkus PiotrKorkus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please fix one link

Comment thread docs/contribute/development/traceability_tooling.rst Outdated
@MaximilianSoerenPollak MaximilianSoerenPollak merged commit a42c6cc into eclipse-score:main Jan 26, 2026
6 checks passed
masc2023 pushed a commit that referenced this pull request Feb 8, 2026
* Add Documentation for Docs-as-Code tools
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.

5 participants