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)
Tue, Apr 30, 8:16 AM
Unknown Object (File)
Tue, Apr 30, 8:15 AM
Unknown Object (File)
Tue, Apr 30, 8:15 AM
Unknown Object (File)
Tue, Apr 30, 4:01 AM
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

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
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 38043
Build 34932: arc lint + arc unit