summaryrefslogtreecommitdiff
path: root/doc/log.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/log.html')
-rw-r--r--[-rwxr-xr-x]doc/log.html64
1 files changed, 34 insertions, 30 deletions
diff --git a/doc/log.html b/doc/log.html
index 59e9627..3e32826 100755..100644
--- a/doc/log.html
+++ b/doc/log.html
@@ -3,37 +3,49 @@
<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>log.lp &mdash; 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">log.lp</div>
-<hr>
+<h1>log.lp</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="lp-ref">(License)</span>
+<pre><code><span class="ref" >(License)</span>
-<span class="lp-ref">(Imports)</span>
+<span class="ref" >(Imports)</span>
-<span class="lp-ref">(Level setting)</span>
+<span class="ref" >(Level setting)</span>
-<span class="lp-ref">(Logging function)</span>
+<span class="ref" >(Logging function)</span>
</code></pre>
<h3 id="license">License:</h3>
-<pre><code>// Copyright 2022 DistressNetwork° &#60;uplink@distress.network&#62;
-// 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>&#47;&#47; Copyright 2022 DistressNetwork° &#60;uplink@distress.network&#62;
+&#47;&#47; 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:&#47;&#47;mozilla.org&#47;MPL&#47;2.0&#47;.
</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>
@@ -60,11 +72,11 @@ const Level = std.log.Level;
comptime format: []const u8,
args: anytype,
) void {
- <span class="lp-ref">(Compare with level threshold)</span>
+ <span class="ref" >(Compare with level threshold)</span>
- <span class="lp-ref">(Define message string)</span>
+ <span class="ref" >(Define message string)</span>
- <span class="lp-ref">(Print to console)</span>
+ <span class="ref" >(Print to console)</span>
}
</code></pre>
@@ -93,13 +105,5 @@ 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>
+</html> \ No newline at end of file