We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed4d07b commit a56e760Copy full SHA for a56e760
.build/utils/modular-docs.js
@@ -81,10 +81,9 @@ function generateSplitterInput(dir) {
81
82
readmes.forEach(p => {
83
const id = path.dirname(p).replace(/\//g, '-');
84
- console.info("id", id)
85
const destFilename = `chap-${id}.adoc`;
86
const srcFilePath = path.join(dir, p);
87
- const srcImagesDir = path.join(dir, id, "images");
+ const srcImagesDir = path.join(srcFilePath.substring(0, srcFilePath.lastIndexOf("/")), "images");
88
const destFilePath = path.join(destDir, destFilename);
89
const destImagesDir = path.join(destDir, "_images", id);
90
let data = fs.readFileSync(srcFilePath, "utf-8").toString();
0 commit comments