Documentation!
This commit is contained in:
parent
fbbf424cb5
commit
d03dc23d4d
|
@ -1,6 +1,7 @@
|
|||
import { Command } from "./dependencies.ts";
|
||||
import { runCommand, tomlFrontmatter } from "./utilities.ts";
|
||||
|
||||
/** The TOML frontmatter data for each video. */
|
||||
type Frontmatter = {
|
||||
page_title: string;
|
||||
id: string;
|
||||
|
@ -65,6 +66,7 @@ async function main(): Promise<void> {
|
|||
});
|
||||
}
|
||||
|
||||
/** Format the description using the video's frontmatter data. */
|
||||
function formatDescription(frontmatter: Frontmatter): string {
|
||||
let description = "See all details on my website\n";
|
||||
description += `https://bauke.xyz/v/${frontmatter.id}/\n`;
|
||||
|
|
Loading…
Reference in New Issue