diff --git a/doc/langref.html.in b/doc/langref.html.in index 3a2398ef0..8286ef3cb 100644 --- a/doc/langref.html.in +++ b/doc/langref.html.in @@ -36,25 +36,53 @@ code { font-size: 12pt; } - @media screen and (min-width: 28.75em) { + pre > code { + display: block; + overflow: auto; + } + .table-wrapper { + width: 100%; + overflow-y: auto; + } + /* Desktop */ + @media screen and (min-width: 56.25em) { #nav { width: 20em; height: 100%; - overflow-y: scroll; position: fixed; + overflow-y: scroll; left: 0; top: 0; + padding-left: 1em; } #contents { - max-width: 50em; + max-width: 60em; padding-left: 22em; + padding: 1em; + padding-left: 24em; + } + .page-title { + /* half-size since h1 */ + padding-left: 12em; + margin-bottom: 2em; + } + } + /* Mobile */ + @media screen and (max-width: 56.25em) { + body, code { + font-size: small; + } + #nav { + border-bottom: 1px solid grey; } } +

Zig Documentation

{#header_open|Introduction#} @@ -173,6 +201,7 @@ pub fn main() %void { } {#code_end#} {#header_open|Primitive Types#} +
@@ -398,9 +427,11 @@ pub fn main() %void { an error code
+
{#see_also|Integers|Floats|void|Errors#} {#header_close#} {#header_open|Primitive Values#} +
@@ -427,6 +458,7 @@ pub fn main() %void { refers to the thing in immediate scope
+
{#see_also|Nullables|this#} {#header_close#} {#header_open|String Literals#} @@ -451,6 +483,7 @@ test "string literals" { {#code_end#} {#see_also|Arrays|Zig Test#} {#header_open|Escape Sequences#} +
@@ -497,6 +530,7 @@ test "string literals" { hexadecimal 24-bit Unicode character code UTF-8 encoded (6 digits)
+

Note that the maximum valid Unicode point is 0x10ffff.

{#header_close#} {#header_open|Multiline String Literals#} @@ -674,6 +708,7 @@ pub fn main() %void { {#header_close#} {#header_open|Operators#} {#header_open|Table of Operators#} +
@@ -1246,6 +1281,7 @@ const ptr = &x;
+
{#header_close#} {#header_open|Precedence#}
x() x[] x.y