ttcmd: adds hr element

help pages: adds a way to extract the table of contents to the parent,
smoothes out the rough loading on help pages
This commit is contained in:
2024-03-13 02:52:59 -06:00
parent 009e988a38
commit d0cb74bea8
12 changed files with 199 additions and 70 deletions

5
actions/readMD.ts Normal file
View File

@@ -0,0 +1,5 @@
"use server";
import { readFile } from "fs/promises";
export const readMD = async (path: string) => await readFile(path, "utf-8");

View File

@@ -1,5 +0,0 @@
"use server";
import { readFile } from "fs/promises";
export const readMD = async () => await readFile("./test.md", "utf-8");