From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31738 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Lu=C3=ADs_de_Sousa?= Newsgroups: gmane.text.pandoc Subject: Re: Multiple HTML file (chunked) output with template Date: Fri, 11 Nov 2022 04:33:54 -0800 (PST) Message-ID: <7f4b28ec-1e91-4228-ab03-fe58a2e5cf18n@googlegroups.com> References: <264eeee0-68c8-4389-a5c5-12563c6926f6n@googlegroups.com> <1ef6858a-0a37-4f5f-a88b-eff2479a8130n@googlegroups.com> <539db8b9-47f4-43b8-83d1-4b4c99dc3b3fn@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_3684_839157287.1668170034866" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32230"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCOZLZGK4QDBBNECXGNQMGQEQTWXFGI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Nov 11 13:34:00 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oo1-f61.google.com ([209.85.161.61]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1otTEO-000883-AB for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 11 Nov 2022 13:34:00 +0100 Original-Received: by mail-oo1-f61.google.com with SMTP id q6-20020a4a3006000000b0049eab9167aesf1552608oof.1 for ; Fri, 11 Nov 2022 04:34:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=t+UYXWQ2YKjC7ZAaqbWDlWsKi80kiY/NhYZ0wwacnE8=; b=YGd3qpUzOhetwHhr9b6cc3RML9xt+czD5+A/E6E/nyQBpFT8YVHs8dufr6zXAPyHlW pN1HaVVKOepSBJosh0vfPyyiRXAn4ABzxv35bFc1rfuind8lgq/oC8b3xVREGAVyZGpN pPCUzfMAzJGuO4p8O8/FoEaOlVaLK11GUfwPxTj4kLGlIx8X2+3jRk36VTm+o8uFhxNQ FM1QPUVCJvbKeVOzgcn9vADcBGiMqPvfZX0+nuI4Ch1Kgd8UCccSsaHuCE4oZMDE/ZHl 26ra0tb8Rhp7A5T7fge7+uO7pU0PQRNCg24PVLQtOaPY1J667tUl5IClNBWWjZfonKvv 03DQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:x-original-sender :mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=t+UYXWQ2YKjC7ZAaqbWDlWsKi80kiY/NhYZ0wwacnE8=; b=g36xvLLmeq+ZOsM4rTNKj6wYaiKEVgat3jT4VYqAMtD5aBpVFqoaBHCuijQ3CxUCRe O7t0GQYzwGxjLmkng0co8PwzuX5m9zOfzuh6CG6KjPdVsK+0uL+XaytzwPLSgOwZPq3q hQz6lDExy5nkIXMKv2nz6FC4N+gOjKiLO/E2+3kHS58xlp3kciKl0zSkQYfnIxDrdxTr Q7zwj0v+A2iqOYYfIZ2APBeu9tP97NfFt0qpEhnkeirbeex7WEtQkQbEr+lGss8ms5aG gZE1+EkE2htaIVGMKsSDguR+419JptswJ0R+e/0zn5vVSSImKj0r7kNzzVFRWr+HWtuZ gM5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-sender:mime-version:subject:references:in-reply-to :message-id:to:from:date:x-gm-message-state:sender:from:to:cc :subject:date:message-id:reply-to; bh=t+UYXWQ2YKjC7ZAaqbWDlWsKi80kiY/NhYZ0wwacnE8=; b=XYp0GUb3nPP7GuWrcFzfNj5p5q/3qIipqPeivscUQ4p/YBGCnNQdQM+Ws3S3/x/fka jZNz89tAWMIUAAEHRUjYUuI7TzqE/pamtNOrHExFQrSebEbnskBPvQDnni6B8uEe3ZuG sUcwyHNaFAa6QbmKxrQ6GAr7gvSAF3g5KICQ1SHPXkZOoJwhlmp0G0yaLtXtK5uEWNCI +599+ZAUPLa3ifw3IDGx06GnLR2WGEaI0RCGT81QAEpy0eHbYRDM0+1bYEDnOOdxiLWY nC8i6VKShewAWCKpiKvbMJPf40En4fSkSAUw4kDqkDw6qXhoVp4VSLp6GONSj2vMcEn5 oODw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ANoB5pmC7FuF9EELS48oRDkVR7LIlOLBoG9PQaNWNrlkIEnJ/20/oor1 7JwPL+Ys6WgDlDBveYEqrpE= X-Google-Smtp-Source: AA0mqf5LUYcMeoLI2HmXC77eZ/KpDKWu0knXii12NKWvCwT57tTnRa+gDhTXJTGwzGyB4SwKBbviCw== X-Received: by 2002:a05:6808:23d0:b0:34f:92db:60ad with SMTP id bq16-20020a05680823d000b0034f92db60admr616297oib.178.1668170039070; Fri, 11 Nov 2022 04:33:59 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:746:0:b0:35a:8063:d38b with SMTP id 67-20020aca0746000000b0035a8063d38bls1379784oih.11.-pod-prod-gmail; Fri, 11 Nov 2022 04:33:56 -0800 (PST) X-Received: by 2002:a54:4083:0:b0:35a:4c94:d466 with SMTP id i3-20020a544083000000b0035a4c94d466mr625793oii.98.1668170035810; Fri, 11 Nov 2022 04:33:55 -0800 (PST) In-Reply-To: X-Original-Sender: Luis.A.de.Sousa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:31738 Archived-At: ------=_Part_3684_839157287.1668170034866 Content-Type: multipart/alternative; boundary="----=_Part_3685_619914077.1668170034866" ------=_Part_3685_619914077.1668170034866 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello again. I confirm those are the contents in line 38. I assume=20 utils.lua is being found, line 21 is now being parsed without error.=20 Anything else I can try?=20 Thank you. On Thursday, 10 November 2022 at 18:06:06 UTC+1 wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org= =20 wrote: > can you confirm what's in line 38 of the writer? if you haven't edited th= e=20 > file then it's this=20 > > : > > local output_file_dir, output_file_base =3D utils.path.split(output_file) > > can you confirm that you've also copied utils.lua and that it's being=20 > found? it should be calling the function at this line:=20 > https://gist.github.com/wlupton/2fc23fc1c4e4b4899121bfafc0fea4bf#file-uti= ls-lua-L31 > > > On Thu, 10 Nov 2022 at 16:36, Lu=C3=ADs de Sousa w= rote: > >> Thank you once more for keeping this going. I made some progress but now= =20 >> there is an error with html-multi-writer.lua itself (log below). I never= =20 >> worked with Lua before, apologies if I am making something dumb. >> >> $ wget=20 >> https://raw.githubusercontent.com/wlupton/pandoc-lua-logging/main/loggin= g.lua >> --2022-11-10 17:28:08-- =20 >> https://raw.githubusercontent.com/wlupton/pandoc-lua-logging/main/loggin= g.lua >> Resolving raw.githubusercontent.com (raw.githubusercontent.com)...=20 >> 185.199.111.133, 185.199.108.133, 185.199.110.133, ... >> Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.= 199.111.133|:443...=20 >> connected. >> HTTP request sent, awaiting response... 200 OK >> Length: 8173 (8,0K) [text/plain] >> Saving to: =E2=80=98logging.lua=E2=80=99 >> >> logging.lua 100%[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D>] 7,98K=20 >> --.-KB/s in 0s >> >> 2022-11-10 17:28:08 (42,0 MB/s) - =E2=80=98logging.lua=E2=80=99 saved [8= 173/8173] >> >> $ mkdir -p $HOME/.local/share/pandoc/filters >> $ mv logging.lua $HOME/.local/share/pandoc/filters >> $ export LUA_PATH=3D"$HOME/.local/share/pandoc/filters/?.lua;;" >> $ pandoc multi-test.md -t html-multi-writer.lua -o output/multi-test.htm= l >> Error running Lua: >> html-multi-writer.lua:38: attempt to index a boolean value (local 'utils= ') >> stack traceback: >> >> >> On Thursday, 10 November 2022 at 13:47:52 UTC+1=20 >> wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org wrote: >> >>> I've updated the gist by adding utils.lua and updating the README. This= =20 >>> should be sufficient for the writer to run without error (please let me= =20 >>> know if not). >>> >>> Note that you'll also need to get logging.lua as described, and also=20 >>> note that any generated YAML files will be empty (I didn't want to shar= e my=20 >>> brain-dead YAML writer but there appear to be lua YAML writers out ther= e=20 >>> that might work... anyway you might decide that you don't need the=20 >>> generated YAML... this depends on how you set up the make rules). >>> >>> I don't really want to create a repo for this (well... a gist _is_ a=20 >>> repo!) because I don't want (at this point) to provide any support for = it=20 >>> (questions are OK though). I'm providing the gist just as a demo of the= =20 >>> approach. Maybe later... >>> >>> On Wed, 9 Nov 2022 at 18:28, William Lupton =20 >>> wrote: >>> >>>> Oh sorry, yes, utils is one of mine! I'll look into this tomorrow... >>>> >>>> On Wed, 9 Nov 2022, 16:03 Lu=C3=ADs de Sousa, w= rote: >>>> >>>>> Thank you very much for sharing, that looks very promising. >>>>> >>>>> Pandoc can't run the script though, says it can't find the utils=20 >>>>> package. I installed luarocks and with it lua-utils but the error pre= vails: >>>>> >>>>> $ pandoc multi-test.md -t html-multi-writer.lua -o=20 >>>>> output/multi-test.html >>>>> Error running Lua: >>>>> html-multi-writer.lua:21: module 'utils' not found: >>>>> no field package.preload['utils'] >>>>> no file '/usr/local/share/lua/5.4/utils.lua' >>>>> no file '/usr/local/share/lua/5.4/utils/init.lua' >>>>> no file '/usr/local/lib/lua/5.4/utils.lua' >>>>> no file '/usr/local/lib/lua/5.4/utils/init.lua' >>>>> no file './utils.lua' >>>>> no file './utils/init.lua' >>>>> no file '/usr/local/lib/lua/5.4/utils.so' >>>>> no file '/usr/local/lib/lua/5.4/loadall.so' >>>>> no file './utils.so' >>>>> stack traceback: >>>>> html-multi-writer.lua:21: in main chunk >>>>> >>>>> P.S.: would you consider creating a repository for this work? I would= =20 >>>>> like to automate the second stage with bash, shouldn't be too hard. >>>>> >>>>> On Monday, 7 November 2022 at 15:46:58 UTC+1=20 >>>>> wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org wrote: >>>>> >>>>>> I've created this gist:=20 >>>>>> https://gist.github.com/wlupton/2fc23fc1c4e4b4899121bfafc0fea4bf >>>>>> >>>>>> I added a README.md and hope that there's enough info to get going.= =20 >>>>>> Please let me know if not. >>>>>> >>>>>> (Please note that this writer does some other things too, which migh= t=20 >>>>>> need to be stripped out. Also, it's an old-style writer... I haven't= got=20 >>>>>> around to updating it yet,) >>>>>> >>>>>> On Mon, 7 Nov 2022 at 09:22, Lu=C3=ADs de Sousa =20 >>>>>> wrote: >>>>>> >>>>>>> Hi there. That is precisely the kind of output I would like to have= .=20 >>>>>>> Similar to what tools like mdBook produce. I would be glad if you c= ould=20 >>>>>>> share more details on that custom writer. >>>>>>> >>>>>>> Thank you and regards. >>>>>>> >>>>>>> On Friday, 4 November 2022 at 17:51:24 UTC+1=20 >>>>>>> wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org wrote: >>>>>>> >>>>>>>> See https://usp.technology/specification for an example of how the= =20 >>>>>>>> Broadband Forum has recently been publishing some specs. This outp= ut is=20 >>>>>>>> generated via an html-multi-writer.lua custom writer that contains= the=20 >>>>>>>> logic for splitting the output into multiple files (based on heade= r level=20 >>>>>>>> and/or specific classes). The writer also takes care of generating= the=20 >>>>>>>> navigation bar that you see at the top and bottom of the pages. Th= e=20 >>>>>>>> multiple files are then passed through pandoc again (to add the ov= erall=20 >>>>>>>> sidebar ToC and the top/bottom navigation bars, and to generate mu= ltiple=20 >>>>>>>> standalone docs). >>>>>>>> >>>>>>>> Please let me know if you'd like more details (the overall setup i= s=20 >>>>>>>> not very easily shareable, because it's heavily dependent on=20 >>>>>>>> rather complicated make rules, but I could probably share the cust= om writer=20 >>>>>>>> and give some example command lines.) >>>>>>>> >>>>>>>> On Fri, 4 Nov 2022 at 12:45, Lu=C3=ADs de Sousa =20 >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Dear all, >>>>>>>>> >>>>>>>>> I am currently working on a long document that must served as a= =20 >>>>>>>>> web page. The single file output is becoming too slow and cumbers= ome for=20 >>>>>>>>> readers. I am aware this functionality is not available, but a Fe= ature=20 >>>>>>>>> Request is open [0].=20 >>>>>>>>> >>>>>>>>> In that issue there are some hints to this issue being addressabl= e=20 >>>>>>>>> with a template [1]. I have tried many HTML templates, but never = seen one=20 >>>>>>>>> that would split a long document in a set of small files. Would t= here be an=20 >>>>>>>>> example somewhere I could follow? Otherwise, could someone provid= e a=20 >>>>>>>>> general idea of how such template would function? >>>>>>>>> >>>>>>>>> Thank you. >>>>>>>>> >>>>>>>>> [0] https://github.com/jgm/pandoc/issues/6122 >>>>>>>>> >>>>>>>>> [1]=20 >>>>>>>>> https://github.com/jgm/pandoc/issues/6122#issuecomment-583593340 >>>>>>>>> >>>>>>>>> --=20 >>>>>>>>> You received this message because you are subscribed to the Googl= e=20 >>>>>>>>> Groups "pandoc-discuss" group. >>>>>>>>> To unsubscribe from this group and stop receiving emails from it,= =20 >>>>>>>>> send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>>>>>>> To view this discussion on the web visit=20 >>>>>>>>> https://groups.google.com/d/msgid/pandoc-discuss/264eeee0-68c8-43= 89-a5c5-12563c6926f6n%40googlegroups.com=20 >>>>>>>>> >>>>>>>>> . >>>>>>>>> >>>>>>>> --=20 >>>>>>> You received this message because you are subscribed to the Google= =20 >>>>>>> Groups "pandoc-discuss" group. >>>>>>> To unsubscribe from this group and stop receiving emails from it,= =20 >>>>>>> send an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>>>>> >>>>>> To view this discussion on the web visit=20 >>>>>>> https://groups.google.com/d/msgid/pandoc-discuss/cb3753d7-e845-4a72= -a1aa-e93086a32f11n%40googlegroups.com=20 >>>>>>> >>>>>>> . >>>>>>> >>>>>> --=20 >>>>> You received this message because you are subscribed to the Google=20 >>>>> Groups "pandoc-discuss" group. >>>>> To unsubscribe from this group and stop receiving emails from it, sen= d=20 >>>>> an email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>>> To view this discussion on the web visit=20 >>>>> https://groups.google.com/d/msgid/pandoc-discuss/1ef6858a-0a37-4f5f-a= 88b-eff2479a8130n%40googlegroups.com=20 >>>>> >>>>> . >>>>> >>>> --=20 >> You received this message because you are subscribed to the Google Group= s=20 >> "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send a= n=20 >> email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/539db8b9-47f4-43b8-83d1= -4b4c99dc3b3fn%40googlegroups.com=20 >> >> . >> > --=20 You received this message because you are subscribed to the Google Groups "= pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/7f4b28ec-1e91-4228-ab03-fe58a2e5cf18n%40googlegroups.com. ------=_Part_3685_619914077.1668170034866 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello again. I confirm those are the contents in line 38. I assume utils.lu= a is being found, line 21 is now being  parsed without error. Anything= else I can try? 

Thank you.

On Thursday, 10 No= vember 2022 at 18:06:06 UTC+1 wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org wrote:
<= blockquote class=3D"gmail_quote" style=3D"margin: 0 0 0 0.8ex; border-left:= 1px solid rgb(204, 204, 204); padding-left: 1ex;">
can you= confirm what's in line 38 of the writer? if you haven't edited the= file then it's this:

local output_file_dir, output_file_base =3D utils.pat= h.split(output_file)

can you confirm th= at you've also copied utils.lua and that it's being found? it shoul= d be calling the function at this line:=C2=A0https://gist.github.com/wlupton/= 2fc23fc1c4e4b4899121bfafc0fea4bf#file-utils-lua-L31


On Thu, 10 Nov 2022 at 16:36, Lu=C3=ADs d= e Sousa <luis.a....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org= > wrote:
Thank you once more for keeping this going= . I made some progress but now there is an error with html-multi-writer.lua= itself (log below). I never worked with Lua before, apologies if I am maki= ng something dumb.

$ wget https://raw.githubusercontent.com/wlupton/= pandoc-lua-logging/main/logging.lua
--2022-11-10 17:28:08-- =C2=A0https://raw.github= usercontent.com/wlupton/pandoc-lua-logging/main/logging.lua
Resolvin= g raw.githubusercontent.com
(raw.githubusercontent.com)... 185.199.111.133, 185.199.108.133, 185.199.110.133, ...
Connecting = to
raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected.
HTTP request sent, awaiting respon= se... 200 OK
Length: 8173 (8,0K) [text/plain]
Saving to: =E2=80=98log= ging.lua=E2=80=99

logging.lua =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 100%[=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D>] =C2=A0 7,98K =C2=A0--.-KB/s =C2=A0 =C2=A0in 0= s

2022-11-10 17:28:08 (42,0 MB/s) - =E2=80=98logging.lua=E2=80=99 sa= ved [8173/8173]

$ mkdir -p $HOME/.local/share/pandoc/filters
$ mv= logging.lua $HOME/.local/share/pandoc/filters
$ export LUA_PATH=3D"= ;$HOME/.local/share/pandoc/filters/?.lua;;"
$ pandoc multi-test.md = -t html-multi-writer.lua -o output/multi-test.html
Error running Lua:html-multi-writer.lua:38: attempt to index a boolean value (local 'uti= ls')
stack traceback:


I've updated the gist by adding utils.lua a= nd updating the README. This should be sufficient for the writer to run wit= hout error (please let me know if not).

Note that you= 9;ll also need to get logging.lua as described, and also note that any gene= rated YAML files will be empty=C2=A0(I didn't want to share my brain-de= ad YAML writer but there appear to be lua YAML writers out there that might= work... anyway you might decide that you don't need the generated YAML= ... this depends on how you set up the make rules).

I don't really want to create a repo for this (well... a gist _is_ a = repo!) because I don't want (at this point) to provide any support for = it (questions are OK though). I'm providing the gist just as a demo of = the approach. Maybe later...

On Wed, 9 Nov 2022= at 18:28, William Lupton <wlu...-QSt+ys/nuMyEUIsrzH9SisXa4x6EXUF0@public.gmane.org= g> wrote:
Oh sorry, yes, utils is one of mine! I'll look into = this tomorrow...

On Wed, 9 Nov 2022, 16:03 Lu=C3=ADs de Sousa, <luis.a....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Thank you very much for sharing, that look= s very promising.

Pandoc can't run the script though= , says it can't find the utils package. I installed luarocks and with i= t lua-utils but the error prevails:

$ pandoc multi= -test.md -t html-multi-writer.lua -o output/multi-test.html
Error runnin= g Lua:
html-multi-writer.lua:21: module 'utils' not found:
= =C2=A0 =C2=A0 no field package.preload['utils']
=C2=A0 =C2=A0 no= file '/usr/local/share/lua/5.4/utils.lua'
=C2=A0 =C2=A0 no file= '/usr/local/share/lua/5.4/utils/init.lua'
=C2=A0 =C2=A0 no file= '/usr/local/lib/lua/5.4/utils.lua'
=C2=A0 =C2=A0 no file '/= usr/local/lib/lua/5.4/utils/init.lua'
=C2=A0 =C2=A0 no file './u= tils.lua'
=C2=A0 =C2=A0 no file './utils/init.lua'
=C2=A0= =C2=A0 no file '/usr/local/lib/lua/5.4/utils.so'
=C2=A0 =C2=A0 = no file '/usr/local/lib/lua/5.4/loadall.so'
=C2=A0 =C2=A0 no fil= e './utils.so'
stack traceback:
=C2=A0 =C2=A0 html-multi-writ= er.lua:21: in main chunk

P.S.: would you consider creatin= g a repository for this work? I would like to automate the second stage wit= h bash, shouldn't be too hard.

On Monday, 7 November 2022 at= 15:46:58 UTC+1 wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org wrote:
I've created this gist:=C2=A0https://gist.github.com/wlupton/2fc23fc1c4e4b4899121bfafc0fea4= bf

I added a README.md and hope that there's eno= ugh info to get going. Please=C2=A0let me know if not.

=
(Please note that this writer does some other things too, which might = need to be stripped out. Also, it's an old-style writer... I haven'= t got around to updating it yet,)

On = Mon, 7 Nov 2022 at 09:22, Lu=C3=ADs de Sousa <luis.a....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi there. That is= precisely the kind of output I would like to have. Similar to what tools l= ike mdBook produce. I would be glad if you could share more details on that= custom writer.

Thank you and regards.

On Friday, 4 Novemb= er 2022 at 17:51:24 UTC+1 wlu...@broadband-f= orum.org wrote:
See=C2=A0https://usp.technology/specification for an exam= ple of how the Broadband Forum has recently been publishing some specs. Thi= s output is generated via an html-multi-writer.lua custom writer that conta= ins the logic for splitting the output into multiple files (based on header= level and/or specific classes). The writer also takes care of generating t= he navigation bar that you see at the top and bottom of the pages. The mult= iple files are then passed through pandoc again (to add the overall sidebar= ToC and the top/bottom navigation=C2=A0bars, and to generate multiple stan= dalone docs).

Please let me know if you'd like= more details=C2=A0(the overall setup is not very easily shareable, because= it's heavily dependent on rather=C2=A0complicated make rules, but I co= uld probably share the=C2=A0custom writer and give some example command=C2= =A0lines.)

On Fri, 4 Nov 2022 at 12:4= 5, Lu=C3=ADs de Sousa <luis.a....@gmail.c= om> wrote:
Dear all,

I am curren= tly working on a long document that must served as a web page. The single f= ile output is becoming too slow and cumbersome for readers. I am aware this= functionality is not available, but a Feature Request is open [0].=C2=A0

In that issue there are some hints to this issue be= ing addressable with a template [1]. I have tried many HTML templates, but = never seen one that would split a long document in a set of small files. Wo= uld there be an example somewhere I could follow? Otherwise, could someone = provide a general idea of how such template would function?
--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit
https://groups.google.com/d/msgid/pandoc-discus= s/264eeee0-68c8-4389-a5c5-12563c6926f6n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discus...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit
https://groups.google.com/d/msgid/pandoc-discus= s/1ef6858a-0a37-4f5f-a88b-eff2479a8130n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pandoc-discus...@googleg= roups.com.

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d= /msgid/pandoc-discuss/7f4b28ec-1e91-4228-ab03-fe58a2e5cf18n%40googlegroups.= com.
------=_Part_3685_619914077.1668170034866-- ------=_Part_3684_839157287.1668170034866--