Page MenuHomeFreeBSD

Allow building with upstream www/gohugo.
ClosedPublic

Authored by fernape on Mar 24 2021, 12:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 5 2024, 7:45 PM
Unknown Object (File)
Dec 20 2023, 2:46 AM
Unknown Object (File)
Dec 12 2023, 2:35 PM
Unknown Object (File)
Jul 14 2023, 10:23 PM
Unknown Object (File)
May 13 2023, 5:52 AM
Unknown Object (File)
May 13 2023, 5:49 AM
Unknown Object (File)
May 13 2023, 5:38 AM
Unknown Object (File)
May 13 2023, 5:34 AM

Details

Summary

When we build our documentation and website we use a hacked version of
www/gohugo that allows for arbitrary asciidoc extensions. This was added as a
patch in r562416.

The suggested pull request[1] this patch was based on was not accepted "as is"
and only allows the execution of extensions in Ruby's $LOAD_PATH.

With these changes, we add our <docroot>shared/lib directory to Ruby's library
directory so we can load our custom extensions. This also allows building the
docs and website outsite FreeBSD using upstream and unmodified tools.

Tested with the upcoming vanilla gohugo-0.82 provided by gohugo's maintainer.

[1] https://github.com/gohugoio/hugo/pull/8131

Test Plan
  • Apply patch
  • cd <docroot> && make
  • Docs and website build fine and the produced files look good
  • Tested with gohugo-0.82 here

Diff Detail

Repository
R9 FreeBSD doc repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable