Verbal text in Table APT Doxia

Using Doxia APT format , I would like to include verbatim text or snippet inside a table.

*------------+----------------------------+
|| col1      || col2                      |
*------------+----------------------------+
| some text  | VERBATIM TEXT OR SNIPPET   |
*------------+----------------------------+

      

However, since doxia verbatim text and macros both need to be non-indented and the table requires prior markup, I'm not sure if there is an easy way to accomplish this.

To be more specific, I am using Maven 3 to generate site documentation using apt docs. I would like to include multi-line JSON views in a table column.

As a workaround, each line is monospaced and some of the json characters have to be escaped, which is not easy to read or maintain (although the rendered page looks fine). For example:

*------------+----------------------------+
|| col1      || col2                      |
*------------+----------------------------+
| some text  | <<<\{>>>\                  |
|            | <<<\ "id":"12345",>>>\     |
|            | <<<\ "name":"value">>>\    |
|            | <<<\}>>>                   |
*------------+----------------------------+

      

Ideally, to keep the table readable, I would prefer to use a doxia snippet or similar macro to inject code dynamically, but could also use plain text. For example, I would like to do something like the following, which is not valid:

*------------+-----------------------------+
|| col1      || col2                       |
*------------+-----------------------------+
| some text  | %{snippet|url=example.json} |
*------------+-----------------------------+

      

Is there a way to do this?

+3
maven documentation


source to share


No one has answered this question yet

Check out similar questions:

nine
Doxia Apt Code Format
4
Replacing substitution on Maven APT page
3
problem with doxia disposal with ampersand in links
2
How to add local HTML bindings for sections with Doxia?
1
How can I get parsers in a url using the Doxia APT format?
0
How can I display code and pseudocode side-by-side in a document?
0
Create links to java files in Doxia Apt site file?
0
Create XML documentation without comments in the code
0
Include text from one apt to another apt
0
Powerful tool for generating documentation (including exact requirements)



All Articles
Loading...
X
Show
Funny
Dev
Pics