diff options
author | Dimitri van Heesch <doxygen@gmail.com> | 2021-05-08 14:41:58 (GMT) |
---|---|---|
committer | Dimitri van Heesch <doxygen@gmail.com> | 2021-05-08 14:41:58 (GMT) |
commit | a9d29861fe6ad3c182d6cded2e3636a20086fc96 (patch) | |
tree | 1ce85df6be6068586bf010f5b1ab03eaa510d85d /src/htmlgen.cpp | |
parent | ae0844009961225fe7b9755cb5e3e0a2ee90f00c (diff) | |
parent | 12a6d876e3ff0004e288f1c7fadb10d0431bfc24 (diff) | |
download | Doxygen-a9d29861fe6ad3c182d6cded2e3636a20086fc96.zip Doxygen-a9d29861fe6ad3c182d6cded2e3636a20086fc96.tar.gz Doxygen-a9d29861fe6ad3c182d6cded2e3636a20086fc96.tar.bz2 |
Merge branch 'sidebar_layout'
Diffstat (limited to 'src/htmlgen.cpp')
-rw-r--r-- | src/htmlgen.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp index ea20707..c15b205 100644 --- a/src/htmlgen.cpp +++ b/src/htmlgen.cpp @@ -385,6 +385,9 @@ static QCString substituteHtmlKeywords(const QCString &str, if (treeView) { treeViewCssJs = "<link href=\"$relpath^navtree.css\" rel=\"stylesheet\" type=\"text/css\"/>\n" + "<script type=\"text/javascript\">var page_layout="; + treeViewCssJs += Config_getBool(DISABLE_INDEX) ? "1" : "0"; + treeViewCssJs += ";</script>\n" "<script type=\"text/javascript\" src=\"$relpath^resize.js\"></script>\n" "<script type=\"text/javascript\" src=\"$relpath^navtreedata.js\"></script>\n" "<script type=\"text/javascript\" src=\"$relpath^navtree.js\"></script>\n"; @@ -2556,8 +2559,12 @@ QCString HtmlGenerator::writeSplitBarAsString(const QCString &name,const QCStrin // write split bar if (generateTreeView) { - result = QCString( - "<div id=\"side-nav\" class=\"ui-resizable side-nav-resizable\">\n" + if (!Config_getBool(DISABLE_INDEX)) + { + result += QCString( + "<div id=\"side-nav\" class=\"ui-resizable side-nav-resizable\">\n"); + } + result+= QCString( " <div id=\"nav-tree\">\n" " <div id=\"nav-tree-contents\">\n" " <div id=\"nav-sync\" class=\"sync\"></div>\n" |