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/>
References:  <bug-279896-9@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279896

--- 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%3c=
nil%3e%29_en.pdf=20


./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=3D"fa fa-file-pdf-o" aria-hidden=3D"true" title=3D"{{ i18n "download-=
pdf"
}}"></i><a href=3D"{{ $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:          {{ $pdfU=
rl
:=3D printf "%s%s/%s" $.Site.Params.downloadBaseUrl $.Site.Home.Language $p=
ath }}
```

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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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