| ... | ... | @@ -7,6 +7,7 @@ |
| 7 | 7 | <style> |
| 8 | 8 | body{ |
| 9 | 9 | font-family: system-ui, -apple-system, Roboto, "Segoe UI", sans-serif; |
| 10 | margin: 0; |
| 10 | 11 | } |
| 11 | 12 | a:not(:hover) { |
| 12 | 13 | text-decoration: none; |
| ... | ... | @@ -80,11 +81,35 @@ |
| 80 | 81 | font-weight: bold; |
| 81 | 82 | } |
| 82 | 83 | |
| 84 | #main-wrapper { |
| 85 | display: flex; |
| 86 | flex-direction: column; |
| 87 | height: 100vh; |
| 88 | } |
| 89 | |
| 90 | #contents-wrapper { |
| 91 | flex-grow: 1; |
| 92 | padding: 0 2em; |
| 93 | } |
| 94 | |
| 83 | 95 | #contents { |
| 84 | 96 | max-width: 60em; |
| 85 | 97 | margin: auto; |
| 86 | 98 | } |
| 87 | 99 | |
| 100 | #index { |
| 101 | padding: 0 1em; |
| 102 | } |
| 103 | |
| 104 | @media screen and (min-width: 1025px) { |
| 105 | #main-wrapper { |
| 106 | flex-direction: row; |
| 107 | } |
| 108 | #contents-wrapper, #index { |
| 109 | overflow: auto; |
| 110 | } |
| 111 | } |
| 112 | |
| 88 | 113 | h1 a, h2 a, h3 a, h4 a, h5 a { |
| 89 | 114 | text-decoration: none; |
| 90 | 115 | color: #333; |
| ... | ... | @@ -155,13 +180,18 @@ |
| 155 | 180 | </style> |
| 156 | 181 | </head> |
| 157 | 182 | <body> |
| 158 | | <a href="https://ziglang.org/documentation/0.1.1">0.1.1</a> | |
| 159 | | <a href="https://ziglang.org/documentation/0.2.0">0.2.0</a> | |
| 160 | | <a href="https://ziglang.org/documentation/0.3.0">0.3.0</a> | |
| 161 | | <a href="https://ziglang.org/documentation/0.4.0">0.4.0</a> | |
| 162 | | <a href="https://ziglang.org/documentation/0.5.0">0.5.0</a> | |
| 163 | | master |
| 164 | | <div id="contents"> |
| 183 | <div id="main-wrapper"> |
| 184 | <div id="index"> |
| 185 | <a href="https://ziglang.org/documentation/0.1.1">0.1.1</a> | |
| 186 | <a href="https://ziglang.org/documentation/0.2.0">0.2.0</a> | |
| 187 | <a href="https://ziglang.org/documentation/0.3.0">0.3.0</a> | |
| 188 | <a href="https://ziglang.org/documentation/0.4.0">0.4.0</a> | |
| 189 | <a href="https://ziglang.org/documentation/0.5.0">0.5.0</a> | |
| 190 | master |
| 191 | <h1>Index</h1> |
| 192 | {#nav#} |
| 193 | </div> |
| 194 | <div id="contents-wrapper"><div id="contents"> |
| 165 | 195 | {#header_open|Introduction#} |
| 166 | 196 | <p> |
| 167 | 197 | Zig is a general-purpose programming language for maintaining <strong>robust</strong>, |
| ... | ... | @@ -194,10 +224,6 @@ |
| 194 | 224 | </p> |
| 195 | 225 | {#header_close#} |
| 196 | 226 | |
| 197 | | {#header_open|Index#} |
| 198 | | {#nav#} |
| 199 | | {#header_close#} |
| 200 | | |
| 201 | 227 | {#header_open|Hello World#} |
| 202 | 228 | |
| 203 | 229 | {#code_begin|exe|hello#} |
| ... | ... | @@ -6556,7 +6582,7 @@ fn readFile(allocator: *Allocator, filename: []const u8) ![]u8 { |
| 6556 | 6582 | {#header_close#} |
| 6557 | 6583 | |
| 6558 | 6584 | {#header_close#} |
| 6559 | | {#header_open|Builtin Functions|3col#} |
| 6585 | {#header_open|Builtin Functions|2col#} |
| 6560 | 6586 | <p> |
| 6561 | 6587 | Builtin functions are provided by the compiler and are prefixed with <code>@</code>. |
| 6562 | 6588 | The {#syntax#}comptime{#endsyntax#} keyword on a parameter means that the parameter must be known |
| ... | ... | @@ -10621,6 +10647,7 @@ keyword &lt;- KEYWORD_align / KEYWORD_and / KEYWORD_allowzero / KEYWORD_asm |
| 10621 | 10647 | <li>Together we serve end users.</li> |
| 10622 | 10648 | </ul> |
| 10623 | 10649 | {#header_close#} |
| 10650 | </div></div> |
| 10624 | 10651 | </div> |
| 10625 | 10652 | </body> |
| 10626 | 10653 | </html> |