Skip to content

Commit

Permalink
Remove unneeded check
Browse files Browse the repository at this point in the history
  • Loading branch information
abefernan committed Apr 22, 2024
1 parent 63e87c3 commit 2118732
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions scripts/gen-tags.mjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
import { promises as fs } from "fs";
import matter from "gray-matter";
import process from "node:process";

const repoRoot = "docs";

if (!process.cwd().endsWith(repoRoot)) {
console.info("Tags should be generated from the repo's root directory");
process.exit(1);
}

console.info("Generating tags…");

(async function genTags() {
console.info("Generating tags…");

const pagesDir = "src/pages";
const wholeDir = await fs.readdir(pagesDir, { recursive: true });

Expand Down

0 comments on commit 2118732

Please sign in to comment.