mirror of
https://github.com/PR0M3TH3AN/Archivox.git
synced 2025-09-07 14:48:40 +00:00
Merge pull request #22 from PR0M3TH3AN/codex/fix-sidebar-toggle-and-responsiveness-issues
Fix asset copy path
This commit is contained in:
@@ -176,11 +176,9 @@ async function generate({ contentDir = 'content', outputDir = '_site', configPat
|
||||
}
|
||||
|
||||
// Copy the main assets directory (theme, js, etc.)
|
||||
const mainAssetsSrc = path.resolve(
|
||||
configPath ? path.dirname(configPath) : process.cwd(),
|
||||
'..',
|
||||
'assets'
|
||||
);
|
||||
// Always resolve assets relative to the DocForge package so it works
|
||||
// regardless of the current working directory or config location.
|
||||
const mainAssetsSrc = path.resolve(__dirname, '../../assets');
|
||||
const mainAssetsDest = path.join(outputDir, 'assets');
|
||||
|
||||
if (fs.existsSync(mainAssetsSrc)) {
|
||||
|
Reference in New Issue
Block a user