Addition of HTML targets allowing the build of HTML version of docs with selection of the language.
make DOC_LANG="en,fr" html-books
make DOC_LANG="it" html-books html-articles
This uses directly asciidoctor not hugo.
blackend on Thu, Jun 10, 4:40 PM.Authored by
Still rough around the edges, I'm going to add the missing css part.
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.
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.
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…