Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Jun 2024 12:00:06 +0000
From:      bugzilla-noreply@freebsd.org
To:        doc@FreeBSD.org
Subject:   [Bug 279896] Download PDF not working in handbook [404]
Message-ID:  <bug-279896-9-b1W03lrMPy@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-279896-9@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279896-9-b1W03lrMPy>