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)
Fri, Jan 17, 12:45 PM
Unknown Object (File)
Nov 28 2024, 5:52 AM
Unknown Object (File)
Nov 25 2024, 2:38 AM
Unknown Object (File)
Nov 18 2024, 8:45 AM
Unknown Object (File)
Nov 18 2024, 1:11 AM
Unknown Object (File)
Nov 17 2024, 7:43 AM
Unknown Object (File)
Nov 11 2024, 2:11 PM
Unknown Object (File)
Nov 11 2024, 6:40 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