Skip to content

docs: copy click-to-enlarge images, not just displayed ones#4106

Open
grandixximo wants to merge 1 commit into
LinuxCNC:masterfrom
grandixximo:docs/copy-linked-images
Open

docs: copy click-to-enlarge images, not just displayed ones#4106
grandixximo wants to merge 1 commit into
LinuxCNC:masterfrom
grandixximo:docs/copy-linked-images

Conversation

@grandixximo
Copy link
Copy Markdown
Contributor

The HTML image-copy step (.html-images-stamp) scanned only src="..." attributes when deciding which images to copy into docs/html. Images referenced solely as a link target, image:thumb[link="images/full.png"], which asciidoctor renders as <a href="images/full.png"><img src="thumb"></a>, were never copied, so clicking the thumbnail to enlarge gave a 404. gui/gmoccapy (7 images) and gui/gstat (2) were affected.

The fix also scans href="...", filtered to image extensions so page and anchor links are left out.

Surfaced by the now-working link checker (#4104), which reports these as missing-file 404s.

Verified with a full English make htmldocs: build completes cleanly, all 9 images are now copied, and both pages report 0 missing-file 404s.

The HTML image-copy step scanned only src="..." attributes, so images
referenced solely as a link target (image:thumb[link="images/full.png"],
rendered as <a href="...full.png">) were never copied and 404'd when the
reader clicked to enlarge.  gui/gmoccapy and gui/gstat had nine such
images.  Also scan href="...", filtered to image extensions so page and
anchor links are left out.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant