Document compiler fixes and repair standalone documentation images
This commit is contained in:
1 parent
c34371b784
commit
c76b10e9fd
3 files changed
+31
-2
No files matched your search
@@ -113,9 +113,10 @@ process_file() {
|
||||
# - [text](file.md) -> [text](#file.md)
|
||||
# - [text](dir/file.md) -> [text](#dir_file.md)
|
||||
# - [text](file.md#anchor) -> [text](#anchor)
|
||||
# - Fix image links: [alt](../images/...) -> [alt](images/...) if needed, but none found yet.
|
||||
# - Resolve site-root image URLs against the local site resources for embedding.
|
||||
|
||||
cat "$full_path" | \
|
||||
perl -pe 's{(!\[[^\]]*\]\()/}{$1site/src/jsMain/resources/}g' | \
|
||||
perl -pe 's/\[([^\]]+)\]\(([^)]+)\.md\)/"[$1](#" . ($2 =~ s|\/|_|gr) . ".md)"/ge' | \
|
||||
perl -pe 's/\[([^\]]+)\]\(([^)]+)\.md#([^)]+)\)/[$1](#$3)/g' >> "$MERGED_MD"
|
||||
|
||||
|
||||
Reference in new issue
Block a user