5709a7858d5c197721be66d5218a79124abadb70 lrnassar Tue Mar 17 08:46:31 2026 -0700 Adding alt text to images across static documentation pages, CGI headers, markdown docs, and Pandoc templates. Content images receive AI-generated descriptive alt text; decorative images (icons, spacers, toggles) receive alt="" per WCAG best practice. Also adds Image Descriptions section to the accessibility page, and fixes Pandoc Lua writers to output alt attributes. 67 files, covering help docs, news archive, ENCODE pages, portal pages, and session examples. refs #37254 diff --git docs/staticPage.lua docs/staticPage.lua index b02a1eb7de8..c14e6f33c1b 100644 --- docs/staticPage.lua +++ docs/staticPage.lua @@ -215,31 +215,31 @@ -- assume that the link label is an email address if it contains an @ character if string.match(s, "%@")~=nil then s = obfuscate(s) end else src = escape(src, true) tit = escape(tit, true) end return "<a href='" .. src .. "' title='" .. tit .. "'>" .. s .. "</a>" end function Image(s, src, tit, attr) - return "<img src='" .. escape(src,true) .. "' title='" .. + return "<img alt='" .. escape(s,true) .. "' src='" .. escape(src,true) .. "' title='" .. escape(tit,true) .. "'/>" end function Code(s, attr) return "<code" .. attributes(attr) .. ">" .. escape(s) .. "</code>" end function InlineMath(s) return "\\(" .. escape(s) .. "\\)" end function DisplayMath(s) return "\\[" .. escape(s) .. "\\]" end