From b13a55db97b14fac0462d2a1cb83be8dcb2eb335 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 10 Mar 2024 17:53:51 -0700 Subject: [PATCH] update autodocs web application to latest upstream commit 1f921d540e1a8bb40839be30239019c820eb663d after this branch is merged, ziglang/zig becomes the new repository for this code. --- lib/docs/index.html | 88 +++-- lib/docs/main.js | 550 +++++++++++++++++----------- lib/docs/wasm/Decl.zig | 54 ++- lib/docs/wasm/Walk.zig | 258 +++++++++++-- lib/docs/wasm/main.zig | 435 +++++++++++++++++++--- lib/docs/wasm/markdown.zig | 9 +- lib/docs/wasm/markdown/Parser.zig | 3 +- lib/docs/wasm/markdown/renderer.zig | 7 +- 8 files changed, 1074 insertions(+), 330 deletions(-) diff --git a/lib/docs/index.html b/lib/docs/index.html index 5e74723410..22380138cc 100644 --- a/lib/docs/index.html +++ b/lib/docs/index.html @@ -12,6 +12,9 @@ .hidden { display: none; } + table { + width: 100%; + } a { color: #2A6286; } @@ -25,25 +28,38 @@ } code { font-family:"Source Code Pro",monospace; - font-size:1em; + font-size: 0.9em; } code a { color: #000000; } - #listFields > div { + #listFields > div, #listParams > div { margin-bottom: 1em; } + #hdrName a { + font-size: 0.7em; + padding-left: 1em; + } .fieldDocs { border: 1px solid #F5F5F5; border-top: 0px; padding: 1px 1em; } + #logo { + width: 8em; + padding: 0.5em 1em; + } #navWrap { - float: left; - width: 47em; - margin-left: 1em; + width: -moz-available; + width: -webkit-fill-available; + width: stretch; + margin-left: 11em; + } + + #search { + width: 100%; } nav { @@ -102,15 +118,6 @@ color: #000; } - #logo { - width: 8em; - padding: 0.5em 1em; - } - - #search { - width: 100%; - } - #helpDialog { width: 21em; height: 21em; @@ -154,6 +161,12 @@ font-weight: bold; } + dl > div { + padding: 0.5em; + border: 1px solid #c0c0c0; + margin-top: 0.5em; + } + td { vertical-align: top; margin: 0; @@ -163,6 +176,10 @@ overflow-x: hidden; } + ul.columns { + column-width: 20em; + } + .tok-kw { color: #333; font-weight: bold; @@ -193,18 +210,19 @@ } @media (prefers-color-scheme: dark) { - body{ + body { background-color: #111; color: #bbb; } + pre { + background-color: #222; + color: #ccc; + } a { color: #88f; } code a { - color: #bbb; - } - pre{ - background-color:#2A2A2A; + color: #ccc; } .fieldDocs { border-color:#2A2A2A; @@ -229,6 +247,9 @@ #listSearchResults li.selected a { color: #fff; } + dl > div { + border-color: #373737; + } .tok-kw { color: #eee; } @@ -242,7 +263,7 @@ color: #aa7; } .tok-fn { - color: #e33; + color: #B1A0F8; } .tok-null { color: #ff8080; @@ -258,7 +279,7 @@

Loading...

+

[src]

-

+