Skip to content

Commit 6fc858c

Browse files
committed
update autodocs web application to latest
upstream commit 7d6c9bc03f7b7ff291a8375ad5e7c3a1512e9c78 after this branch is merged, ziglang/zig becomes the new repository for this code.
1 parent 6b8c754 commit 6fc858c

File tree

8 files changed

+1074
-330
lines changed

8 files changed

+1074
-330
lines changed

lib/docs/index.html

Lines changed: 57 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
.hidden {
1313
display: none;
1414
}
15+
table {
16+
width: 100%;
17+
}
1518
a {
1619
color: #2A6286;
1720
}
@@ -25,25 +28,38 @@
2528
}
2629
code {
2730
font-family:"Source Code Pro",monospace;
28-
font-size:1em;
31+
font-size: 0.9em;
2932
}
3033
code a {
3134
color: #000000;
3235
}
33-
#listFields > div {
36+
#listFields > div, #listParams > div {
3437
margin-bottom: 1em;
3538
}
39+
#hdrName a {
40+
font-size: 0.7em;
41+
padding-left: 1em;
42+
}
3643
.fieldDocs {
3744
border: 1px solid #F5F5F5;
3845
border-top: 0px;
3946
padding: 1px 1em;
4047
}
4148

49+
#logo {
50+
width: 8em;
51+
padding: 0.5em 1em;
52+
}
4253

4354
#navWrap {
44-
float: left;
45-
width: 47em;
46-
margin-left: 1em;
55+
width: -moz-available;
56+
width: -webkit-fill-available;
57+
width: stretch;
58+
margin-left: 11em;
59+
}
60+
61+
#search {
62+
width: 100%;
4763
}
4864

4965
nav {
@@ -102,15 +118,6 @@
102118
color: #000;
103119
}
104120

105-
#logo {
106-
width: 8em;
107-
padding: 0.5em 1em;
108-
}
109-
110-
#search {
111-
width: 100%;
112-
}
113-
114121
#helpDialog {
115122
width: 21em;
116123
height: 21em;
@@ -154,6 +161,12 @@
154161
font-weight: bold;
155162
}
156163

164+
dl > div {
165+
padding: 0.5em;
166+
border: 1px solid #c0c0c0;
167+
margin-top: 0.5em;
168+
}
169+
157170
td {
158171
vertical-align: top;
159172
margin: 0;
@@ -163,6 +176,10 @@
163176
overflow-x: hidden;
164177
}
165178

179+
ul.columns {
180+
column-width: 20em;
181+
}
182+
166183
.tok-kw {
167184
color: #333;
168185
font-weight: bold;
@@ -193,18 +210,19 @@
193210
}
194211

195212
@media (prefers-color-scheme: dark) {
196-
body{
213+
body {
197214
background-color: #111;
198215
color: #bbb;
199216
}
217+
pre {
218+
background-color: #222;
219+
color: #ccc;
220+
}
200221
a {
201222
color: #88f;
202223
}
203224
code a {
204-
color: #bbb;
205-
}
206-
pre{
207-
background-color:#2A2A2A;
225+
color: #ccc;
208226
}
209227
.fieldDocs {
210228
border-color:#2A2A2A;
@@ -229,6 +247,9 @@
229247
#listSearchResults li.selected a {
230248
color: #fff;
231249
}
250+
dl > div {
251+
border-color: #373737;
252+
}
232253
.tok-kw {
233254
color: #eee;
234255
}
@@ -242,7 +263,7 @@
242263
color: #aa7;
243264
}
244265
.tok-fn {
245-
color: #e33;
266+
color: #B1A0F8;
246267
}
247268
.tok-null {
248269
color: #ff8080;
@@ -258,7 +279,7 @@
258279
</head>
259280
<body>
260281
<nav>
261-
<div class="logo">
282+
<a class="logo" href="#">
262283
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 140">
263284
<g fill="#F7A41D">
264285
<g>
@@ -297,19 +318,24 @@
297318
</g>
298319
</g>
299320
</svg>
300-
</div>
321+
</a>
301322
</nav>
302323
<div id="navWrap">
303324
<input type="search" id="search" autocomplete="off" spellcheck="false" placeholder="`s` to search, `?` to see more options">
304325
<div id="sectNav" class="hidden"><ul id="listNav"></ul></div>
305326
</div>
306327
<section>
307328
<p id="status">Loading...</p>
329+
<h1 id="hdrName" class="hidden"><span></span><a href="#">[src]</a></h1>
308330
<div id="fnProto" class="hidden">
309331
<pre><code id="fnProtoCode"></code></pre>
310332
</div>
311-
<h1 id="hdrName" class="hidden"></h1>
312333
<div id="tldDocs" class="hidden"></div>
334+
<div id="sectParams" class="hidden">
335+
<h2>Parameters</h2>
336+
<div id="listParams">
337+
</div>
338+
</div>
313339
<div id="sectFnErrors" class="hidden">
314340
<h2>Errors</h2>
315341
<div id="fnErrorsAnyError">
@@ -332,12 +358,12 @@ <h2>Fields</h2>
332358
</div>
333359
<div id="sectTypes" class="hidden">
334360
<h2>Types</h2>
335-
<ul id="listTypes">
361+
<ul id="listTypes" class="columns">
336362
</ul>
337363
</div>
338364
<div id="sectNamespaces" class="hidden">
339365
<h2>Namespaces</h2>
340-
<ul id="listNamespaces">
366+
<ul id="listNamespaces" class="columns">
341367
</ul>
342368
</div>
343369
<div id="sectGlobalVars" class="hidden">
@@ -347,21 +373,21 @@ <h2>Global Variables</h2>
347373
</tbody>
348374
</table>
349375
</div>
350-
<div id="sectFns" class="hidden">
351-
<h2>Functions</h2>
352-
<dl id="listFns">
353-
</dl>
354-
</div>
355376
<div id="sectValues" class="hidden">
356377
<h2>Values</h2>
357378
<table>
358379
<tbody id="listValues">
359380
</tbody>
360381
</table>
361382
</div>
383+
<div id="sectFns" class="hidden">
384+
<h2>Functions</h2>
385+
<dl id="listFns">
386+
</dl>
387+
</div>
362388
<div id="sectErrSets" class="hidden">
363389
<h2>Error Sets</h2>
364-
<ul id="listErrSets">
390+
<ul id="listErrSets" class="columns">
365391
</ul>
366392
</div>
367393
<div id="sectDocTests" class="hidden">

0 commit comments

Comments
 (0)