Skip to content

Commit

Permalink
Merge pull request #798 from thedevs-network/develop
Browse files Browse the repository at this point in the history
Remove unused dependencies, misc. small fixes
  • Loading branch information
poeti8 authored Jan 22, 2025
2 parents 0bebbd9 + 2be56eb commit c8f9648
Show file tree
Hide file tree
Showing 15 changed files with 132 additions and 1,202 deletions.
17 changes: 8 additions & 9 deletions docs/api/generate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const { join, dirname } = require("path");

const { promises: fs } = require("fs");
const { join, dirname } = require("node:path");
const { promises: fs } = require("node:fs");

const api = require("./api");

Expand All @@ -26,19 +25,19 @@ const Api = output =>

const Redoc = output =>
fs.copyFile(join(
dirname(require.resolve('redoc')),
'redoc.standalone.js'),
dirname(require.resolve("redoc")),
"redoc.standalone.js"),
output);

module.exports = (async () => {
const out = join(__dirname, 'static');
const apiFile = 'api.json';
const redocFile = 'redoc.js';
const out = join(__dirname, "static");
const apiFile = "api.json";
const redocFile = "redoc.js";
await fs.mkdir(out, { recursive: true });
return Promise.all([
Api(join(out, apiFile)),
Redoc(join(out, redocFile)),
Template(join(out, 'index.html'), {
Template(join(out, "index.html"), {
api: apiFile,
title: api.info.title,
redoc: redocFile
Expand Down
Loading

0 comments on commit c8f9648

Please sign in to comment.