diff options
Diffstat (limited to 'doc/tangle.html')
-rw-r--r--[-rwxr-xr-x] | doc/tangle.html | 68 |
1 files changed, 36 insertions, 32 deletions
diff --git a/doc/tangle.html b/doc/tangle.html index 02e5905..85ede91 100755..100644 --- a/doc/tangle.html +++ b/doc/tangle.html @@ -3,42 +3,54 @@ <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> -<link rel="stylesheet" href="/fonts/fonts.css"> -<link rel="stylesheet" href="/css/main.css"> -<link rel="apple-touch-icon" sizes="180x180" href="/favicon/apple-touch-icon.png"> -<link rel="icon" type="image/png" sizes="32x32" href="/favicon/favicon-32x32.png"> -<link rel="icon" type="image/png" sizes="16x16" href="/favicon/favicon-16x16.png"> -<link rel="manifest" href="/favicon/site.webmanifest"> -<title>tangle.lp — DistressNetwork°</title> -<style>h3,.lp-ref {font-family: neue-haas-grotesk-text, var(--fs-sans); font-size: 1rem; font-weight: normal; font-style: italic;} h3 {margin: 1rem;}</style> +<style> +* {box-sizing: border-box;} +html { +--fs-sans: Helvetica, "Helvetica Neue", Arial, "San Francisco", sans; +--fs-mono: jetbrains-mono-regular, Consolas, Menlo, monospace; +font-size: 16px; +} +body {background-color: #111; color: #ddd; margin: 2rem calc(50% - 32rem); font-family: var(--fs-sans); font-size: 1rem; font-style: normal;} +body * {line-height: 1.5; text-align: justify; text-justify: inter-word;} +h1,h2 {font-family: var(--fs-sans); margin: 2rem 0 1rem; font-weight: bold; line-height: 1;} +h1 {font-size: 3rem;} +h2 {font-size: 2rem;} +h3 {margin: 1rem; font-size: 1rem; font-weight: normal; font-style: italic;} +code,code * {font-family: var(--fs-mono); hyphens: none; line-height: 1.25rem;} +body>pre {background-color: #000; margin: 1rem; padding: 1rem; white-space: pre-wrap; border-radius: 0.25rem;} +ul,ol {margin: 1rem 0; padding: 0 0 0 2rem;} +ul ul,ol ol {margin: 0;} +.ref {font-family: var(--fs-sans); font-style: italic;} +@media screen and (max-width: 68rem) {body {margin: 2rem calc(50% - 24rem);}} +@media screen and (max-width: 52rem) {body {margin: 2rem calc(50% - 16rem);}} +@media screen and (max-width: 36rem) {body {margin: 2rem; hyphens: auto;} h3,body>pre {margin: 1rem 0;}} +</style> </head> + <body> -<div class="contentlevel"> -<main> -<div class="leading">tangle.lp</div> -<hr> +<h1>tangle.lp</h1> <p>The structure of this file is quite similar to that of <code>weave.zig</code>, only differing in terms of which functions are used to transform the input data.</p> <h3 id="section">*:</h3> -<pre><code><span class="lp-ref">(License)</span> +<pre><code><span class="ref" >(License)</span> -<span class="lp-ref">(Imports)</span> +<span class="ref" >(Imports)</span> pub fn main() !u8 { - <span class="lp-ref">(IO initialization)</span> + <span class="ref" >(IO initialization)</span> - <span class="lp-ref">(Allocator initialization)</span> + <span class="ref" >(Allocator initialization)</span> - <span class="lp-ref">(Read file from stdin)</span> + <span class="ref" >(Read file from stdin)</span> - <span class="lp-ref">(Split into lines)</span> + <span class="ref" >(Split into lines)</span> - <span class="lp-ref">(Parse lines into sections)</span> + <span class="ref" >(Parse lines into sections)</span> - <span class="lp-ref">(Generate code)</span> + <span class="ref" >(Generate code)</span> - <span class="lp-ref">(Write to stdout)</span> + <span class="ref" >(Write to stdout)</span> return 0; } @@ -46,8 +58,8 @@ pub fn main() !u8 { <h3 id="license">License:</h3> -<pre><code>// Copyright 2022 DistressNetwork° <uplink@distress.network> -// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. +<pre><code>// Copyright 2022 DistressNetwork° <uplink@distress.network> +// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. </code></pre> <p>First we import the other files containing the core functions.</p> @@ -132,13 +144,5 @@ defer arena.deinit(); try stdout.writer().print("{s}\n", .{line}); } </code></pre> -</main> -<nav> -</nav> -</div> -<footer> -<p><a href="/info">About.</a> <a href="mailto:uplink@distress.network">Contact.</a> <a href="/cw.html">Content Warning.</a> <a href="https://git.distress.network">Git.</a> <a href="/meta/sitemap">Sitemap.</a> <a href="https://creativecommons.org/licenses/by-sa/4.0">CC BY-SA 4.0.</a></p> -<img src="/media/distressnetwork-w.svg" alt=""> -</footer> </body> -</html> +</html>
\ No newline at end of file |