Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 May 2021 16:58:48 GMT
From:      Ceri Davies <ceri@FreeBSD.org>
To:        doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org
Subject:   git: 8d25cf749a - main - books/fdp-primer: Fix table of contents in PDF build
Message-ID:  <202105211658.14LGwmLl071053@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by ceri:

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

commit 8d25cf749a208fbb584737c19589cd04cbdde3ab
Author:     Ceri Davies <ceri@FreeBSD.org>
AuthorDate: 2021-05-21 16:54:22 +0000
Commit:     Ceri Davies <ceri@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.
 


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105211658.14LGwmLl071053>