Skip to content

Commit

Permalink
Don't feel like updating all the paths in these scripts today
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Mar 16, 2024
1 parent a25d3a2 commit 4ebf265
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
File renamed without changes.
11 changes: 9 additions & 2 deletions scripts/generate.ts → generate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ async function gen_docfx() {
exec("dotnet run docfx.csproj", { cwd: path.join(__dirname, "scripts"), stdio: "inherit" })
}

async function gen_doxygen(sourceDir: string, outputDir: string) {
/**
* @param sourceDir {string}
* @param outputDir {string}
*/
async function gen_doxygen(sourceDir, outputDir) {
console.log(`Generating Doxygen: ${sourceDir} -> ${outputDir}`);
if (fs.existsSync(doxygenTemp)) {
fs.rmSync(doxygenTemp, { recursive: true, force: true });
Expand Down Expand Up @@ -101,7 +105,10 @@ async function gen_typedoc() {
fs.unlinkSync("./docs/reference/js/.nojekyll");
}

const sleep = (ms: number) => new Promise(r => setTimeout(r, ms));
/**
* @param ms {number}
*/
const sleep = (ms) => new Promise(r => setTimeout(r, ms));

// typedoc gets confused with this file here
if (fs.existsSync("tsconfig.json")) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc",
"generate": "ts-node ./scripts/generate.ts",
"generate": "ts-node ./generate.ts",
"crowdin-download": "crowdin download",
"crowdin-upload": "crowdin upload",
"daily-tasks": "node ./scripts/daily-tasks.mjs"
"daily-tasks": "node ./daily-tasks.mjs"
},
"dependencies": {
"@docusaurus/core": "3.1.1",
Expand Down

0 comments on commit 4ebf265

Please sign in to comment.