|
| 1 | +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
| 2 | + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 3 | +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
| 4 | + <head> |
| 5 | + <title>${title.encodeAsHtml()} ${version}</title> |
| 6 | + <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 7 | + <link rel="stylesheet" href="${resourcesPath}/css/main.css" type="text/css" media="screen, print" title="Style" charset="utf-8" /> |
| 8 | + <link rel="stylesheet" href="${resourcesPath}/css/pdf.css" type="text/css" media="print" title="PDF" charset="utf-8" /> |
| 9 | + <script type="text/javascript"> |
| 10 | +function addJsClass(el) { |
| 11 | + var classes = document.body.className.split(" "); |
| 12 | + classes.push("js"); |
| 13 | + document.body.className = classes.join(" "); |
| 14 | +} |
| 15 | + </script> |
| 16 | + </head> |
| 17 | + |
| 18 | + <body class="body" onload="addJsClass();"> |
| 19 | + <div id="navigation"> |
| 20 | + <div class="navHeader"> |
| 21 | + <% if (logo) { %> |
| 22 | + <span id="logo">${logo}</span> |
| 23 | + <% } else { %> |
| 24 | + <span id="logo"> |
| 25 | + <a href="https://graceframework.org" title="Go to Grace Framework Website"> |
| 26 | + <img src="${resourcesPath}/img/grace.svg" alt="Grace Framework" /> |
| 27 | + </a> |
| 28 | + </span> |
| 29 | + <% } %> |
| 30 | + <div class="docHeader"> |
| 31 | + <h1 class="docTitle">${docTitle.encodeAsHtml()}</h1> |
| 32 | + <h3 class="docSubTitle">${subtitle.encodeAsHtml()}</h3> |
| 33 | + <span class="docVersion">${version}</span> |
| 34 | + </div> |
| 35 | + </div> |
| 36 | + <div class="navLinks"> |
| 37 | + <ul> |
| 38 | + <li> |
| 39 | + <div id="nav-summary" onmouseover="toggleNavSummary(false)" onmouseout="toggleNavSummary(true)"> |
| 40 | + <a href="${path}/guide/index.html" class="button">Table of contents</a> |
| 41 | + <div id="nav-summary-childs" style="display:none;"> |
| 42 | + <% |
| 43 | + toc.children.eachWithIndex { ch, i -> |
| 44 | + if (single) { |
| 45 | + %> |
| 46 | + <div class="toc-item" style="margin-left:0"><a href="#${ ch.name.encodeAsUrlFragment().encodeAsHtml() }"><strong>${i + 1}</strong><span>${ch.title?.encodeAsHtml()}</span></a></div> |
| 47 | + <% |
| 48 | + } |
| 49 | + else { |
| 50 | + %> |
| 51 | + <div class="toc-item" style="margin-left:0"><a href="${path}/guide/${ch.name.encodeAsUrlPath().encodeAsHtml()}.html"><strong>${i + 1}</strong><span>${ch.title?.encodeAsHtml()}</span></a></div> |
| 52 | + <% |
| 53 | + } |
| 54 | + } |
| 55 | + %> |
| 56 | + </div> |
| 57 | + </div> |
| 58 | + </li> |
| 59 | + <!-- <li class="separator selected"> |
| 60 | + <a id="ref-button" onclick="localToggle(); return false;" href="#">Quick Reference</a> |
| 61 | + </li> --> |
| 62 | + <li class="separator selected"> |
| 63 | + <a id="ref-button" href="${resourcesPath}/api/index.html">API Docs</a> |
| 64 | + </li> |
| 65 | + </ul> |
| 66 | + |
| 67 | + </div> |
| 68 | + </div> |
| 69 | + |
| 70 | + <table id="colset" cellpadding="0" cellspacing="0"> |
| 71 | + <tr> |
| 72 | + <td id="col1"> |
| 73 | + <div id="main" class="corner-all"> |
| 74 | + |
| 75 | + <span id='toggle-col1' class="toggle">(<a href="#" onclick="localToggle(); return false;">Quick Reference</a>)</span> |
| 76 | + |
| 77 | + <div class="project"> |
| 78 | + <h1>${title.encodeAsHtml()}</h1> |
| 79 | + <p><strong>Authors:</strong> ${authors}</p> |
| 80 | + <p><strong>Version:</strong> ${version}</p> |
| 81 | + <% if (translators) { %> |
| 82 | + <p><strong>Translated by:</strong> ${translators}</p> |
| 83 | + <% } %> |
| 84 | + </div> |
| 85 | + |
| 86 | + <% if(toc){ %> |
| 87 | + <div id="table-of-content"> |
| 88 | + <h2>Table of Contents</h2> |
| 89 | + <% |
| 90 | + sectionWriter = { lvl, section, topSection, prefix -> |
| 91 | + if (single) { |
| 92 | + %> |
| 93 | + <div class="toc-item" style="margin-left:${lvl * 10}px"><a href="#${ section.name.encodeAsUrlFragment().encodeAsHtml() }"><strong>$prefix</strong><span>${section.title?.encodeAsHtml()}</span></a></div> |
| 94 | + <% |
| 95 | + } |
| 96 | + else { |
| 97 | + %> |
| 98 | + <div class="toc-item" style="margin-left:${lvl * 10}px"><a href="${path}/guide/${topSection.name.encodeAsUrlPath().encodeAsHtml()}.html${ lvl == 0 ? '' : '#' + section.name.encodeAsUrlFragment().encodeAsHtml() }"><strong>$prefix</strong><span>${section.title?.encodeAsHtml()}</span></a></div> |
| 99 | + <% |
| 100 | + } |
| 101 | + |
| 102 | + lvl++ |
| 103 | + section.children.eachWithIndex { s, j -> |
| 104 | + sectionWriter.call(lvl, s, topSection, prefix + '.' + (j + 1)) |
| 105 | + } |
| 106 | + } |
| 107 | + |
| 108 | + toc.children.eachWithIndex { topSection, i -> |
| 109 | + sectionWriter.call(0, topSection, topSection, i + 1) |
| 110 | + } |
| 111 | + %> |
| 112 | + <div style="clear:both" ></div> |
| 113 | + </div> |
| 114 | + <% } %> |
| 115 | + ${content} |
| 116 | + </div> |
| 117 | + </td> |
| 118 | + <td id="col2"> |
| 119 | + <div class="local clearfix"> |
| 120 | + <div class="local-title"> |
| 121 | + <a href="${path}/guide/index.html" target="mainFrame">Quick Reference</a> |
| 122 | + <span class="toggle">(<a href="#" onclick="localToggle(); return false;">hide</a>)</span> |
| 123 | + </div> |
| 124 | + <div class="menu"> |
| 125 | + <% for (cat in refMenu) { %> |
| 126 | + <div class="menu-block"><h1 class="menu-title" onclick="toggleRef(this.parentNode.childNodes[1])">${cat.name.encodeAsHtml()}</h1><div class="menu-sub"> |
| 127 | + <% if (cat.usage.exists()) { %> |
| 128 | + <div class="menu-item"><a href="${path}/ref/${cat.name.encodeAsUrlPath().encodeAsHtml()}/Usage.html">Usage</a></div> |
| 129 | + <% } %> |
| 130 | + <% for (txt in cat.sections) { %> |
| 131 | + <div class="menu-item"><a href="${path}/ref/${cat.name.encodeAsUrlPath().encodeAsHtml()}/${txt.name[0..-6].encodeAsUrlPath().encodeAsHtml()}.html">${txt.name[0..-6].encodeAsHtml()}</a> |
| 132 | + </div> |
| 133 | + <% } %> |
| 134 | + </div> |
| 135 | + </div> |
| 136 | + <% } %> |
| 137 | + </div> |
| 138 | + </div> |
| 139 | + </td> |
| 140 | + </tr> |
| 141 | + </table> |
| 142 | + |
| 143 | + <div id="footer"> |
| 144 | + ${copyright} |
| 145 | + ${footer} |
| 146 | + </div> |
| 147 | + |
| 148 | +<script type="text/javascript" src="${resourcesPath}/js/docs.js"></script> |
| 149 | + |
| 150 | + </body> |
| 151 | +</html> |
0 commit comments