Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Aug 2023 08:03:31 +0900
From:      YooKyung-tak <stonegaze@me.com>
To:        "freebsd-translators@freebsd.org" <freebsd-translators@FreeBSD.org>
Subject:   Question) Error occurred during build process
Message-ID:  <C36C3C6E-F79D-4E58-99C9-2BB89D6F6906@me.com>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hello, 

I tried to build the entire document because I finished translating the handbook into Korean. (Weblate) 

I downloaded the handbook file translated into Korean from the weblate and pasted it into the freebsd-doc directory on Github. 
Then I executed the "DOC_LANG=ko make" command, and the process was interrupted with the following error. 

How do I fix this problem? 

Thanks. 

———————————————————————————————————————————————————————————————————————

stonegaze@S5Test:~/freebsd-doc/documentation $ DOC_LANG=ko make
make: "/usr/home/stonegaze/freebsd-doc/documentation/Makefile" line 56: warning: "Warning: cannot skip 'en'; adding it back"
---------------------------------------------------------------
Building the documentation
included languages: ko en
excluded languages: bn-bd da de el es fr hu id it ja mn nl pl pt-br ru tr zh-cn zh-tw
---------------------------------------------------------------
HUGO_DISABLELANGUAGES=" bn-bd da de el es fr hu id it ja mn nl pl pt-br ru tr zh-cn zh-tw" /usr/local/bin/hugo --minify
Start building sites …
hugo v0.111.3+extended freebsd/amd64 BuildDate=2023-03-17T03:01:46Z+0000 VendorInfo=freebsd
WARN 2023/08/26 03:22:38 books/handbook/book.adoc: asciidoctor: WARNING: content/en/books/handbook/multimedia/_index.adoc: line 241: id assigned to section already in use: troubleshooting
WARN 2023/08/26 03:22:59 books/handbook/book.adoc: asciidoctor: WARNING: content/ko/books/handbook/multimedia/_index.adoc: line 241: id assigned to section already in use: troubleshooting
Error: Error building site: failed to render pages: render of "section" failed: "/usr/home/stonegaze/freebsd-doc/documentation/themes/beastie/layouts/books/list.html:132:30": execute of template failed: template: books/list.html:132:30: executing "main" at <split .Page.File "/">: error calling split: unable to cast page.zeroFile{log:(*helpers.DistinctLogger)(0x858326210)} of type page.zeroFile to string
Total in 38487 ms
*** Error code 255

Stop.
make: stopped in /usr/home/stonegaze/freebsd-doc/documentation
[-- Attachment #2 --]
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div>Hello,&nbsp;</div><div><br></div><div>I tried to build the entire document because I finished translating the handbook into Korean. (Weblate)&nbsp;</div><div><br></div><div>I downloaded the handbook file translated into Korean from the weblate and pasted it into the freebsd-doc directory on Github.&nbsp;</div><div>Then I executed the "DOC_LANG=ko make" command, and the process was interrupted with the following error.&nbsp;</div><div><br></div><div>How do I fix this problem?&nbsp;</div><div><br></div><div>Thanks.&nbsp;</div><div><br></div><div>———————————————————————————————————————————————————————————————————————</div><div><br></div><div><span style="font-size: medium;">stonegaze@S5Test:~/freebsd-</span><wbr><span style="font-size: medium;">doc/documentation $ DOC_LANG=ko make</span><br><span style="font-size: medium;">make: "/usr/home/stonegaze/freebsd-</span><wbr><span style="font-size: medium;">doc/documentation/Makefile" line 56: warning: "Warning: cannot skip 'en'; adding it back"</span><br><span style="font-size: medium;">------------------------------</span><wbr><span style="font-size: medium;">------------------------------</span><wbr><span style="font-size: medium;">---</span><br><span style="font-size: medium;">Building the documentation</span><br><span style="font-size: medium;">included languages: ko en</span><br><span style="font-size: medium;">excluded languages: bn-bd da de el es fr hu id it ja mn nl pl pt-br ru tr zh-cn zh-tw</span><br><span style="font-size: medium;">------------------------------</span><wbr><span style="font-size: medium;">------------------------------</span><wbr><span style="font-size: medium;">---</span><br><span style="font-size: medium;">HUGO_DISABLELANGUAGES=" bn-bd da de el es fr hu id it ja mn nl pl pt-br ru tr zh-cn zh-tw" /usr/local/bin/hugo --minify</span><br><span style="font-size: medium;">Start building sites …</span><br><span style="font-size: medium;">hugo v0.111.3+extended freebsd/amd64 BuildDate=2023-03-17T03:01:</span><wbr><span style="font-size: medium;">46Z+0000 VendorInfo=freebsd</span><br><span style="font-size: medium;">WARN 2023/08/26 03:22:38 books/handbook/book.adoc: asciidoctor: WARNING: content/en/books/handbook/</span><wbr><span style="font-size: medium;">multimedia/_index.adoc: line 241: id assigned to section already in use: troubleshooting</span><br><span style="font-size: medium;">WARN 2023/08/26 03:22:59 books/handbook/book.adoc: asciidoctor: WARNING: content/ko/books/handbook/</span><wbr><span style="font-size: medium;">multimedia/_index.adoc: line 241: id assigned to section already in use: troubleshooting</span><br><span style="font-size: medium;">Error: Error building site: failed to render pages: render of "section" failed: "/usr/home/stonegaze/freebsd-</span><wbr><span style="font-size: medium;">doc/documentation/themes/</span><wbr><span style="font-size: medium;">beastie/layouts/books/list.</span><wbr><span style="font-size: medium;">html:132:30": execute of template failed: template: books/list.html:132:30: executing "main" at &lt;split .Page.File "/"&gt;: error calling split: unable to cast page.zeroFile{log:(*helpers.</span><wbr><span style="font-size: medium;">DistinctLogger)(0x858326210)} of type page.zeroFile to string</span><br><span style="font-size: medium;">Total in 38487 ms</span><br><span style="font-size: medium;">*** Error code 255</span><br><br><span style="font-size: medium;">Stop.</span><br><span style="font-size: medium;">make: stopped in /usr/home/stonegaze/freebsd-</span><wbr><span style="font-size: medium;">doc/documentation</span></div></body></html>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?C36C3C6E-F79D-4E58-99C9-2BB89D6F6906>