Thanks for your note!
The repo is at: git clone doc - FreeBSD documentation tree ~/doc
It is quite large as it contains all the FreeBSD documentation, books, articles, the website content, translations, etc., roughly 587MB. Almost all the page source is written in Asciidoc, so no markdown :-).
The Hugo theme and related code is in ~/doc/website/themes/beastie and there are some customization. The basic theme framework is intact and works fine for the website.
Source content for all books, such as the porters-handbook is found in
~/doc/documentation/content/en/books/porters-handbook and various subdirectories.
It is only when making so-called offline content that there is a problem with duplicated path elements.
Note that source content contains a mixture of hugo and asciidoctor statements.
To build, there are a number of prerequisites, which are probably out of scope for you. You would have to install several other FreeBSD packages. The entire documentation project is described at FreeBSD Documentation Project Primer for New Contributors | FreeBSD Documentation Portal
It is quite likely that the problem lies in the interaction of front matter (next, previous statements at the top of each file), and something in the layout.
That is where I’m focusing at the moment.
Keep in mind, this only happens when “offline content” is built. If you look at this book on the website, all the “Next” links work fine.
Here is an image of the first page. The path at the bottom appears when hovering over the “Next” link. The link is fine.
And here is an image of the second page. This page and all later pages have a path element duplicated. Clicking on the “Next” link results in an error.
Thanks for any advice you can give me.
Jim B.