fixed-links
This commit is contained in:
parent
3d19717b2f
commit
bfd6db71c2
18
index.js
18
index.js
|
@ -29897,7 +29897,7 @@ const findDisplay = (line, link) => {
|
||||||
);
|
);
|
||||||
return external_fs_.promises.appendFile(
|
return external_fs_.promises.appendFile(
|
||||||
fileName,
|
fileName,
|
||||||
`\n[xml](${'../'.repeat(fileName.split('/').length)}${display.file}#L${l + 1})\n`,
|
`\n[xml](${'../'.repeat(fileName.split('/').length - 1)}${display.file.replaceAll(' ', '%20')}#L${l + 1})\n`,
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -30051,7 +30051,7 @@ const findDisplay = (line, link) => {
|
||||||
);
|
);
|
||||||
await external_fs_.promises.appendFile(
|
await external_fs_.promises.appendFile(
|
||||||
fileName,
|
fileName,
|
||||||
`\n[xml](${'../'.repeat(root.split('/').length)}${display.file})\n`,
|
`\n[xml](${'../'.repeat(root.split('/').length + 1)}${display.file.replaceAll(' ', '%20')})\n`,
|
||||||
);
|
);
|
||||||
|
|
||||||
await reference_objects({
|
await reference_objects({
|
||||||
|
@ -30236,7 +30236,7 @@ const findDisplay = (line, link) => {
|
||||||
);
|
);
|
||||||
return external_fs_.promises.appendFile(
|
return external_fs_.promises.appendFile(
|
||||||
fileName,
|
fileName,
|
||||||
`\n[xml](${'../'.repeat(fileName.split('/').length)}${file}#L${objectLine + l})\n`,
|
`\n[xml](${'../'.repeat(fileName.split('/').length - 1)}${file.replaceAll(' ', '%20')}#L${objectLine + l})\n`,
|
||||||
).then(l + 1);
|
).then(l + 1);
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -30321,8 +30321,8 @@ const findDisplay = (line, link) => {
|
||||||
-1,
|
-1,
|
||||||
);
|
);
|
||||||
return external_fs_.promises.appendFile(
|
return external_fs_.promises.appendFile(
|
||||||
fileName,
|
`${dir}/${object.id}.md`,
|
||||||
`\n[xml](${'../'.repeat(fileName.split('/').length)}${global.file}#L${l + 1})\n`,
|
`\n[xml](${'../'.repeat(fileName.split('/').length - 1)}${global.file.replaceAll(' ', '%20')}#L${l + 1})\n`,
|
||||||
).then(() => l + 1);
|
).then(() => l + 1);
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
@ -30392,6 +30392,10 @@ const findDisplay = (line, link) => {
|
||||||
fileName,
|
fileName,
|
||||||
`# ${global.name}\n\nglobal\n`,
|
`# ${global.name}\n\nglobal\n`,
|
||||||
);
|
);
|
||||||
|
await external_fs_.promises.appendFile(
|
||||||
|
fileName,
|
||||||
|
`\n[xml](${'../'.repeat(root.split('/').length + 1)}${global.file.replaceAll(' ', '%20')})\n`,
|
||||||
|
);
|
||||||
|
|
||||||
await objects({
|
await objects({
|
||||||
fileName,
|
fileName,
|
||||||
|
@ -30402,10 +30406,6 @@ const findDisplay = (line, link) => {
|
||||||
myObjectFields,
|
myObjectFields,
|
||||||
displays,
|
displays,
|
||||||
});
|
});
|
||||||
await external_fs_.promises.appendFile(
|
|
||||||
fileName,
|
|
||||||
`\n## xml\n\n\`\`\`xml\n${global.xml()}\n\`\`\`\n`,
|
|
||||||
);
|
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue