git: ada565b6d3 - main - Refactor version list in user handbook intro

From: Sergio Carlavilla Delgado <carlavilla_at_FreeBSD.org>
Date: Sat, 23 Apr 2022 08:18:40 UTC
The branch main has been updated by carlavilla:

URL: https://cgit.FreeBSD.org/doc/commit/?id=ada565b6d3166a95ec111c2f63f035060080600c

commit ada565b6d3166a95ec111c2f63f035060080600c
Author:     Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
AuthorDate: 2022-04-23 08:15:29 +0000
Commit:     Sergio Carlavilla Delgado <carlavilla@FreeBSD.org>
CommitDate: 2022-04-23 08:18:28 +0000

    Refactor version list in user handbook intro
    
    PR:                             260007
    Submitted by:                   Pau Amma (pauamma_gundo.com)
    Reviewed by:                    Pau Amma (pauamma_gundo.com)
    Approved by:                    debdrup@
    Differential Revision:          https://reviews.freebsd.org/D34946
---
 documentation/content/en/books/handbook/_index.adoc      | 16 ++++------------
 documentation/content/en/books/handbook/book.adoc        | 13 +------------
 .../content/en/books/handbook/introduction.adoc          | 12 ++++++++++++
 3 files changed, 17 insertions(+), 24 deletions(-)

diff --git a/documentation/content/en/books/handbook/_index.adoc b/documentation/content/en/books/handbook/_index.adoc
index e830b0f89d..62bedd2940 100644
--- a/documentation/content/en/books/handbook/_index.adoc
+++ b/documentation/content/en/books/handbook/_index.adoc
@@ -35,27 +35,19 @@ include::shared/attributes/attributes-{{% lang %}}.adoc[]
 include::shared/{{% lang %}}/teams.adoc[]
 include::shared/{{% lang %}}/mailing-lists.adoc[]
 include::shared/{{% lang %}}/urls.adoc[]
+:chapters-path: content/{{% lang %}}/books/handbook/
 endif::[]
 ifdef::backend-pdf,backend-epub3[]
+:chapters-path:
 include::../../../../../shared/asciidoctor.adoc[]
 endif::[]
 endif::[]
 
 ifndef::env-beastie[]
+:chapters-path:
 include::../../../../../shared/asciidoctor.adoc[]
 endif::[]
 
-[.abstract-title]
-Abstract
-
-Welcome to FreeBSD! This handbook covers the installation and day to day use of _FreeBSD {rel130-current}-RELEASE_ and _FreeBSD {rel123-current}-RELEASE_.
-This book is the result of ongoing work by many individuals.
-Some sections might be outdated.
-Those interested in helping to update and expand this document should send email to the {freebsd-doc}.
-
-The latest version of this book is available from the https://www.FreeBSD.org/[FreeBSD web site].
-Previous versions can be obtained from https://docs.FreeBSD.org/doc/[https://docs.FreeBSD.org/doc/].
-The book can be downloaded in a variety of formats and compression options from the https://download.freebsd.org/doc/[FreeBSD download server] or one of the numerous link:./mirrors#mirrors[mirror sites].
-Searches can be performed on the handbook and other documents on the link:https://www.FreeBSD.org/search/[search page].
+include::{chapters-path}introduction.adoc[]
 
 '''
diff --git a/documentation/content/en/books/handbook/book.adoc b/documentation/content/en/books/handbook/book.adoc
index 38661471a6..a6969dc62f 100644
--- a/documentation/content/en/books/handbook/book.adoc
+++ b/documentation/content/en/books/handbook/book.adoc
@@ -45,18 +45,7 @@ ifndef::env-beastie[]
 include::../../../../../shared/asciidoctor.adoc[]
 endif::[]
 
-[.abstract-title]
-Abstract
-
-Welcome to FreeBSD! This handbook covers the installation and day to day use of _FreeBSD {rel130-current}-RELEASE_ and _FreeBSD {rel123-current}-RELEASE_.
-This book is the result of ongoing work by many individuals.
-Some sections might be outdated.
-Those interested in helping to update and expand this document should send email to the {freebsd-doc}.
-
-The latest version of this book is available from the https://www.FreeBSD.org/[FreeBSD web site].
-Previous versions can be obtained from https://docs.FreeBSD.org/doc/[https://docs.FreeBSD.org/doc/].
-The book can be downloaded in a variety of formats and compression options from the https://download.freebsd.org/doc/[FreeBSD download server] or one of the numerous crossref:mirrors[mirrors,mirror sites].
-Searches can be performed on the handbook and other documents on the link:https://www.FreeBSD.org/search/[search page].
+include::{chapters-path}introduction.adoc[]
 
 '''
 
diff --git a/documentation/content/en/books/handbook/introduction.adoc b/documentation/content/en/books/handbook/introduction.adoc
new file mode 100644
index 0000000000..76cd7fd054
--- /dev/null
+++ b/documentation/content/en/books/handbook/introduction.adoc
@@ -0,0 +1,12 @@
+[.abstract-title]
+Abstract
+
+Welcome to FreeBSD! This handbook covers the installation and day to day use of _FreeBSD {rel130-current}-RELEASE_ and _FreeBSD {rel123-current}-RELEASE_.
+This book is the result of ongoing work by many individuals.
+Some sections might be outdated.
+Those interested in helping to update and expand this document should send email to the {freebsd-doc}.
+
+The latest version of this book is available from the https://www.FreeBSD.org/[FreeBSD web site].
+Previous versions can be obtained from https://docs.FreeBSD.org/doc/[https://docs.FreeBSD.org/doc/].
+The book can be downloaded in a variety of formats and compression options from the https://download.freebsd.org/doc/[FreeBSD download server] or one of the numerous link:./mirrors#mirrors[mirror sites].
+Searches can be performed on the handbook and other documents on the link:https://www.FreeBSD.org/search/[search page].