commit 1a9754844ffda2c971a96353eaeedac94ce5019b
parent 3402a1e461c0a5e99cd60ee74cafe050ba87812c
Author: nxuv <nxuv@disr.it>
Date: Wed, 11 Mar 2026 18:01:42 +0300
update
Diffstat:
21 files changed, 193 insertions(+), 79 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -1,4 +1,4 @@
-node_modules/
-package-lock.json
+/node_modules/
+/package-lock.json
/.vim-session
-public/
+/public/
diff --git a/README.md b/README.md
@@ -10,13 +10,27 @@ git lfs pull
## Building
+run `make`
+
+## How to `wht`
+
+- No newline at start or end of file
+- Newline after title
+- Newline before title
+<!-- - No newline before or after code block -->
+- Instead of code block surround text with newlines and
+ add a single space before
+- 1. `title ____`
+- 2. `[000] Index ___`
+- 3. `[...] section ___`
+- 4. `[...] References ___`
+
## Syntax
Everything is mostly plain text with exception of:
```
-[text](href) -> inserted as html link with &/ prefix (or ^/ ..?)
https?://.+ -> inserted as link as is
@/link -> relative link, at /wiki @/page = /wiki/page
@@ -30,3 +44,15 @@ $/link -> github link, $/nxuv/wiki = github link to it
%%FILE%% -> path without extension
```
+
+## Fixing font blur
+
+Either of those will help. Though on some systems it will not help as much.
+
+```css
+transform:translate(0.25px,0.25px)
+```
+
+```css
+display: inline-block;transform: translate(0,0);
+```
diff --git a/index-pages.sh b/index-pages.sh
@@ -1,19 +0,0 @@
-#!/usr/bin/env bash
-
-WIKI_PAGES="$(ls public/w --color=never -1 | grep ".md")"
-WIKI_PAGES="$(echo "$WIKI_PAGES" | sed -r 's|(.*)\.md$|[\1](w/\0)|')"
-
-META_PAGES="$(ls public/m --color=never -1 | grep ".md")"
-META_PAGES="$(echo "$META_PAGES" | sed -r 's|(.*)\.md$|[\1](m/\0)|')"
-
-PAGES="$(echo -e "[index](/)\n$WIKI_PAGES\n$META_PAGES")"
-
-PAGES="$(echo "$PAGES" | sort)"
-
-echo "||||" > public/all_pages.md
-echo "|:-|:-|:-|" >> public/all_pages.md
-
-echo "$PAGES" | pr -s"|" -T -3 | sed "s/^/|/" | sed "s/$/|/" >> public/all_pages.md
-# echo "$PAGES" | pr -s"|" -T -3 | sed "s/^/|/" | sed "s/$/|/"
-
-
diff --git a/index.js b/index.js
@@ -19,9 +19,9 @@ function startsWithAny(path, arr) {
return false;
}
-app.use( "/", express.static(path.join(__dirname, "public"), { extensions: ["html", "htm"] }));
+app.use(express.static(path.join(__dirname, "public"), { extensions: ["html", "htm"] }));
-app.all("*splat", (req, res) => { res.status(404).sendFile(path.join(__dirname, "public/404.html")); })
+app.use((req, res) => { res.status(404).sendFile(path.join(__dirname, "public/404.html")); })
const port = process.env.PORT || 3000;
diff --git a/make b/make
@@ -13,7 +13,12 @@ txt2html() {
# Convert markdown links to html
# TODO: think of & or ^ is better
- sed -E 's/\[([^]]+)\]\(([^)]+)\)/\&\/<a href="\2">\1<\/a>/g' |
+ # sed -E 's/\[([^]]+)\]\(([^)]+)\)/\&\/<a href="\2">\1<\/a>/g' |
+ # Convert markdown code blocks into span
+ # possibly later insert language?
+ # sed -E 's|^```\[(.*?)$|<pre class=code>|g' |
+ # sed -E 's|^\]```$|</pre>|g' |
+ # sed -E 's|`([^`]+)`|<span class=inlcode> \1 </span>|g' |
# Convert all plain-text links to HTML links (<a href="X">X</a>).
sed -E "s|([^\"\'\>=])(http[s]?://[^[:space:]]*)|\1<a href=\2>\2</a>|g" |
diff --git a/source/about.wht b/source/about.wht
@@ -4,10 +4,51 @@ ________________________________________________________________________________
This website originally was a huge mess of modifying $/docsifyjs to fit my wiki
needs and it kind of grew into something I didn't want to control.
-Then I have stumbles upon glorious $/kisslinux and it's website made by absolute
-shell genius Dylan Araps. And so I took the 'make' file that he wrote for
-generating documentation and adapted it for my needs. You can see the original
-one at aforementioned github repo.
+[000] Index
+________________________________________________________________________________
+
+* Kiss Linux ............................................................. [000]
+* Best Experience ........................................................ [000]
+* Article Formatting ..................................................... [000]
+* References ............................................................. [000]
+
+[000] Kiss Linux
+________________________________________________________________________________
+
+This entire section is my big love letter to Kiss Linux and Dylan Araps.
+I highly implore you to look into it and I will provide starting points for
+that at the end of this section.
+
+So, you may or may not have noticed that this website looks awfully like some
+certain Linux distro's website [1] and this is 100% me just adapting original
+Kiss Docs [2] tooling for my own needs. I cannot express how eye opening it was
+discovering not only docs but Kiss Linus as a whole.
+
+Ok then, you might ask, what is this Kiss Linux thing? Well, I'm glad you
+[didn't] ask, $/kisslinux is a minimal Linux distribution. That's mostly it,
+well, it's really not, but let's pretend it is. So, what's different then?
+You compile everything, like Gentoo but you have package manager written in
+bash that is easy to write packages for. Plus runit, glory to runit!
+
+> TODO: add more shill
+> TODO: add links
-Best viewed with $/zshoals/Dina-Font-TTF-Remastered !
+[000] Best Experience
+________________________________________________________________________________
+
+On GUI it's recommended to use sane browser, one that respects bitmap fonts,
+with $/zshoals/Dina-Font-TTF-Remastered installed in one of font directories.
+
+On TUI any terminal browser will do as long as you keep your terminal's
+width more or equal to 80 columns and disable link numbers.
+
+[000] Article Formatting
+________________________________________________________________________________
+
+> TODO: add info about how to write articles
+
+[000] References
+________________________________________________________________________________
+[1] https://kisslinux.github.io/
+[2] https://github.com/kisslinux/kisslinux.github.io/
diff --git a/source/map.wht b/source/w/index.wht
diff --git a/source/w/japan/aa.wht b/source/w/japan/aa.wht
@@ -10,10 +10,10 @@ This article is a stub.
[000] Index
________________________________________________________________________________
-* Looking ................................................................ [000]
-* Making ................................................................. [001]
-* Test ................................................................... [002]
-* References ............................................................. [003]
+* Looking ................................................................ [001]
+* Making ................................................................. [002]
+* Test ................................................................... [003]
+* References ............................................................. [004]
[001] Looking
________________________________________________________________________________
diff --git a/source/w/posix/cron.wht b/source/w/posix/cron.wht
@@ -1,7 +1,7 @@
Cron
________________________________________________________________________________
-This will be particularly about `dcron` with Void Linux (i.e runit).
+This will be particularly about 'dcron' with Void Linux (i.e runit).
[000] Index
________________________________________________________________________________
@@ -13,60 +13,40 @@ ________________________________________________________________________________
[001] Jobs
________________________________________________________________________________
-Syntax is:
+Syntax for declaring a job is:
-```
-%M %H %d %m %a command
-```
+ %M %H %d %m %a command
-Where `%?` is `date +format` specifiers (`%M` is minute, etc).
+Where '%?' is 'date +format' specifiers ('%M' is minute, etc).
Cron follows certain specifications,
-- * - is a wildcard which makes specifier be ignored.
-- [0-9]+ instead of * will make cron run at specified time.
-- [0-9]+`,`[0-9]+ will execute job at multiple specified times.
-- [0-9]+`-`[0-9]+ will limit execution between certain time (i.e every hour between 13-19).
-- *`/`[0-9]+ will run every N time period.
-- `@hourly`, `@daily`/`@midnight`, `@weekly`, `@monthly` and `@reboot` are shorthands, with hourly being `0 * * * *`.
+- '*' - is a wildcard which makes specifier be ignored.
+- '[0-9]+' - instead of * will make cron run at specified time.
+- '[0-9]+,[0-9]+' - will execute job at multiple specified times.
+- '[0-9]+-[0-9]+' - will limit execution between certain time.
+- '*/[0-9]+' - will run every N time period.
+- '@hourly', '@daily'/'@midnight', '@weekly', '@monthly' and '@reboot' are
+ shorthands, with hourly being '0 * * * *'.
Command can be anything that shell can execute.
-You can access `$HOME`, `$USER`/`$LOGNAME`, `$SHELL` and `$PATH` environment variables. Which makes it possible to `. $HOME/.bashrc; $HOME/script.sh`
+You can access '$HOME', '$USER'/'$LOGNAME', '$SHELL' and '$PATH' environment
+ variables which makes it possible to '. $HOME/.bashrc; $HOME/script.sh'
[002] Examples
________________________________________________________________________________
> TODO: examples
-Verify environment,
-```
-* * * * * printenv > ~/cron_env_test.txt
-```
+Verify environment:
+
+ * * * * printenv > ~/cron_env_test.txt
[003] Commandline
________________________________________________________________________________
-List,
-```
-crontab -l
-```
-
-Edit,
-```
-crontab -e
-```
-
-Remove **all**,
-```
-crontab -r
-```
-
-Replace with file,
-```
-crontab [filename]
-```
-
-Insert from stdin,
-```
-crontab -
-```
+- list jobs - crontab -l
+- edit job file - crontab -e
+- remove all jobs - crontab -r
+- replace with file - crontab [filename]
+- insert from stdin - crontab -
diff --git a/source/w/posix/shell-expansion.wht b/source/w/posix/shell-expansion.wht
@@ -0,0 +1,31 @@
+Shell Parameter Expansion
+________________________________________________________________________________
+
+[000] Index
+________________________________________________________________________________
+* ........................................................................ [000]
+
+[000]
+________________________________________________________________________________
+
+${VARxDEFAULT}
+
+Colon tests for set and not an empty string
+No colon tests for only set/unset
+
++---------+------------+---------------+----------------+
+| Pattern | $VAR unset | $VAR is empty | $VAR not empty |
++---------+------------+---------------+----------------+
+| - | default | $VAR |
++---------+------------+---------------+----------------+
+| + | nothing | default |
++---------+------------+---------------+----------------+
+| :- | default | $VAR |
++---------+------------+---------------+----------------+
+| :+ | nothing | default |
++---------+------------+---------------+----------------+
+| := | VAR=default | $VAR |
++---------+------------+---------------+----------------+
+| :? | exit with def as message | $VAR |
++---------+------------+---------------+----------------+
+
diff --git a/source/w/posix/ssh.wht b/source/w/posix/ssh.wht
@@ -0,0 +1,20 @@
+SSH
+________________________________________________________________________________
+
+Stub on ssh stuff
+
+[000] Index
+________________________________________________________________________________
+
+* ........................................................................ [000]
+
+[001] hostname.local
+________________________________________________________________________________
+
+Requires:
+- avahi_daemon
+- nss
+- nss-mdns
+- openssl
+- openssh
+
diff --git a/source/w/sokol/app.wht b/source/w/sokol/app.wht
@@ -0,0 +1,30 @@
+sokol_app.h
+________________________________________________________________________________
+
+Cross-platform application wrapper single-header library.
+
+[000] References
+________________________________________________________________________________
+
+* ........................................................................ [000]
+
+[000] Init
+________________________________________________________________________________
+
+Define 'SOKOL_IMPL' (general) or 'SOKOL_APP_IMPL' (only sokol_app)
+
+[000] Compiling
+________________________________________________________________________________
+
+Linux:
+- All , '-lX11 -lXi -lXcursor -ldl -lpthread -lm -pthread'
+- OpenGL, '-lGL'
+- GLES3 , '-lGLESv2'
+- WebGPU, ...
+- Vulkan, '-lvulkan'
+- EGL , '-lEGL'
+
+Windows:
+- MINGW/MSYS2, '-mwin32 -lkernel32 -luser32 -lshell32'
+- OpenGL , '-lgdi32'
+- D3D11 , '-ld3d11 -ldxgi'
diff --git a/source/w/sokol/args.wht b/source/w/sokol/args.wht
diff --git a/source/w/sokol/audio.wht b/source/w/sokol/audio.wht
diff --git a/source/w/sokol/fetch.wht b/source/w/sokol/fetch.wht
diff --git a/source/w/sokol/gfx.wht b/source/w/sokol/gfx.wht
diff --git a/source/w/sokol/glue.wht b/source/w/sokol/glue.wht
diff --git a/source/w/sokol/index.wht b/source/w/sokol/index.wht
diff --git a/source/w/sokol/log.wht b/source/w/sokol/log.wht
diff --git a/source/w/sokol/time.wht b/source/w/sokol/time.wht
diff --git a/template.html b/template.html
@@ -1,12 +1,12 @@
-<!doctype html><html lang=en><link href='/favicon.png' rel=icon><title>Wiki - %%TITLE%%</title><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><style>body{overflow-y:scroll;font:16px monospace,monospace;margin:0}*{font-family:DinaRemaster,monospace;contain:paint;}pre{margin:0;overflow-x:hidden}.t{text-decoration:none}@media(max-width:999px){body{font-size:1.94vw}}@media(prefers-color-scheme:dark){body,html{background:#101010;color:#b9b9b9;}a{color:#73b8af}#l{color:#ce6262}#g{filter:invert(1)}}img,#b{max-width:80ch}span{display:inline-block}</style><div style="display:table;margin:16px auto" id=a><div id=b><pre>
+<!doctype html><html lang=en><link href='/favicon.png' rel=icon><title>Wiki - %%TITLE%%</title><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><style>body{overflow-y:scroll;margin:0}body,*{font-family:DinaRemasterII,DinaRemaster,Cozette,monospace}*{contain:paint}pre{margin:0;overflow-x:hidden;display:inline-block;transform:translate(0,0)}.t{text-decoration:none}body,html{background:#f7f7f7;color:#101010}a{color:#5f819d}#l{color:#903a3a}@media(max-width:640px){body{font-size:1.94vw}}@media(prefers-color-scheme:dark){body,html{background:#101010;color:#b9b9b9}a{color:#73b8af}#l{color:#ce6262}#g{filter:invert(1)}}img,#b{max-width:80ch}</style><div style="display:table;margin:16px auto" id=a><div id=b><pre>
<span><a href=/ class=t style=color:#ce5252>
| /| /
-|/ |/iki</a> <a href=/map>Map</a> <a href=/about>About</a> | Page <a href="https://github.com/al1-ce/wiki.al1-ce.dev/new/master/source%%DIR%%">New</a> <a href="https://github.com/al1-ce/wiki.al1-ce.dev/edit/master/source%%FILE%%.wht">Edit</a> <a href="https://github.com/al1-ce/wiki.al1-ce.dev/commits/master/source%%FILE%%.wht">History</a></span>
+|/ |/iki</a> <a href=/w>Map</a> <a href=/about>About</a> | Page <a href="https://github.com/al1-ce/wiki.al1-ce.dev/new/master/source%%DIR%%">New</a> <a href="https://github.com/al1-ce/wiki.al1-ce.dev/edit/master/source%%FILE%%.wht">Edit</a> <a href="https://github.com/al1-ce/wiki.al1-ce.dev/commits/master/source%%FILE%%.wht">History</a></span>
%%CONTENT%%
________________________________________________________________________________
-Alisa Lain (C) 2024-2025
+Alisa Lain (C) 2025-2026
</pre></div></div>