From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/31688 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: Fri, 4 Nov 2022 16:51:10 +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="00000000000021ec8c05eca7e2b1" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27172"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCS4HJ6WSAHBBCUGSWNQMGQEZMUUFZQ-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Nov 04 17:51:26 2022 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-vk1-f183.google.com ([209.85.221.183]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oqzuf-0006sh-Vs for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 04 Nov 2022 17:51:26 +0100 Original-Received: by mail-vk1-f183.google.com with SMTP id j141-20020a1fa093000000b003b82d87020bsf2074673vke.23 for ; Fri, 04 Nov 2022 09:51:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1667580685; cv=pass; d=google.com; s=arc-20160816; b=iEmCC+h6YRSZ58PycGUVKhJYm/y/1ok+Dsqc61nhORTANG/NijC0TJHAHYo32mpyxx gBxuPvYGaK5Tt/jd9btkIRgi8CU2uD/iapyqJJJJlqlh9dEknRCKWXg6Mb9nx7tUWtJb oxCvwHPL6cmjH9oiBqocb/wWYp6SCoA8FRbeamtCvTUcI+tmGL2dGmXF1MkzKk40PWJt uYJtogo1gKU99ARmLMNSMwBpVap1+2D8HaVvBfu6E7CUXKJhQVg05QsFFu1+5fKss8T1 757bFm+LtBNKYwauTF7ePe7gDkzyNxI8gg7NmwQZQsha5R6ebAhnYr3aFHUWkuYEUZX5 IqOg== 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=DI6BXqHt39OlLkfb/zjo2/8pN60hX46nMDMN8PBCzGk=; b=Zd+gdGNwsO2np52KpmfxRy5pFpu2eZhZFjnL0nWDCfN7wbKqIaosUhXW2nMJKKQVDE sGxN1/k/A/P3Aqeq6AvRKbvCgRDeE0aTYaHZD0jTGXZwRgvjKgglbCsOUhXSnREcOJZU JZ78h6CTM0CpSj5D9PspG7pPOURk8pQZXhL0Jl80dusEirXOXSayIXpd6AJ2YqmaIUcv 2ahxm0Fn7L8A941Igqm9gEIw+0bT9ES0z1taHia+D9Xouo0QafvNNKSHhyrHxtre3RgO yxaFTXoqe1eExAtJNjZso2P+bnuZ4yY+M2kMbhtDONGOWZVgwcDP11IQ0FAmOCr198/y 59Uw== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b="rCKzXK/f"; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::b31 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=DI6BXqHt39OlLkfb/zjo2/8pN60hX46nMDMN8PBCzGk=; b=UQZIQlRIVkg8N7tHXYDKTz2XV1c9ZP+FH3iFLZ5wxsRenml/Y5i17m1kHASfCfGPDV /9+ztfhfnW4OjnO+xWaKwKYBGaL/QhaGQPD4bH0Xr7u0Qq7Bn6yjEp6gppBOo2Di/I4d NXbSWMbfcPQLwv54am0us45bCC8qVP/m90n6Fjba817Cd/rOSVZ3VO3bhD5accrLsQXH ms6kjRGRfcjjhmbhdjBk4P/GyLAkPCx9UpSGJzd7TWGl/2OECWhInooepk8UhXVDQnbT RC+wZW7cltOxjCMDlg7b/W75hqxxzIfY+wUBGYdCJEftSp3R/Ow1KCRYVx688g3OjzFN 7+sg== 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=DI6BXqHt39OlLkfb/zjo2/8pN60hX46nMDMN8PBCzGk=; b=TCEWdgRUnjqEiNTfQY8YDOJjwQqnPDvHaVGWysSZ5a6CiTNS47Xn/a0YAqlhak0B/W WqrX6WhC1GMGmvSZRJyoKWs9SyPLa4uGB2oC4A9qR/MBNnOd3aAFNI2t4Qu1/ThDJXNp c2r+1PnhTdQ5XN1tlipBpZerSmN6jQK/3BOxjHt7kKZwJQP3oM7xUHVyfKui5XCh4Jpm nYDudvjjZ3Muf0ntpcSqrhayaPoaeVe4VR8Byh6cDHQdewn+yYf94cYj5rA4QlxQ30jd h+OH+DkLreNqTgM27CIGhUF8jxkCkkwWizygBZ96hM2FEDZOREcShZ2rLjQGLTL X-Gm-Message-State: ACrzQf34qWj+gPYAc9Jl7GebWWCnuqINci5QLUkqSKk80t4W5Q6S6I/V 5a94XCidh1WfBLfSllDZxiM= X-Google-Smtp-Source: AMsMyM4N6bliK//i0y89SMilfrf5zC6MkP7cv2a3gW2wcHRhZHToVgFTn/OSuBbG2hWw7ShOUqrYKA== X-Received: by 2002:a67:b008:0:b0:3ac:dd43:518f with SMTP id z8-20020a67b008000000b003acdd43518fmr16417785vse.23.1667580684884; Fri, 04 Nov 2022 09:51:24 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a67:c20a:0:b0:395:3560:5755 with SMTP id i10-20020a67c20a000000b0039535605755ls1162477vsj.9.-pod-prod-gmail; Fri, 04 Nov 2022 09:51:21 -0700 (PDT) X-Received: by 2002:a67:d293:0:b0:3aa:2885:358d with SMTP id z19-20020a67d293000000b003aa2885358dmr21902350vsi.12.1667580681707; Fri, 04 Nov 2022 09:51:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667580681; cv=none; d=google.com; s=arc-20160816; b=Uaqb2ZwJaBllyc/WRKM2AbaKrkPmFlW9sVZFDEyRKAGVcRe3qdWci6W0HNfhuZLcrn tAIGqSSN+ZA2M8P7kBDShkcB4v3Il82KH0dQeYCgbo/1HukFd5KWsuen9Rxwy+ECq/ZJ EZE7MWCqR35Eu6uvAKgtBoTots/Cbbq3ezbm6ktU+IATgT2BIK+SVLkCz95ICH8mt+L5 AtQOW6QfTBjDsCpw0PqZJC18qaLpcmbdtWBgwY0JvwekjAzYXQZ1XaIsuLhfQ6TBK/NA 6ieZlh9gtd1hu+AYmahV0yoj8f9GXpnatYaxqC9JowRR7iU/sy5gCBzi9msOR05ZajAA 6OnA== 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=LmKKB7plu8vWsvUpoHpU00GMtKReqNQz+cZXr2kgR34=; b=oPjCFKJUxGXoLo1i7TN0n7VqQdV1YcoS9IzwrzrqJvGgUuQPB8ZFPLz2HQzr/HRSJj vxm1WcdzyWDtvG+WgPrJl25xPoJ0KPkLJ0sBIUn2weiLFB1Gsi+WerIx5GRpDp3USYUV DGxgEhud3BiYD6w9YnoWXiKIysqtNh9hFl1bMNtIfywqbHrynGImMX/NY2f+GAEmB44g X/aN5SVGsK1FLgKvYSeX1eH3T6weuAsxs74IhmNrcd47LUQDddYjMAAXQTvgxHuF/pMx 9OENHYGzhKuGrZVQT/lX4Sx9CitwkvcvfKK0NZYRvRVkrRgHmn6uIGmYi0YglBOwJag/ eu9A== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@broadband-forum.org header.s=google header.b="rCKzXK/f"; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::b31 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-xb31.google.com (mail-yb1-xb31.google.com. [2607:f8b0:4864:20::b31]) by gmr-mx.google.com with ESMTPS id t19-20020a1faa13000000b003b803083c23si277737vke.0.2022.11.04.09.51.21 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Nov 2022 09:51:21 -0700 (PDT) Received-SPF: pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::b31 as permitted sender) client-ip=2607:f8b0:4864:20::b31; Original-Received: by mail-yb1-xb31.google.com with SMTP id z192so6532924yba.0 for ; Fri, 04 Nov 2022 09:51:21 -0700 (PDT) X-Received: by 2002:a05:6902:10c3:b0:6ca:e1c1:2525 with SMTP id w3-20020a05690210c300b006cae1c12525mr36072213ybu.247.1667580681114; Fri, 04 Nov 2022 09:51:21 -0700 (PDT) In-Reply-To: <264eeee0-68c8-4389-a5c5-12563c6926f6n-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> 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="rCKzXK/f"; spf=pass (google.com: domain of wlupton-QSt+ys/nuMyEUIsrzH9SikB+6BGkLq7r@public.gmane.org designates 2607:f8b0:4864:20::b31 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:31688 Archived-At: --00000000000021ec8c05eca7e2b1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 level 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 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 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 functionality is not available, but a Feature Request is op= en > [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 that > 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-discuss+unsubscribe-/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-a5c5-= 12563c6926f6n%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_xxhS3ePa-k7boYMGzHnOsaNPCi4%3DnH-N8j7yLP8PAE6RCw%40mail= .gmail.com. --00000000000021ec8c05eca7e2b1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
See=C2=A0https://usp.technology/specification for an example of how the Bro= adband Forum has recently been publishing some specs. This output is genera= ted via an html-multi-writer.lua custom writer that contains the logic for = splitting the output into multiple files (based on header level and/or spec= ific 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 the= n passed through pandoc again (to add the overall sidebar ToC and the top/b= ottom navigation=C2=A0bars, and to generate multiple standalone docs).

Please let me know if you'd like more details=C2= =A0(the overall setup is not very easily shareable, because it's heavil= y dependent on rather=C2=A0complicated make rules, but I could probably sha= re the=C2=A0custom writer and give some example command=C2=A0lines.)
<= /div>
O= n Fri, 4 Nov 2022 at 12:45, Lu=C3=ADs de Sousa <luis.a.de.sousa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Dear all,

= I am currently working on a long document that must served as a web page. T= he 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].=C2=A0

In that issue there are some hints to th= is issue being addressable with a template [1]. I have tried many HTML temp= lates, but never seen one that would split a long document in a set of smal= l files. Would there be an example somewhere I could follow? Otherwise, cou= ld someone provide a general idea of how such template 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-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https= ://groups.google.com/d/msgid/pandoc-discuss/264eeee0-68c8-4389-a5c5-12563c6= 926f6n%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://group= s.google.com/d/msgid/pandoc-discuss/CAEe_xxhS3ePa-k7boYMGzHnOsaNPCi4%3DnH-N= 8j7yLP8PAE6RCw%40mail.gmail.com.
--00000000000021ec8c05eca7e2b1--