sourcey 3.5.5 → 3.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/site-assembly.js +3 -0
- package/package.json +1 -1
package/dist/site-assembly.js
CHANGED
|
@@ -459,6 +459,9 @@ function resolveInternalHref(href, outputPath, docsSourcePath, pathMap, sourceBa
|
|
|
459
459
|
const sourceDir = posix.dirname(docsSourcePath.replace(/\\/g, "/"));
|
|
460
460
|
candidates.add(posix.normalize(posix.join(sourceDir, clean)));
|
|
461
461
|
}
|
|
462
|
+
if (!sourcePath.startsWith("/") && pageDir) {
|
|
463
|
+
candidates.add(posix.normalize(posix.join(pageDir, clean)));
|
|
464
|
+
}
|
|
462
465
|
candidates.add(clean);
|
|
463
466
|
let target;
|
|
464
467
|
for (const initialCandidate of candidates) {
|