From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31705 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: Mon, 7 Nov 2022 01:22:20 -0800 (PST) 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/mixed; boundary="----=_Part_608_366906896.1667812940530" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3520"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBCOZLZGK4QDBBUM4UONQMGQESMVQFFI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Nov 07 10:22:31 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f59.google.com ([209.85.210.59]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oryKs-0000ha-NE for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 07 Nov 2022 10:22:30 +0100 Original-Received: by mail-ot1-f59.google.com with SMTP id cj4-20020a056830640400b0065c0c211f4dsf5346270otb.8 for ; Mon, 07 Nov 2022 01:22:30 -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=GfQoGh2ikLIlP9aK3sIRDfb5dU0xXdsjpKuSJ13blGs=; b=g5/8tr9WD6QH6OqHtO3Nn0HT1HRRB/Av8rTvRJc9bPAfV+6ksZcsYB+B348AMxJohD X7NhWaEm5mr5zd6UTKr53PZU+416eh0bbIPQJqBP12lcdraowTSJBORZ6yFv7K3+ohVq gyTeCb8Ke4dAQ0VP2xx2d2UyA+wNtvSJ0+BN4DZIitogjWrgQ0Alf1TOBwTT8/j9sl8h ZmP5ra4b+FxQ2prIGO4k+p9s/mf2+HEN4H6vvSvGopFJ6WKMrsrTWJdtELyWFwAZrYos pEljbArXOB0yRu/QjezlA0G2JpXo/SuUvZf3b4jmi+2s1OaK0QQhdkWvHyzhEzhe1NdX tYzA== 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=GfQoGh2ikLIlP9aK3sIRDfb5dU0xXdsjpKuSJ13blGs=; b=LwqGXe8rLT4uZpgjzfbi67PU/mUOzFZL8GrFgfzAbea+SOg3FWMhfAmxtf4F64DaSM uM9KTn7X5dPkpCdZUJt4/IIg+O1pZoGNmZ8PIFNZYnTifLerAECbaqkri7uGzMoVrQj3 oq666JxoC40qLZfZVRXYq1jP9wbMkVY52U1OCbBM9n7IttlrOjwTzOR+qGKMCOpFNcOf X7HQk1cKOxaOioY+hJpUxsnZ0aIWeIuBYwaGaAu/WtYx/7t8mIj+seQm6cXMRb+Y+mtR F2H5kRCCTYQ65k646b1IxrckuHfe2gIw+OZwhPkGgfSEGxq6NUOQl9ZvgbqTVyoNLxKh bsLA== 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=GfQoGh2ikLIlP9aK3sIRDfb5dU0xXdsjpKuSJ13blGs=; b=p+z+0hcihIZtSuGQs2CoJnWatsfqfSNhBjK0LieQ/9N9Dr3wBvKLNeR+dnB0+dSh3S GpgymK8WfBkOjF1HTWMF1bEfG9YKyxKgxeh3vKpzkmX/8EdMKmiDLvWqISJsMPRPy3Ic d1Bp1JibK6P5pTKVheiaLlVJM3COdLl2dz2t92yv80AuILn7D5xIuTs/pf0VwS9oLURh f+6uHAWx66tOdf13QB1NzQVlLBe0E57zDIaLI1/RRY/pU7AyljTxfY58HSMQ/XbKm8Mo w05tDlbMVTdKJJcchnXLLpFbKxV7eFmBol209A+EAlOdLDlC0uw//PtszMG8i6HINnyX N8gQ== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: ACrzQf2jKVQkuwJoDo1GQnrPfvUV2pl9QRSoP03wJM0c/37ws1NmgoeG zDJLoUXLRlsjxyWP/7ltA8s= X-Google-Smtp-Source: AMsMyM4oYoSsRQ/c5XKiJY4or3OXH10xRffwg/esaKn5WYgBH/akyMf1AVreKQn7I2klQFsKjB6XpA== X-Received: by 2002:a05:6808:215:b0:359:e96a:ae71 with SMTP id l21-20020a056808021500b00359e96aae71mr553236oie.69.1667812948045; Mon, 07 Nov 2022 01:22:28 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:f1d5:0:b0:357:5ddf:b56e with SMTP id p204-20020acaf1d5000000b003575ddfb56els3284608oih.7.-pod-prod-gmail; Mon, 07 Nov 2022 01:22:23 -0800 (PST) X-Received: by 2002:a05:6808:1524:b0:35a:7eee:2c03 with SMTP id u36-20020a056808152400b0035a7eee2c03mr3719876oiw.28.1667812941486; Mon, 07 Nov 2022 01:22:21 -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:31705 Archived-At: ------=_Part_608_366906896.1667812940530 Content-Type: multipart/alternative; boundary="----=_Part_609_1790306293.1667812940530" ------=_Part_609_1790306293.1667812940530 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 could=20 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=20 wrote: > See https://usp.technology/specification for an example of how the=20 > Broadband Forum has recently been publishing some specs. This output 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 header 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. The=20 > multiple files are then passed through pandoc again (to add the overall= =20 > sidebar ToC and the top/bottom navigation bars, and to generate multiple= =20 > standalone docs). > > Please let me know if you'd like more details (the overall setup is not= =20 > very easily shareable, because it's heavily dependent on rather complicat= ed=20 > make rules, but I could probably share the custom writer and give some=20 > example command lines.) > > On Fri, 4 Nov 2022 at 12:45, Lu=C3=ADs de Sousa wr= ote: > >> Dear all, >> >> I am currently working on a long document that must served as a web page= .=20 >> The single file output is becoming too slow and cumbersome for readers. = I=20 >> am aware this functionality is not available, but a Feature Request is o= pen=20 >> [0].=20 >> >> In that issue there are some hints to this issue being addressable with = a=20 >> template [1]. I have tried many HTML templates, but never seen one that= =20 >> would split a long document in a set of small files. Would there be an= =20 >> example somewhere I could follow? Otherwise, could someone provide a=20 >> 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 >> >> --=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/264eeee0-68c8-4389-a5c5= -12563c6926f6n%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/cb3753d7-e845-4a72-a1aa-e93086a32f11n%40googlegroups.com. ------=_Part_609_1790306293.1667812940530 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi there. That is precisely the kind of output I would like to have. Simila= r to what tools like mdBook produce. I would be glad if you could share mor= e details on that custom writer.

Thank you and regards.<= br>
On= Friday, 4 November 2022 at 17:51:24 UTC+1 wlu...-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org wrote= :
See htt= ps://usp.technology/specification for an example of how the Broadband F= orum has recently been publishing some specs. This output is generated via = an html-multi-writer.lua custom writer that contains the logic for splittin= g the output into multiple files (based on header level and/or specific cla= sses). 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 na= vigation bars, and to generate multiple standalone docs).
Please let me know if you'd like more details (the overal= l setup is not very easily shareable, because it's heavily dependent on rat= her complicated 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 <luis.a....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> = wrote:
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 functional= ity is not available, but a Feature Request is open [0]. 
In that issue there are some hints to this issue being address= able 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. Would there b= e an example somewhere I could follow? Otherwise, could someone provide a g= eneral idea of how such template would function?

T= hank you.


--
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-discus.= ..@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/264eeee= 0-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 pand= oc-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-e93086a32f11n%40googlegroups.= com.
------=_Part_609_1790306293.1667812940530-- ------=_Part_608_366906896.1667812940530--