Addition of HTML targets allowing the build of HTML version of docs with selection of the language.
For example:
make DOC_LANG="en,fr" html-books
or
make DOC_LANG="it" html-books html-articles
This uses directly asciidoctor not hugo.
Differential D30718
Add HTML targets to doc/documentation/Makefile blackend on Jun 10 2021, 4:40 PM. Authored by Tags None Referenced Files
Details
Addition of HTML targets allowing the build of HTML version of docs with selection of the language. This uses directly asciidoctor not hugo.
Diff Detail
Event TimelineComment Actions This is nice to test/build a single document, only issue is that it won't use our template/css. Comment Actions Still rough around the edges, I'm going to add the missing css part. Comment Actions Right. I was wondering if we can do this with Hugo, using the same template as the current documents and all the information in the front-matter. There is an option for disable languages: Building only en: $ HUGO_DISABLELANGUAGES="es pt-br de ja zh-cn zh-tw ru el hu it mn nl pl fr bd da ko tr" make ... | EN -------------------+------ Pages | 173 Paginator pages | 0 Non-page files | 0 Static files | 928 Processed images | 0 Aliases | 0 Sitemaps | 1 Cleaned | 0 Total in 15458 ms Building only pt-br: $ HUGO_DISABLELANGUAGES="en es de ja zh-cn zh-tw ru el hu it mn nl pl fr bd da ko tr" make ... Error: cannot disable default language "en" default language cannot be disabled at this moment. Other idea is to create additional Hugo config, this way many options can be disabled when building the port version. Comment Actions It seems all documents that were split has a single/full html in /book/, this is new for me. I noticed after seeing this patch. https://docs.freebsd.org/en/books/porters-handbook/book/ Comment Actions
That seems really counter-intuitive when we have DOC_LANG. Driving this from DOC_LANG seems a good candidate for the list we talked about!
And that just feels like another reason I don’t like Hugo. It seems to bring only problems for us. Also for the list… Comment Actions Yes. Hugo is aimed at websites/blogs generation, we're trying to use it for something else.
|