Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! tools: update doctool dependencies, migrate to ESM
  • Loading branch information
aduh95 committed Jun 11, 2021
commit d24b6a987e0d5edecde8bec7bd976c1374bcf4b2
3 changes: 1 addition & 2 deletions tools/doc/addon-verify.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// Triggered from the build-addons target in the Makefile and vcbuild.bat.

import { mkdir, writeFile } from 'fs/promises';
import { fileURLToPath } from 'url';

import gfm from 'remark-gfm';
import remarkParse from 'remark-parse';
Expand All @@ -16,7 +15,7 @@ const rootDir = new URL('../../', import.meta.url);
const doc = new URL('./doc/api/addons.md', rootDir);
const verifyDir = new URL('./test/addons/', rootDir);

const file = toVFile.readSync(fileURLToPath(doc), 'utf8');
const file = toVFile.readSync(doc, 'utf8');
const tree = unified().use(remarkParse).use(gfm).parse(file);
const addons = {};
let id = 0;
Expand Down
14 changes: 7 additions & 7 deletions tools/doc/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tools/doc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"remark-html": "13.0.1",
"remark-parse": "^9.0.0",
"remark-rehype": "8.1.0",
"to-vfile": "7.0.0",
"to-vfile": "7.1.0",
"unified": "9.2.1",
"unist-util-select": "4.0.0",
"unist-util-visit": "3.1.0"
Expand Down