eclipse-capella / capella-xhtml-docgen

XHTML Documentation Generation AddOn provides output HTML files for Capella model
Eclipse Public License 2.0
10 stars 13 forks source link

Treeview in sidebar is duplicated #229

Open rolling-robot opened 1 year ago

rolling-robot commented 1 year ago

I essentially have two HTML pages in one inside output/\<project>/sidebar.html:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

    <head>
        <link rel="stylesheet" href="../../scripts/jquery-treeview/jquery.treeview.css" />
        <script src="../../scripts/jquery-treeview/lib/jquery-1.11.1.js" type="text/javascript"></script>
        <script src="../../scripts/jquery-treeview/jquery.treeview.js" type="text/javascript"></script>

A list of elements in project goes on... then a script to show treeview... and suddenly one more page ....

</ul>
    <script type="text/javascript">
        $("#treemenu1").treeview({
         collapsed: true,
         animated: "fast",
         unique: false,
         control: "#treecontrol"
        });
    </script>
   </body>
</html><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

    <head>
        <link rel="stylesheet" href="../../scripts/jquery-treeview/jquery.treeview.css" />
        <script src="../../scripts/jquery-treeview/lib/jquery-1.11.1.js" type="text/javascript"></script>
        <script src="../../scripts/jquery-treeview/jquery.treeview.js" type="text/javascript"></script>
        <link rel="stylesheet" type="text/css" href="../../css/simpletree.css" />

But this time with a list with a single element and one more proper closing tags

<img src="../icon/Project.png" alt="Project"/> <a href="../system-architecture/d5ca95541593479485ae0eb080e9d7d8.html" target="content">system&#045;architecture</a>

</li>
</ul>
    <script type="text/javascript">
        $("#treemenu1").treeview({
         collapsed: true,
         animated: "fast",
         unique: false,
         control: "#treecontrol"
        });
    </script>
   </body>
</html>

As a result I cannot unfold the list in the first part that has the content of interest. Manually deleting the second HTML part did solve the problem for me, but it would be nice to fix it on the generation side...