Closed twodrops closed 2 years ago
Strangely "Anonymous hyperlink mismatch" is raised as error and not warning. So not possible to ignore this as warning for now.
Codebeamer allows to store the description as Wiki text or Plain text. If Plain text is used for storing there are no issues with capri, However the default is Wiki text.
Hopefully there is also API to fetch the context as text.
There is an REST API call available to render the wiki-syntax to HTML, which we could then use together with the .. html::
directive.
For each item SNE gets also a value for descFormat
, which can have one value of "Plain", "Html", "Wiki"
.
Maybe we can set this during the request. I have not found any documentation for this, but I will make some tests.
So I suggest to have 2 new options: 1) Showing the content in a code-block, no matter what format the content has. 2) Transform the content to HTML, if there is a way.
If 2) is used, the content will be presented as part of an .. html::
directive, so the rendering should work.
1) and 2) can be used together. The results would be:
None used: Original code interpreted as rst (will make trouble for most services)
Depending on the used service, there will be different defaults for these options.
E.g. for JIRA 2 will be used. Azure uses none of them, as it already delivers HTML.
This can be overriden in the service-config or directly when using .. needs_service::
Codebeamer support issue created to ask how to transform from wiki to html syntax: https://codebeamer.com/cb/issue/6366002
Implemented with PR #15.
raw and wiki2html can be set for codebeamer based services.
For details take a look into http://useblocks.com/sphinx-needs-enterprise/services/codebeamer.html#raw
The context area of codebeamer uses a wiki syntax which during sphinx-needs import raises following warnings due to incompatibility with rst Syntax.