This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
buildroot="build" | |
srcroot="src" | |
filepath=$1 | |
filename=$(python3 -c " | |
import os | |
basename=os.path.basename(\"$filepath\") |