Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Aug 2023 12:59:02 +0100
From:      Graham Perrin <grahamperrin@gmail.com>
To:        doc@FreeBSD.org
Subject:   =?UTF-8?Q?HUGO=5fDISABLELANGUAGES=3d=22=22_=e2=80=93_how_to_respond?=
Message-ID:  <d94bd485-e3b6-70d6-9728-6335d5f6fa13@gmail.com>

index | next in thread | raw e-mail

When I first saw the string –

HUGO_DISABLELANGUAGES=""

– in output from make run, I cancelled, then made a false assumption 
about how to proceed with fewer languages.

Sharing my mistake, and subsequent success, for the benefit of others 
who might (in future) make similar mistakes:


% pwd
/usr/home/grahamperrin/dev/freebsd/freebsd-doc/website
% make run
---------------------------------------------------------------
Building the website started on Sun 27 Aug 2023 12:45:46 BST
included languages: de el en es fr hu it ja nl ru tr zh-cn zh-tw
excluded languages:
---------------------------------------------------------------
HUGO_DISABLELANGUAGES="" /usr/local/bin/hugo server   -D 
  --baseURL="http://localhost:1313"
WARN DEPRECATED: Kind "taxonomyterm" used in disableKinds is deprecated, 
use "taxonomy" instead.
WARN Unknown kind "list" in outputs configuration.
WARN Unknown kind "single" in outputs configuration.
Watching for changes in 
/usr/home/grahamperrin/dev/freebsd/freebsd-doc/website/{archetypes,content,data,static,themes}
^C*** Signal 2

% make HUGO_DISABLELANGUAGES="de el es fr hu it ja nl ru tr zh-cn zh-tw" 
run
---------------------------------------------------------------
Building the website started on Sun 27 Aug 2023 12:45:57 BST
included languages: de el en es fr hu it ja nl ru tr zh-cn zh-tw
excluded languages:
---------------------------------------------------------------
HUGO_DISABLELANGUAGES="" /usr/local/bin/hugo server   -D 
  --baseURL="http://localhost:1313"
WARN DEPRECATED: Kind "taxonomyterm" used in disableKinds is deprecated, 
use "taxonomy" instead.
WARN Unknown kind "list" in outputs configuration.
WARN Unknown kind "single" in outputs configuration.
^C*** Signal 2

% make DOC_LANG="en" run
---------------------------------------------------------------
Building the website started on Sun 27 Aug 2023 12:46:32 BST
included languages: en
excluded languages:  de el es fr hu it ja nl ru tr zh-cn zh-tw
---------------------------------------------------------------
HUGO_DISABLELANGUAGES=" de el es fr hu it ja nl ru tr zh-cn zh-tw" 
/usr/local/bin/hugo server   -D  --baseURL="http://localhost:1313"
…


Reference:

<https://docs.freebsd.org/en/books/fdp-primer/book/#doc-build-rendering-html>; 
example 3 onwards;

<https://docs.freebsd.org/en/books/fdp-primer/doc-build/#doc-build-rendering-html>; 
example 2 onwards.

(The same set of examples, different numbers.)



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?d94bd485-e3b6-70d6-9728-6335d5f6fa13>