Discussion:
git: 8d25cf749a - main - books/fdp-primer: Fix table of contents in PDF build
Ceri Davies
2021-05-21 16:58:48 UTC
Permalink
The branch main has been updated by ceri:

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

commit 8d25cf749a208fbb584737c19589cd04cbdde3ab
Author: Ceri Davies <***@FreeBSD.org>
AuthorDate: 2021-05-21 16:54:22 +0000
Commit: Ceri Davies <***@FreeBSD.org>
CommitDate: 2021-05-21 16:54:22 +0000

books/fdp-primer: Fix table of contents in PDF build

A PDF build fails to find the correct include files for the table of
contents and, for reasons not well understood, installs a duplicate
table of contents on top of the text in the Overview chapter.
Fix that.

Approved by: blackend (mentor)
---
documentation/content/en/books/fdp-primer/book.adoc | 6 +++---
documentation/content/en/books/fdp-primer/overview/_index.adoc | 2 --
2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/documentation/content/en/books/fdp-primer/book.adoc b/documentation/content/en/books/fdp-primer/book.adoc
index 63157028a6..4e0466a240 100644
--- a/documentation/content/en/books/fdp-primer/book.adoc
+++ b/documentation/content/en/books/fdp-primer/book.adoc
@@ -71,11 +71,11 @@ This is a work in progress. Corrections and additions are always welcome.

toc::[]

-include::content/en/books/fdp-primer/toc-figures.adoc[]
+include::{chapters-path}toc-figures.adoc[]

-include::content/en/books/fdp-primer/toc-tables.adoc[]
+include::{chapters-path}toc-tables.adoc[]

-include::content/en/books/fdp-primer/toc-examples.adoc[]
+include::{chapters-path}toc-examples.adoc[]

:sectnums!:

diff --git a/documentation/content/en/books/fdp-primer/overview/_index.adoc b/documentation/content/en/books/fdp-primer/overview/_index.adoc
index 77623625fb..10551ad3a2 100644
--- a/documentation/content/en/books/fdp-primer/overview/_index.adoc
+++ b/documentation/content/en/books/fdp-primer/overview/_index.adoc
@@ -25,8 +25,6 @@ tags: ["overview", "FreeBSD Documentation Project", "quick start"]
include::shared/releases.adoc[]
include::shared/en/mailing-lists.adoc[]

-toc::[]
-
Welcome to the FreeBSD Documentation Project (FDP).
Quality documentation is crucial to the success of FreeBSD, and we value your contributions very highly.
Loading...