PlantUML integration: using a different engine

Tobias Gerg <[email protected]> Tue, 21 Jun 2022 10:15:19 +0000
Newsgroups gmane.text.doxygen.general
Message-ID <GV1P193MB221564B5382BBD7EB0594647C7B39@GV1P193MB2215.EURP193.PROD.OUTLOOK.COM>
--===============0963331893913957370==
Content-Language: de-DE
Content-Type: multipart/alternative;
	boundary="_000_GV1P193MB221564B5382BBD7EB0594647C7B39GV1P193MB2215EURP_"

--_000_GV1P193MB221564B5382BBD7EB0594647C7B39GV1P193MB2215EURP_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi guys,

Doxygen version is 1.8.18.

I'm trying to get the JSON diagrams generated by plantUML into my doxygen d=
ocumentation.

I'm using variations of the following snippet
///@startuml{engine=3Djson}
///{
///  "firstName": "John",
///  "lastName": "Smith",
///  "isAlive": true,
///  "age": 27,
///  "address": {
///    "streetAddress": "21 2nd Street",
///    "city": "New York",
///    "state": "NY",
///    "postalCode": "10021-3100"
///  },
///  "phoneNumbers": [
///    {
///      "type": "home",
///      "number": "212 555-1234"
///    },
///    {
///      "type": "office",
///      "number": "646 555-4567"
///    }
///  ],
///  "children": [],
///  "spouse": null
///}
///@enduml


I've altered the startuml syntax as follows
@startjson
@startuml{json}

I get either a syntax error from doxygen when it runs plantUML or I get the=
 json text flat in the documentation.

Any Ideas

Thanks
Tobi



--_000_GV1P193MB221564B5382BBD7EB0594647C7B39GV1P193MB2215EURP_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);" class=3D"elementToProof">
Hi guys,<br>
<br>
Doxygen version is 1.8.18.<br>
<br>
I'm trying to get the JSON diagrams generated by plantUML into my doxygen d=
ocumentation.&nbsp;<br>
<br>
I'm using variations of the following snippet<br>
<div style=3D"color:#d4d4d4;background-color:#1e1e1e;font-family:Consolas, =
'Courier New', monospace;font-weight:normal;font-size:14px;line-height:19px=
">
<span><span style=3D"color:#57a64a">///@startuml{engine=3Djson}</span></spa=
n>
<div><span style=3D"color:#57a64a">///{</span></div>
<div><span style=3D"color:#57a64a">/// &nbsp;&quot;firstName&quot;: &quot;J=
ohn&quot;,</span></div>
<div><span style=3D"color:#57a64a">/// &nbsp;&quot;lastName&quot;: &quot;Sm=
ith&quot;,</span></div>
<div><span style=3D"color:#57a64a">/// &nbsp;&quot;isAlive&quot;: true,</sp=
an></div>
<div><span style=3D"color:#57a64a">/// &nbsp;&quot;age&quot;: 27,</span></d=
iv>
<div><span style=3D"color:#57a64a">/// &nbsp;&quot;address&quot;: {</span><=
/div>
<div><span style=3D"color:#57a64a">/// &nbsp; &nbsp;&quot;streetAddress&quo=
t;: &quot;21 2nd Street&quot;,</span></div>
<div><span style=3D"color:#57a64a">/// &nbsp; &nbsp;&quot;city&quot;: &quot=
;New York&quot;,</span></div>
<div><span style=3D"color:#57a64a">/// &nbsp; &nbsp;&quot;state&quot;: &quo=
t;NY&quot;,</span></div>
<div><span style=3D"color:#57a64a">/// &nbsp; &nbsp;&quot;postalCode&quot;:=
 &quot;10021-3100&quot;</span></div>
<div><span style=3D"color:#57a64a">/// &nbsp;},</span></div>
<div><span style=3D"color:#57a64a">/// &nbsp;&quot;phoneNumbers&quot;: [</s=
pan></div>
<div><span style=3D"color:#57a64a">/// &nbsp; &nbsp;{</span></div>
<div><span style=3D"color:#57a64a">/// &nbsp; &nbsp; &nbsp;&quot;type&quot;=
: &quot;home&quot;,</span></div>
<div><span style=3D"color:#57a64a">/// &nbsp; &nbsp; &nbsp;&quot;number&quo=
t;: &quot;212 555-1234&quot;</span></div>
<div><span style=3D"color:#57a64a">/// &nbsp; &nbsp;},</span></div>
<div><span style=3D"color:#57a64a">/// &nbsp; &nbsp;{</span></div>
<div><span style=3D"color:#57a64a">/// &nbsp; &nbsp; &nbsp;&quot;type&quot;=
: &quot;office&quot;,</span></div>
<div><span style=3D"color:#57a64a">/// &nbsp; &nbsp; &nbsp;&quot;number&quo=
t;: &quot;646 555-4567&quot;</span></div>
<div><span style=3D"color:#57a64a">/// &nbsp; &nbsp;}</span></div>
<div><span style=3D"color:#57a64a">/// &nbsp;],</span></div>
<div><span style=3D"color:#57a64a">/// &nbsp;&quot;children&quot;: [],</spa=
n></div>
<div><span style=3D"color:#57a64a">/// &nbsp;&quot;spouse&quot;: null</span=
></div>
<div><span style=3D"color:#57a64a">///}</span></div>
<span><span style=3D"color:#57a64a">///</span><span style=3D"color:#569cd6"=
>@enduml</span></span></div>
<br>
<br>
I've altered the startuml syntax as follows<br>
@startjson<br>
@startuml{json}<br>
<br>
I get either a syntax error from doxygen when it runs plantUML or I get the=
 json text flat in the documentation.<br>
<br>
Any Ideas<br>
<br>
Thanks<br>
Tobi<br>
<br>
<br>
</div>
</body>
</html>

--_000_GV1P193MB221564B5382BBD7EB0594647C7B39GV1P193MB2215EURP_--


--===============0963331893913957370==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============0963331893913957370==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Doxygen-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/doxygen-users

--===============0963331893913957370==--