[Bug 279896] Download PDF not working in handbook [404]
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 279896] Download PDF not working in handbook [404]"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 22 Jun 2024 12:00:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279896 --- Comment #3 from freebsd.illusive064@passinbox.com --- so hovering over the link I see two suspicious 'nil' values: https://download.freebsd.org/doc/en/_index/%25!s%28%3cnil%3e%29/%25!s%28%3cnil%3e%29_en.pdf ./documentation/themes/beastie/i18n/zh-cn.toml:[download-pdf] ``` So, I grep the repo for "Download PDF" and I see (one example) ./documentation/themes/beastie/layouts/books/single.html: <li><i class="fa fa-file-pdf-o" aria-hidden="true" title="{{ i18n "download-pdf" }}"></i><a href="{{ $pdfUrl }}">{{ i18n "download-pdf" }}</a></li> ``` So the link is decided by `$pdfUrl` I grep for `$pdfUrl`: ``` grep -r "\$pdfUrl" ./documentation/themes/beastie/layouts/books/single.html: {{ $pdfUrl := printf "%s%s/%s" $.Site.Params.downloadBaseUrl $.Site.Home.Language $path }} ``` so the issue, as far as I understand, is here. Something with Site Params. I cloned the latest as of the time of writing, hope someone who knows the FreeBSD docs can take this further. Sorry, first time delving into it. -- You are receiving this mail because: You are the assignee for the bug.