From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31708 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "'William Lupton' via pandoc-discuss" Newsgroups: gmane.text.pandoc Subject: Re: Multiple HTML file (chunked) output with template Date: Mon, 7 Nov 2022 14:46:43 +0000 Message-ID: References: <264eeee0-68c8-4389-a5c5-12563c6926f6n@googlegroups.com> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000009da8da05ece27e7e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10989"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBX5UUSNQMGQEG44XUSQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Nov 07 15:46:59 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-oi1-f188.google.com ([209.85.167.188]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1os3Ot-0002eJ-Gd for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 07 Nov 2022 15:46:59 +0100 Original-Received: by mail-oi1-f188.google.com with SMTP id 19-20020aca1113000000b0035a95a1f697sf301768oir.16 for ; Mon, 07 Nov 2022 06:46:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1667832418; cv=pass; d=google.com; s=arc-20160816; b=ACTSAOHEwx1acrsM2wPvsajzbA+GGOp3gaSHH8Y31kc3RpXIMFJVq8KsedJvgYl83G StomAnLm4EpxfHE0MAenHA7kLKNzXe9aCdQbfX6cPcvvAzJ85kyZKCp7mGoH9SfTz/lr hGuPMT+Ldn0SKiBUlTJUHRwWLfJppSf0hLVjPAI5crhRYlVZ7iDEJOJxKir7+NhJf5eH ZzDqFQkLHlhEt57SpgQsxVaj6rdtk2ArhuEAzo9Bd5TxGj2Lau508ouvX0udUWnincoV Qgrox8y2RxY2BXwmvEZixxN+ZincKD+BfhQzBTLy17MB3y9ziyJWwG79ANWOWWvaQMms uCSw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:in-reply-to:references:mime-version:dkim-signature; bh=1AxmzWjfHKgwPM73Qypl0dtUcMssaz2Jw1AmY461hms=; b=BGJA1ShtzXjsk8g+oSlmOauxbZ/zSuW5/y47GxwowISGLJ7DU3nvkdMI9KN/yxYusq ocUmOet6LCIG/Hi0LHCE3BdVDNvKbg3efH5JMofAqMzn+FR/jaq6Cd72I7Q1Z8wCv56M txgD14J1w/O4Zcky7GFpdRtVaujoXbfI+mpignvDdCeSPykttBwsCWtDferyrDJXQBP1 /888ihNlc3cR+T8GrDdAa0LMTN9ii4hNjdgXoBJLxQTjOhym4LwBUHT1BwJv5u+tuVDm LiD/6Sh1BCQrvUnM85XW805+7rUvl/D5WdSBJ4g6sAhIWcpY7at25GJjQ9PsLcOrz10R o0mQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=ou63EXtY; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::b2a as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org 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-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=1AxmzWjfHKgwPM73Qypl0dtUcMssaz2Jw1AmY461hms=; b=iMDu6I2x++tmgBqHMZDQ2yyUbQhR9xgsHcrST5Nh3xf9OP4NtaV9hvUlDFTSFLXsaG z7x5IJbHc3oA4EJxzDwCxUUApLD0P7dondKPPn7y5WPbMjzWkSBBLnAncBnen0efuG3I kFQxeDeh+X3DQf+AJ4FOJg/e9oozlUb12DHgWHW6m+VET2vlUFBxYET62LwY0nK2x+ci W8xzWwG7M4RsmDtL9DVx0u4dMAeyV1Htlv3iiuiUAZ9hj6jv3y9DiZJ5VFF3fNa6sUoi NPXdlKdr+6i0Yn8d1Z6ALm1szBHY4diy9lBFwaq0aZJZPvC9pKUhHHbsYFs4NaL4/jR8 3JqQ== 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-authentication-results:x-original-sender:to:subject :message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=1AxmzWjfHKgwPM73Qypl0dtUcMssaz2Jw1AmY461hms=; b=KEbx0HKJ/0TnfHq8DLPR89QKIIE8Gc67x+y4OM4OWQqh+jrFzwJNPZ7/8NtA/TLjeZ MqqY4fhixubi88ofcgrwwKR12l/Ztr1fRDpuUx4Ei0NxzSBKrvBg4WP66SdEvQ6pOkSd ptBqAQLxGp2JkAgjGcmFcEiah2tQHkTQSws+rds5LjjwCOz/xCK0UCTiz7iBDwBZ5tA8 Z0EjdV81NvyUA5jd2oa3KNr/bPYa6Sy/o10B6uN71SKn0KqcnVy/Gx8aLEg8KrVD4r9j h5aamn/Ay5MWgxsB8D8nBJUXN2GWw7V4I3Sy/VFcXOz+mp1RK/YgSQeh2robgu6 X-Gm-Message-State: ACrzQf1p+D3+ZWo0V/NPDkP+yUv/Wg+GKJg4lEVaystybtNAUBW7IyE+ egHtsBh1pBzU9Y7gTiTTozA= X-Google-Smtp-Source: AMsMyM5+vDDSkquZjN/zjndSMwXKRcudyAyHURXCSe+3AgXbhyOI15GRA9bRzrqy23Cgc6FUgbIaBQ== X-Received: by 2002:a05:6870:3906:b0:13c:7aa9:469e with SMTP id b6-20020a056870390600b0013c7aa9469emr30656835oap.29.1667832418359; Mon, 07 Nov 2022 06:46:58 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:2809:0:b0:35a:9ab0:cca9 with SMTP id 9-20020aca2809000000b0035a9ab0cca9ls33808oix.7.-pod-prod-gmail; Mon, 07 Nov 2022 06:46:55 -0800 (PST) X-Received: by 2002:a05:6808:150a:b0:35a:7719:5b58 with SMTP id u10-20020a056808150a00b0035a77195b58mr5794287oiw.119.1667832415328; Mon, 07 Nov 2022 06:46:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667832415; cv=none; d=google.com; s=arc-20160816; b=Rl+JZX9C4/NccFyl1x9kyuNcY2U9qvzRe1CA83oyy+gGapJSQW1ANCc8qf5hN8n0YY +WMRNaInZkgC5b+fBDQGiqe8TlVVpQBYUlXut0GwCiF5YBt3I0XTsLmoeyURIZ51AJYi tJwNUDDhLieijqTPvL+O/IbmIFffsN2pkyeyWz+zI7xKoxnQD1Rcn0OkW1hQW70J2LfP 9gLNDyAr7IZwIJhkUJt25PaSkMjQcSm0/KCaq3a7ijDJe3a3dH0WqOYVaLAekv12CdT1 RfZZBZ8ccWjMQl3i/Xy22L61FzA+fEQg/Q6wsuUimjHW9WoTSJRC2kb9blfqm/HL+ZrS +9FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=xS0ORZ2tAL8ZhD9AHiXHavq/Djs9WVt99LaZlYTxt84=; b=ZvKBTlQgrsUEnruglosXW/B7IE1DxhzsnvxeV+0R5AXUXC2BlqGUHcENrgHMKGIGn9 ujOtVWdlTwxu9Iu8qo4zeCUgH0vf0DoNDWD5fHACs6lhdiA6DbgoOarcftTMrUbSesFI D0bf1RCnE2ukd5L52U83qASfV+OzGOafwqegwZ49/6O7CmiPkLGPPNvcfyaxqdr0XLTI Bjxanh7DAE/iz04YGrG+UCjKqhpHhDJ1f23HpBI42U+DBaFty7v5UoskLYmpAp1/FuBV EJjej3zI6XP3hXATmWw5EeRC9ByFO1UKQkbVh8hbHjhRfepqgx8RUCAX5Eo0WYpitOot lSrA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=ou63EXtY; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::b2a as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org Original-Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com. [2607:f8b0:4864:20::b2a]) by gmr-mx.google.com with ESMTPS id cv2-20020a056870c68200b001371e49ab90si370047oab.3.2022.11.07.06.46.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Nov 2022 06:46:55 -0800 (PST) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::b2a as permitted sender) client-ip=2607:f8b0:4864:20::b2a; Original-Received: by mail-yb1-xb2a.google.com with SMTP id g127so13858595ybg.8 for ; Mon, 07 Nov 2022 06:46:55 -0800 (PST) X-Received: by 2002:a25:be87:0:b0:6d2:d6f0:9198 with SMTP id i7-20020a25be87000000b006d2d6f09198mr18441563ybk.542.1667832414572; Mon, 07 Nov 2022 06:46:54 -0800 (PST) In-Reply-To: X-Original-Sender: wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b=ou63EXtY; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::b2a as permitted sender) smtp.mailfrom=wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadband-forum.org X-Original-From: William Lupton 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:31708 Archived-At: --0000000000009da8da05ece27e7e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've created this gist: https://gist.github.com/wlupton/2fc23fc1c4e4b4899121bfafc0fea4bf I added a README.md and hope that there's enough info to get going. Please let 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 wrote: > Hi there. That is precisely the kind of output I would like to have. > Similar to what tools like mdBook produce. I would be glad if you could > share more details on that custom writer. > > Thank you and regards. > > On Friday, 4 November 2022 at 17:51:24 UTC+1 wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org > wrote: > >> See https://usp.technology/specification for an example of how the >> Broadband Forum has recently been publishing some specs. This output is >> generated via an html-multi-writer.lua custom writer that contains the >> logic for splitting the output into multiple files (based on header leve= l >> and/or specific classes). The writer also takes care of generating the >> navigation bar that you see at the top and bottom of the pages. The >> multiple files are then passed through pandoc again (to add the overall >> sidebar ToC and the top/bottom navigation bars, and to generate multiple >> standalone docs). >> >> Please let me know if you'd like more details (the overall setup is not >> very easily shareable, because it's heavily dependent on rather complica= ted >> make rules, but I could probably share the custom writer and give some >> example command lines.) >> >> On Fri, 4 Nov 2022 at 12:45, Lu=C3=ADs de Sousa w= rote: >> >>> Dear all, >>> >>> I am currently working on a long document that must served as a web >>> page. The single file output is becoming too slow and cumbersome for >>> readers. I am aware this functionality is not available, but a Feature >>> Request is open [0]. >>> >>> In that issue there are some hints to this issue being addressable with >>> a template [1]. I have tried many HTML templates, but never seen one th= at >>> would split a long document in a set of small files. Would there be an >>> example somewhere I could follow? Otherwise, could someone provide a >>> general idea of how such template would function? >>> >>> Thank you. >>> >>> [0] https://github.com/jgm/pandoc/issues/6122 >>> >>> [1] https://github.com/jgm/pandoc/issues/6122#issuecomment-583593340 >>> >>> -- >>> 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 email to pandoc-discus...-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/pandoc-discuss/264eeee0-68c8-4389-a5c= 5-12563c6926f6n%40googlegroups.com >>> >>> . >>> >> -- > 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 > email 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/cb3753d7-e845-4a72-a1aa-= e93086a32f11n%40googlegroups.com > > . > --=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/CAEe_xxj6Bht_r9A9ngmpYyseaOjeifv-ONFgZ8quUd6rONTC_g%40mail.g= mail.com. --0000000000009da8da05ece27e7e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've created this gist:=C2=A0https://gist.github.com= /wlupton/2fc23fc1c4e4b4899121bfafc0fea4bf

I added a = README.md and hope that there's enough info to get going. Please=C2=A0l= et me know if not.

(Please note that this writer d= oes some other things too, which might need to be stripped out. Also, it= 9;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.de.sousa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
=
Hi there. That is precise= ly the kind of output I would like to have. Similar to what tools like mdBo= ok produce. I would be glad if you could share more details on that custom = writer.

Thank you and regards.

On Friday, 4 November 2022 = at 17:51:24 UTC+1 wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org wrote:
See=C2=A0https:= //usp.technology/specification for an example of how the Broadband Foru= m has recently been publishing some specs. This output is generated via an = html-multi-writer.lua custom writer that contains the logic for splitting t= he output into multiple files (based on header level and/or specific classe= s). The writer also takes care of generating the navigation bar that you se= e at the top and bottom of the pages. The multiple files are then passed th= rough pandoc again (to add the overall sidebar ToC and the top/bottom navig= ation=C2=A0bars, and to generate multiple standalone docs).

<= /div>
Please let me know if you'd like more details=C2=A0(the overa= ll setup is not very easily shareable, because it's heavily dependent o= n rather=C2=A0complicated make rules, but I could probably share the=C2=A0c= ustom writer and give some example command=C2=A0lines.)

On Fri, 4 Nov 2022 at 12:45, Lu=C3=ADs de Sousa <luis.a....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Dear a= ll,

I am currently working on a long document that must = served as a web page. The single file output is becoming too slow and cumbe= rsome for readers. I am aware this functionality is not available, but a Fe= ature Request is open [0].=C2=A0

In that issue the= re are some hints to this issue being addressable with a template [1]. I ha= ve tried many HTML templates, but never seen one that would split a long do= cument in a set of small files. Would there be an example somewhere I could= follow? Otherwise, could someone provide a general idea of how such templa= te would function?

Thank you.

=
--
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-discuss/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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https= ://groups.google.com/d/msgid/pandoc-discuss/cb3753d7-e845-4a72-a1aa-e93086a= 32f11n%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 pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.= google.com/d/msgid/pandoc-discuss/CAEe_xxj6Bht_r9A9ngmpYyseaOjeifv-ONFgZ8qu= Ud6rONTC_g%40mail.gmail.com.
--0000000000009da8da05ece27e7e--