mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-15 13:44:13 +02:00
Fix path
This commit is contained in:
@@ -19,7 +19,8 @@ const topicPath = Array.isArray(topicId) ? topicId.join('/') : topicId;
|
|||||||
// Get the project root directory
|
// Get the project root directory
|
||||||
const __filename = fileURLToPath(import.meta.url);
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
const __dirname = path.dirname(__filename);
|
const __dirname = path.dirname(__filename);
|
||||||
const projectRoot = path.resolve(__dirname, '../../..');
|
// hack to make it work. TODO: Fix
|
||||||
|
const projectRoot = path.resolve(__dirname, '../../..').replace(/dist$/, '');
|
||||||
|
|
||||||
// Construct the path to the markdown file
|
// Construct the path to the markdown file
|
||||||
let contentPath = path.join(
|
let contentPath = path.join(
|
||||||
|
Reference in New Issue
Block a user