chore: import upstream snapshot with attribution
docmd CI verification / verify (push) Failing after 0s
docmd CI verification / verify (push) Failing after 0s
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* --------------------------------------------------------------------
|
||||
* docmd : the zero-config documentation engine.
|
||||
*
|
||||
* @package @docmd/core (and ecosystem)
|
||||
* @website https://docmd.io
|
||||
* @repository https://github.com/docmd-io/docmd
|
||||
* @license MIT
|
||||
* @copyright Copyright (c) 2025-present docmd.io
|
||||
*
|
||||
* [docmd-source] - Please do not remove this header.
|
||||
* --------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
import { fileURLToPath } from 'url';
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
// Ensure dist exists
|
||||
if (!fs.existsSync(path.join(__dirname, 'dist'))) {
|
||||
fs.mkdirSync(path.join(__dirname, 'dist'));
|
||||
}
|
||||
|
||||
// Copy CSS
|
||||
fs.copyFileSync(
|
||||
path.join(__dirname, 'src', 'openapi.css'),
|
||||
path.join(__dirname, 'dist', 'openapi.css')
|
||||
);
|
||||
|
||||
console.log('OpenAPI assets copied to dist/');
|
||||
Reference in New Issue
Block a user