Skip to content

Commit

Permalink
Apply lint with rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
0417taehyun committed Nov 14, 2024
1 parent a6351c5 commit a5ddf7d
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions website/prepare-generated-docs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,20 @@ if (!response.ok) {

const data = await response.json();

data.servers = [{
url: '<your-unleash-url>',
}];
data.servers = [
{
url: '<your-unleash-url>',
},
];

const outputDir = './docs/generated/'
const outputDir = './docs/generated/';

// Write the JSON to file
const outputPath = path.join(outputDir, 'openapi.json')
const outputPath = path.join(outputDir, 'openapi.json');

// Ensure directory exists
await fs.mkdir(outputDir, { recursive: true });

await fs.writeFile(
outputPath,
JSON.stringify(data, null, 2),
'utf8'
);
await fs.writeFile(outputPath, JSON.stringify(data, null, 2), 'utf8');

console.log(`OpenAPI spec saved to ${outputPath}`);


0 comments on commit a5ddf7d

Please sign in to comment.