OOKNET                             [ /  search the index  ]  
──────────────────────────────────────────────────────────────────────────────────────
══════════════════════════════════════════════════════════════════════════════════════
OOKNET   [ /  search  ]  
────────────────────────────────────────────────
════════════════════════════════════════════════
 
 
master @ 29 LINES
 
[ HISTORY ]  [ UP ]
 

---
import { getCollection } from "astro:content";
import ArticleLayout from "../layouts/ArticleLayout/ArticleLayout.astro";
import TopHeader from "../components/TopHeader/TopHeader.astro";
import Frame from "../components/Frame/Frame.astro";
import Pre from "../components/Pre/Pre.astro";
import Tree from "../components/Tree/Tree.astro";
import ArticleFooter from "../components/ArticleFooter/ArticleFooter.astro";
import { ruleD, row2 } from "../lib/ascii";
import { published } from "../lib/notes";
import { docsTree } from "../lib/docs";

const entries = await getCollection("kb", published);
const tree = docsTree(
  entries.map((e) => ({ id: e.id, title: e.data.title, order: e.data.order })),
  undefined,
  "/kb/",
);
---
<ArticleLayout title="OOKNET KB - Index"
  description="OOKNET - a text-mode knowledge base on a strict monospace grid.">
  <TopHeader />
  <Frame build={(w) => [row2("INDEX OF THE ARCHIVE", `${entries.length} PAGES`, w)
, ruleD(w)].join("\n")} />
  <Pre>{" "}</Pre>
  <Tree nodes={tree} />
  <Pre>{" "}</Pre>
  <ArticleFooter />
</ArticleLayout>

---
import { getCollection } from "astro:content
";
import ArticleLayout from "../layouts/Articl
eLayout/ArticleLayout.astro";
import TopHeader from "../components/TopHead
er/TopHeader.astro";
import Frame from "../components/Frame/Frame
.astro";
import Pre from "../components/Pre/Pre.astro
";
import Tree from "../components/Tree/Tree.as
tro";
import ArticleFooter from "../components/Art
icleFooter/ArticleFooter.astro";
import { ruleD, row2 } from "../lib/ascii";
import { published } from "../lib/notes";
import { docsTree } from "../lib/docs";

const entries = await getCollection("kb", pu
blished);
const tree = docsTree(
  entries.map((e) => ({ id: e.id, title: e.d
ata.title, order: e.data.order })),
  undefined,
  "/kb/",
);
---
<ArticleLayout title="OOKNET KB - Index"
  description="OOKNET - a text-mode knowledg
e base on a strict monospace grid.">
  <TopHeader />
  <Frame build={(w) => [row2("INDEX OF THE A
RCHIVE", `${entries.length} PAGES`, w), rule
D(w)].join("\n")} />
  <Pre>{" "}</Pre>
  <Tree nodes={tree} />
  <Pre>{" "}</Pre>
  <ArticleFooter />
</ArticleLayout>
 
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET