Skip to content

Instantly share code, notes, and snippets.

View maksimil's full-sized avatar
❤️
keybindings biggest fan

Bee maksimil

❤️
keybindings biggest fan
View GitHub Profile
#!/usr/bin/env sh
buildroot="build"
srcroot="src"
filepath=$1
filename=$(python3 -c "
import os
basename=os.path.basename(\"$filepath\")
import { promises as fs } from "fs";
import * as path from "path";
import * as jsyaml from "js-yaml";
import { fileURLToPath } from "url";
import MarkdownIt from "markdown-it";
const mdit = new MarkdownIt({});
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const srcdir = path.resolve(__dirname, "./src");
const builddir = path.resolve(__dirname, "./build");