Fix catalog book links and rewrite PDF destinations to live HTTPS.
Some checks are pending
offline / test (push) Waiting to run
Some checks are pending
offline / test (push) Waiting to run
Module and model book cards now point at generated index.html/index.pdf instead of directory URLs that 404. WeasyPrint file:// annotations are mapped to https://zapier.georgelambert.org/ paths that exist. Developer module, architecture, and research snapshot links target published files.
This commit is contained in:
parent
666eca79a1
commit
85b5b53ea9
26 changed files with 2253 additions and 35 deletions
|
|
@ -11,8 +11,9 @@ function Link(el)
|
|||
if not path then
|
||||
path, frag = t, ""
|
||||
end
|
||||
if path:match("%.md$") or path:match("%.html$") then
|
||||
path = path:gsub("%.md$", ".pdf"):gsub("%.html$", ".pdf")
|
||||
-- PDFs should follow other PDFs for markdown sources. Keep .html (indexes, sphinx).
|
||||
if path:match("%.md$") then
|
||||
path = path:gsub("%.md$", ".pdf")
|
||||
el.target = path .. frag
|
||||
end
|
||||
return el
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue