From owner-dev-commits-doc-all@freebsd.org Sun Jul 11 20:16:25 2021 Return-Path: Delivered-To: dev-commits-doc-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8D11366E3C1 for ; Sun, 11 Jul 2021 20:16:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GNJ7s3TK9z3G95; Sun, 11 Jul 2021 20:16:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 5DB1C217F7; Sun, 11 Jul 2021 20:16:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 16BKGPWU046123; Sun, 11 Jul 2021 20:16:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 16BKGPNY046122; Sun, 11 Jul 2021 20:16:25 GMT (envelope-from git) Date: Sun, 11 Jul 2021 20:16:25 GMT Message-Id: <202107112016.16BKGPNY046122@gitrepo.freebsd.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org From: "Danilo G. Baio" Subject: git: bd3bd0e60c - main - doc: Add links for Split and Single HTML pages MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dbaio X-Git-Repository: doc X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: bd3bd0e60cc0258d822b66cb5ebc3a758d3b58e8 Auto-Submitted: auto-generated X-BeenThere: dev-commits-doc-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the doc repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Jul 2021 20:16:25 -0000 The branch main has been updated by dbaio: URL: https://cgit.FreeBSD.org/doc/commit/?id=bd3bd0e60cc0258d822b66cb5ebc3a758d3b58e8 commit bd3bd0e60cc0258d822b66cb5ebc3a758d3b58e8 Author: Danilo G. Baio AuthorDate: 2021-07-11 19:14:59 +0000 Commit: Danilo G. Baio CommitDate: 2021-07-11 20:07:38 +0000 doc: Add links for Split and Single HTML pages [ Split HTML / Single HTML ] We have this only for the biggest books. They have this option of single or split pages, but currently, it's shown for users just the split pages without the link to the single HTML. This is an option we had before. Reviewed by: carlavilla Differential Revision: https://reviews.freebsd.org/D31147 --- documentation/content/en/books/arch-handbook/_index.adoc | 1 + documentation/content/en/books/arch-handbook/book.adoc | 1 + documentation/content/en/books/developers-handbook/_index.adoc | 1 + documentation/content/en/books/developers-handbook/book.adoc | 1 + documentation/content/en/books/fdp-primer/_index.adoc | 1 + documentation/content/en/books/fdp-primer/book.adoc | 1 + documentation/content/en/books/handbook/_index.adoc | 1 + documentation/content/en/books/handbook/book.adoc | 1 + documentation/content/en/books/porters-handbook/_index.adoc | 1 + documentation/content/en/books/porters-handbook/book.adoc | 1 + documentation/themes/beastie/layouts/books/list.html | 10 ++++++++++ documentation/themes/beastie/layouts/books/single.html | 10 ++++++++++ 12 files changed, 30 insertions(+) diff --git a/documentation/content/en/books/arch-handbook/_index.adoc b/documentation/content/en/books/arch-handbook/_index.adoc index e8bf6ce45f..5c9e8730de 100644 --- a/documentation/content/en/books/arch-handbook/_index.adoc +++ b/documentation/content/en/books/arch-handbook/_index.adoc @@ -7,6 +7,7 @@ description: For FreeBSD system developers. This book covers the architectural d tags: ["Arch Handbook", "FreeBSD", "Index"] next: books/arch-handbook/parti weight: 50 +add_single_page_link: true --- = FreeBSD Architecture Handbook diff --git a/documentation/content/en/books/arch-handbook/book.adoc b/documentation/content/en/books/arch-handbook/book.adoc index 338c62bd4a..04fcaf9f71 100644 --- a/documentation/content/en/books/arch-handbook/book.adoc +++ b/documentation/content/en/books/arch-handbook/book.adoc @@ -6,6 +6,7 @@ copyright: Copyright © 2000-2006, 2012-2013 The FreeBSD Documentation Project description: FreeBSD Architecture Handbook trademarks: ["freebsd", "apple", "microsoft", "unix", "general"] tags: ["Arch Handbook", "FreeBSD"] +add_split_page_link: true --- = FreeBSD Architecture Handbook diff --git a/documentation/content/en/books/developers-handbook/_index.adoc b/documentation/content/en/books/developers-handbook/_index.adoc index 43db14ab19..0e84ae38f4 100644 --- a/documentation/content/en/books/developers-handbook/_index.adoc +++ b/documentation/content/en/books/developers-handbook/_index.adoc @@ -8,6 +8,7 @@ trademarks: ["freebsd", "apple", "ibm", "ieee", "intel", "linux", "microsoft", " next: books/developers-handbook/parti weight: 25 tags: ["FreeBSD Developers' Handbook"] +add_single_page_link: true --- = FreeBSD Developers' Handbook diff --git a/documentation/content/en/books/developers-handbook/book.adoc b/documentation/content/en/books/developers-handbook/book.adoc index f874755ccd..4eced64bb6 100644 --- a/documentation/content/en/books/developers-handbook/book.adoc +++ b/documentation/content/en/books/developers-handbook/book.adoc @@ -6,6 +6,7 @@ copyright: 1995-2021 The FreeBSD Documentation Project description: FreeBSD Developers' Handbook trademarks: ["freebsd", "apple", "ibm", "ieee", "intel", "linux", "microsoft", "opengroup", "sun", "general"] tags: ["FreeBSD Developers' Handbook", "Index"] +add_split_page_link: true --- = FreeBSD Developers' Handbook diff --git a/documentation/content/en/books/fdp-primer/_index.adoc b/documentation/content/en/books/fdp-primer/_index.adoc index 6b3ac39953..4807dad36a 100644 --- a/documentation/content/en/books/fdp-primer/_index.adoc +++ b/documentation/content/en/books/fdp-primer/_index.adoc @@ -8,6 +8,7 @@ description: Everything you need to know in order to start contributing to the F next: books/fdp-primer/preface weight: 10 tags: ["FDP", "documentation", "FreeBSD", "Index"] +add_single_page_link: true --- = FreeBSD Documentation Project Primer for New Contributors diff --git a/documentation/content/en/books/fdp-primer/book.adoc b/documentation/content/en/books/fdp-primer/book.adoc index 4e0466a240..fc47b2ed53 100644 --- a/documentation/content/en/books/fdp-primer/book.adoc +++ b/documentation/content/en/books/fdp-primer/book.adoc @@ -6,6 +6,7 @@ copyright: 1998-2021 DocEng description: FreeBSD Documentation Project Primer for New Contributors Index trademarks: ["general"] tags: ["FDP", "documentation", "FreeBSD", "Index"] +add_split_page_link: true --- = FreeBSD Documentation Project Primer for New Contributors diff --git a/documentation/content/en/books/handbook/_index.adoc b/documentation/content/en/books/handbook/_index.adoc index af69a1236e..aff7230788 100644 --- a/documentation/content/en/books/handbook/_index.adoc +++ b/documentation/content/en/books/handbook/_index.adoc @@ -8,6 +8,7 @@ trademarks: ["freebsd", "ibm", "ieee", "redhat", "3com", "adobe", "apple", "inte tags: ["FreeBSD Handbook", "Handbook", "Index"] next: books/handbook/preface weight: 1 +add_single_page_link: true --- = FreeBSD Handbook diff --git a/documentation/content/en/books/handbook/book.adoc b/documentation/content/en/books/handbook/book.adoc index 7d80d890e7..776e1d5b8e 100644 --- a/documentation/content/en/books/handbook/book.adoc +++ b/documentation/content/en/books/handbook/book.adoc @@ -6,6 +6,7 @@ copyright: 1995-2021 The FreeBSD Documentation Project description: FreeBSD Handbook trademarks: ["freebsd", "ibm", "ieee", "redhat", "3com", "adobe", "apple", "intel", "linux", "microsoft", "opengroup", "sun", "realnetworks", "oracle", "3ware", "arm", "adaptec", "google", "heidelberger", "intuit", "lsilogic", "themathworks", "thomson", "vmware", "wolframresearch", "xiph", "xfree86", "general"] tags: ["FreeBSD Handbook", "Handbook"] +add_split_page_link: true --- = FreeBSD Handbook diff --git a/documentation/content/en/books/porters-handbook/_index.adoc b/documentation/content/en/books/porters-handbook/_index.adoc index 00723abfb2..717a42203a 100644 --- a/documentation/content/en/books/porters-handbook/_index.adoc +++ b/documentation/content/en/books/porters-handbook/_index.adoc @@ -8,6 +8,7 @@ trademarks: ["freebsd", "sun", "unix", "general"] next: books/porters-handbook/porting-why weight: 15 tags: ["FreeBSD Porter's Handbook", "Porting", "FreeBSD Ports Collection"] +add_single_page_link: true --- = FreeBSD Porter's Handbook diff --git a/documentation/content/en/books/porters-handbook/book.adoc b/documentation/content/en/books/porters-handbook/book.adoc index 6466a433dc..9bde665213 100644 --- a/documentation/content/en/books/porters-handbook/book.adoc +++ b/documentation/content/en/books/porters-handbook/book.adoc @@ -6,6 +6,7 @@ copyright: 2000-2021 The FreeBSD Documentation Project description: FreeBSD Porter's Handbook trademarks: ["freebsd", "sun", "unix", "general"] tags: ["FreeBSD Porter's Handbook", "Porting", "FreeBSD Ports Collection", "Index"] +add_split_page_link: true --- = FreeBSD Porter's Handbook diff --git a/documentation/themes/beastie/layouts/books/list.html b/documentation/themes/beastie/layouts/books/list.html index 4135d93c79..e264c4b728 100644 --- a/documentation/themes/beastie/layouts/books/list.html +++ b/documentation/themes/beastie/layouts/books/list.html @@ -82,6 +82,16 @@ {{ i18n "last-modified" }} {{ index $releaseInfo 3 }} {{ $hour }} {{ i18n "by" }} {{ index $releaseInfo 5 }}. {{ end }} +{{ if .Params.add_split_page_link }} +
+ [ Split HTML / Single HTML ] +
+{{ end }} +{{ if .Params.add_single_page_link }} +
+ [ Split HTML / Single HTML ] +
+{{ end }} {{ .Content }}
+{{ if .Params.add_split_page_link }} +
+ [ Split HTML / Single HTML ] +
+{{ end }} +{{ if .Params.add_single_page_link }} +
+ [ Split HTML / Single HTML ] +
+{{ end }} {{ .Content }}