Skip to content

Commit

Permalink
Mock plantuml execution
Browse files Browse the repository at this point in the history
  • Loading branch information
robtaylor committed Oct 3, 2024
1 parent 77e195f commit 4bf299a
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 4 deletions.
17 changes: 16 additions & 1 deletion doorstop/core/tests/files/published.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,22 @@ <h2 id="REQ004">1.6 REQ004</h2>
<p>Hello, world!</p>
<h2 id="REQ002">2.1 Plantuml <small>REQ002</small></h2>
<p>Hello, world!</p>
<p><svg contentStyleType="text/css" preserveAspectRatio="xMaxYMax meet" style="background:#FFFFFF" version="1.1" viewBox="0 0 1505 254" width="100%" zoomAndPan="magnify" class="class1,class2" alt="Use Cases of Doorstop" title="Use Cases of Doorstop"><defs /><g><g id="elem_Author"><ellipse cx="570.5" cy="75.353" fill="#F1F1F1" rx="8" ry="8" style="stroke:#181818;stroke-width:0.5;" /><path d="M570.5,83.353 L570.5,110.353 M557.5,91.353 L583.5,91.353 M570.5,110.353 L557.5,125.353 M570.5,110.353 L583.5,125.353 " fill="none" style="stroke:#181818;stroke-width:0.5;" /><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="49" x="546" y="139.8481">Author</text></g><g id="elem_Create Document"><ellipse cx="1067.495" cy="226.052" fill="#F1F1F1" rx="83.995" ry="19.199" style="stroke:#181818;stroke-width:0.5;" /><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="128" x="1003.2335" y="228.9886">Create Document</text></g><g id="elem_Create Item"><ellipse cx="246.3807" cy="225.8291" fill="#F1F1F1" rx="67.8807" ry="15.9761" style="stroke:#181818;stroke-width:0.5;" /><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="87" x="199.8807" y="229.5767">Create Item</text></g><g id="elem_Link Item to Document"><ellipse cx="451.3371" cy="226.0204" fill="#F1F1F1" rx="101.3371" ry="22.6674" style="stroke:#181818;stroke-width:0.5;" /><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="167" x="367.8371" y="228.8671">Link Item to Document</text></g><g id="elem_Link Item to other Item"><ellipse cx="690.7042" cy="225.7938" fill="#F1F1F1" rx="102.7042" ry="22.9408" style="stroke:#181818;stroke-width:0.5;" /><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="170" x="605.7042" y="228.6405">Link Item to other Item</text></g><g id="elem_Edit Item"><ellipse cx="888.5664" cy="225.6252" fill="#F1F1F1" rx="60.0664" ry="14.7722" style="stroke:#181818;stroke-width:0.5;" /><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="67" x="852.0664" y="229.3728">Edit Item</text></g><g id="elem_Review Item"><ellipse cx="74.6011" cy="225.9732" fill="#F1F1F1" rx="68.6011" ry="16.1202" style="stroke:#181818;stroke-width:0.5;" /><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="89" x="27.1011" y="229.7208">Review Item</text></g><g id="elem_Delete Item"><ellipse cx="901.3807" cy="104.8291" fill="#F1F1F1" rx="67.8807" ry="15.9761" style="stroke:#181818;stroke-width:0.5;" /><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="87" x="854.8807" y="108.5767">Delete Item</text></g><g id="elem_Delete Document"><ellipse cx="714.495" cy="105.052" fill="#F1F1F1" rx="83.995" ry="19.199" style="stroke:#181818;stroke-width:0.5;" /><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="128" x="650.2335" y="107.9886">Delete Document</text></g><g id="elem_Export"><ellipse cx="334.6299" cy="105.0092" fill="#F1F1F1" rx="46.6299" ry="14.6562" style="stroke:#181818;stroke-width:0.5;" /><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="49" x="307.1299" y="108.7568">Export</text></g><g id="elem_Import"><ellipse cx="463.3761" cy="105.0174" fill="#F1F1F1" rx="47.3761" ry="14.6644" style="stroke:#181818;stroke-width:0.5;" /><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="50" x="435.3761" y="108.7649">Import</text></g><g id="elem_Reviewer"><ellipse cx="74.5" cy="75.353" fill="#F1F1F1" rx="8" ry="8" style="stroke:#181818;stroke-width:0.5;" /><path d="M74.5,83.353 L74.5,110.353 M61.5,91.353 L87.5,91.353 M74.5,110.353 L61.5,125.353 M74.5,110.353 L87.5,125.353 " fill="none" style="stroke:#181818;stroke-width:0.5;" /><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="66" x="41.5" y="139.8481">Reviewer</text></g><g id="elem_System"><ellipse cx="1355.5" cy="75.353" fill="#F1F1F1" rx="8" ry="8" style="stroke:#181818;stroke-width:0.5;" /><path d="M1355.5,83.353 L1355.5,110.353 M1342.5,91.353 L1368.5,91.353 M1355.5,110.353 L1342.5,125.353 M1355.5,110.353 L1368.5,125.353 " fill="none" style="stroke:#181818;stroke-width:0.5;" /><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="54" x="1328.5" y="139.8481">System</text></g><g id="elem_Suspect Changes"><ellipse cx="1268.3658" cy="225.6262" fill="#F1F1F1" rx="81.8658" ry="18.7732" style="stroke:#181818;stroke-width:0.5;" /><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="123" x="1205.8805" y="228.7993">Suspect Changes</text></g><g id="elem_Integrity"><ellipse cx="1442.5799" cy="225.6041" fill="#F1F1F1" rx="57.0799" ry="14.7511" style="stroke:#181818;stroke-width:0.5;" /><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="63" x="1408.0799" y="229.3517">Integrity</text></g><g id="link_Author_Create Document"><path d="M595.074,131.427 C600.439,135.829 606.361,139.923 612.5,142.853 C756.122,211.3954 809.237,172.7361 965.5,202.853 C979.908,205.63 989.545,207.5913 1004.004,210.6989 " fill="none" id="Author-to-Create Document" style="stroke:#181818;stroke-width:1.0;" /><polygon fill="#181818" points="1009.87,211.9597,1001.9114,206.1579,1004.9816,210.9091,1000.2304,213.9793,1009.87,211.9597" style="stroke:#181818;stroke-width:1.0;" /></g><g id="link_Author_Create Item"><path d="M545.644,130.878 C540.303,135.325 534.461,139.576 528.5,142.853 C507.36,154.4728 369.1587,192.1769 295.5037,211.8567 " fill="none" id="Author-to-Create Item" style="stroke:#181818;stroke-width:1.0;" /><polygon fill="#181818" points="289.707,213.4055,299.4345,214.9467,294.5375,212.1148,297.3694,207.2179,289.707,213.4055" style="stroke:#181818;stroke-width:1.0;" /></g><g id="link_Author_Link Item to Document"><path d="M545.843,130.51 C524.194,152.1586 497.2866,179.0664 476.7886,199.5646 " fill="none" id="Author-to-Link Item to Document" style="stroke:#181818;stroke-width:1.0;" /><polygon fill="#181818" points="472.546,203.8073,481.7384,200.2717,476.0815,200.2717,476.0815,194.6149,472.546,203.8073" style="stroke:#181818;stroke-width:1.0;" /></g><g id="link_Author_Link Item to other Item"><path d="M595.073,130.222 C616.741,151.709 643.7526,178.4951 664.5196,199.089 " fill="none" id="Author-to-Link Item to other Item" style="stroke:#181818;stroke-width:1.0;" /><polygon fill="#181818" points="668.78,203.3138,665.206,194.1363,665.2297,199.7931,659.5729,199.8168,668.78,203.3138" style="stroke:#181818;stroke-width:1.0;" /></g><g id="link_Author_Edit Item"><path d="M595.371,130.85 C600.711,135.3 606.548,139.559 612.5,142.853 C623.16,148.753 771.9508,191.5944 845.0028,212.4614 " fill="none" id="Author-to-Edit Item" style="stroke:#181818;stroke-width:1.0;" /><polygon fill="#181818" points="850.772,214.1094,843.2168,207.7913,845.9643,212.7361,841.0195,215.4836,850.772,214.1094" style="stroke:#181818;stroke-width:1.0;" /></g><g id="link_Author_Review Item"><path d="M545.941,131.46 C540.575,135.859 534.649,139.944 528.5,142.853 C378.704,213.7233 322.71,168.9514 160.5,202.853 C146.169,205.8482 136.439,208.1442 122.564,211.7415 " fill="none" id="Author-to-Review Item" style="stroke:#181818;stroke-width:1.0;" /><polygon fill="#181818" points="116.756,213.2473,126.4718,214.8606,121.596,211.9925,124.4641,207.1166,116.756,213.2473" style="stroke:#181818;stroke-width:1.0;" /></g><g id="link_Author_Delete Item"><path d="M594.23,66.737 C603.756,54.894 615.858,43.27 630,36.853 C697.994,6 726.465,15.456 798,36.853 C832.193,47.081 861.0309,68.7018 880.2659,85.4068 " fill="none" id="Author-to-Delete Item" style="stroke:#181818;stroke-width:1.0;" /><polygon fill="#181818" points="884.796,89.341,880.6237,80.4196,881.0209,86.0625,875.378,86.4597,884.796,89.341" style="stroke:#181818;stroke-width:1.0;" /></g><g id="link_Author_Delete Document"><path d="M595.25,104.853 C606.896,104.853 612.541,104.853 624.187,104.853 " fill="none" id="Author-to-Delete Document" style="stroke:#181818;stroke-width:1.0;" /><polygon fill="#181818" points="630.187,104.853,621.187,100.853,625.187,104.853,621.187,108.853,630.187,104.853" style="stroke:#181818;stroke-width:1.0;" /></g><g id="link_Export_Author"><path d="M349.8642,86.0595 C364.1942,69.4705 386.548,47.526 416,36.853 C455.696,22.468 472.551,19.406 511,36.853 C525.142,43.27 537.244,54.894 546.77,66.737 " fill="none" id="Export-backto-Author" style="stroke:#181818;stroke-width:1.0;" /><polygon fill="#181818" points="345.942,90.6,354.8523,86.404,349.2105,86.8162,348.7983,81.1744,345.942,90.6" style="stroke:#181818;stroke-width:1.0;" /></g><g id="link_Import_Author"><path d="M517.148,104.853 C528.741,104.853 534.333,104.853 545.925,104.853 " fill="none" id="Import-backto-Author" style="stroke:#181818;stroke-width:1.0;" /><polygon fill="#181818" points="511.148,104.853,520.148,108.853,516.148,104.853,520.148,100.853,511.148,104.853" style="stroke:#181818;stroke-width:1.0;" /></g><g id="link_Reviewer_Review Item"><path d="M74.5,142.853 C74.5,165.3683 74.5,186.9244 74.5,203.6702 " fill="none" id="Reviewer-to-Review Item" style="stroke:#181818;stroke-width:1.0;" /><polygon fill="#181818" points="74.5,209.6702,78.5,200.6702,74.5,204.6702,70.5,200.6702,74.5,209.6702" style="stroke:#181818;stroke-width:1.0;" /></g><g id="link_System_Suspect Changes"><path d="M1328.45,142.853 C1312.89,164.1402 1297.5716,185.09 1285.2116,201.9927 " fill="none" id="System-to-Suspect Changes" style="stroke:#181818;stroke-width:1.0;" /><polygon fill="#181818" points="1281.67,206.836,1290.2112,201.9322,1284.6213,202.8,1283.7536,197.2101,1281.67,206.836" style="stroke:#181818;stroke-width:1.0;" /></g><g id="link_System_Integrity"><path d="M1382.55,142.853 C1399.41,165.9141 1416.5989,189.4198 1428.7389,206.0251 " fill="none" id="System-to-Integrity" style="stroke:#181818;stroke-width:1.0;" /><polygon fill="#181818" points="1432.28,210.8687,1430.1974,201.2426,1429.3291,206.8324,1423.7393,205.964,1432.28,210.8687" style="stroke:#181818;stroke-width:1.0;" /></g></g></svg></p>
<p><code>plantuml format="svg_inline" alt="Use Cases of Doorstop" title="Use Cases of Doorstop"
@startuml
Author --&gt; (Create Document)
Author --&gt; (Create Item)
Author --&gt; (Link Item to Document)
Author --&gt; (Link Item to other Item)
Author --&gt; (Edit Item)
Author --&gt; (Review Item)
Author -&gt; (Delete Item)
Author -&gt; (Delete Document)
(Export) &lt;- (Author)
(Import) &lt;- (Author)
Reviewer --&gt; (Review Item)
System --&gt; (Suspect Changes)
System --&gt; (Integrity)
@enduml</code></p>
<p><em>Child links:</em> <a href="TST.html#TST001">TST001</a>, <a href="TST.html#TST002">TST002</a></p>
<h2 id="REQ2-001">2.1 REQ2-001</h2>
<p>Hello, world!</p>
Expand Down
Loading

0 comments on commit 4bf299a

Please sign in to comment.