summaryrefslogtreecommitdiff
path: root/doc/log.html
diff options
context:
space:
mode:
authoreudoxia <uplink@distress.network>2022-04-01 00:04:08 -0400
committereudoxia <uplink@distress.network>2022-04-01 00:04:08 -0400
commiteac46231ab86e3b6a3862c92323ee58fe1ee722b (patch)
tree0440a92a680eb402735991cd4fa791de0c6437fa /doc/log.html
parent27f4773b122a2758cfaf88537c9e1a8ad5df7e69 (diff)
doc generation integrated with distress.network
Diffstat (limited to 'doc/log.html')
-rw-r--r--doc/log.html58
1 files changed, 28 insertions, 30 deletions
diff --git a/doc/log.html b/doc/log.html
index f82d41e..5a538c3 100644
--- a/doc/log.html
+++ b/doc/log.html
@@ -3,42 +3,32 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<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>
+<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>log.lp &mdash; DistressNetwork°</title>
+<meta http-equiv="last-modified" content="2022-03-31 23:28:57-04:00" />
+<style>.lp-ref {font-family: neue-haas-grotesk-text, var(--fs-sans); font-style: italic;}</style>
</head>
-
<body>
+<div class="contentlevel">
+<main>
+<div class="leading">log.lp</div>
+<hr>
<h1 id="log.zig">log.zig</h1>
<p>This file contains a simple logging function. It is a modified version of the example logging function implementation provided in <code>std.log</code>.</p>
<h3 id="section">*:</h3>
-<pre><code><span class="ref" >(Imports)</span>
+<pre><code><span class="lp-ref">(Imports)</span>
-<span class="ref" >(Level setting)</span>
+<span class="lp-ref">(Level setting)</span>
-<span class="ref" >(Logging function)</span>
+<span class="lp-ref">(Logging function)</span>
</code></pre>
<p>We first import the standard library, and the <code>Level</code> type which is an enum representing the possible log levels.</p>
@@ -65,11 +55,11 @@ const Level = std.log.Level;
comptime format: []const u8,
args: anytype,
) void {
- <span class="ref" >(Compare with level threshold)</span>
+ <span class="lp-ref">(Compare with level threshold)</span>
- <span class="ref" >(Define message string)</span>
+ <span class="lp-ref">(Define message string)</span>
- <span class="ref" >(Print to console)</span>
+ <span class="lp-ref">(Print to console)</span>
}
</code></pre>
@@ -98,5 +88,13 @@ const Level = std.log.Level;
<pre><code>const stderr = std.io.getStdErr().writer();
nosuspend stderr.print(msg, args) catch return;
</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> \ No newline at end of file
+</html>