Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Aug 2021 22:03:44 GMT
From:      "Danilo G. Baio" <dbaio@FreeBSD.org>
To:        doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org
Subject:   git: e528e6bcbd - main - pt-br/books/fdp-primer: Add back Table of Contents (ToC)
Message-ID:  <202108142203.17EM3iVs065679@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by dbaio:

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

commit e528e6bcbd7d9a420012f0e194eb493cae01db58
Author:     Danilo G. Baio <dbaio@FreeBSD.org>
AuthorDate: 2021-08-14 21:52:30 +0000
Commit:     Danilo G. Baio <dbaio@FreeBSD.org>
CommitDate: 2021-08-14 21:52:30 +0000

    pt-br/books/fdp-primer: Add back Table of Contents (ToC)
    
    This fixes the line number from all includes, which is not the same as
    the English document.
    
    Basically, in the single-page version of the book, all includes must
    avoid the ToC directive from the chapters.
---
 .../content/pt-br/books/fdp-primer/book.adoc       | 24 +++++++++++-----------
 .../pt-br/books/fdp-primer/examples/_index.adoc    |  2 ++
 .../pt-br/books/fdp-primer/overview/_index.adoc    |  2 ++
 .../books/fdp-primer/po-translations/_index.adoc   |  2 ++
 .../pt-br/books/fdp-primer/rosetta/_index.adoc     |  2 ++
 5 files changed, 20 insertions(+), 12 deletions(-)

diff --git a/documentation/content/pt-br/books/fdp-primer/book.adoc b/documentation/content/pt-br/books/fdp-primer/book.adoc
index 65d9cf5873..3f6dd452b5 100644
--- a/documentation/content/pt-br/books/fdp-primer/book.adoc
+++ b/documentation/content/pt-br/books/fdp-primer/book.adoc
@@ -89,34 +89,34 @@ include::{chapters-path}preface/_index.adoc[leveloffset=+1, lines=9..-1]
 
 :sectnums:
 
-include::{chapters-path}overview/_index.adoc[leveloffset=+1, lines=9..23; 27..-1]
+include::{chapters-path}overview/_index.adoc[leveloffset=+1, lines=9..23; 30..-1]
 
 include::{chapters-path}tools/_index.adoc[leveloffset=+1, lines=9..23; 27..-1]
 
 include::{chapters-path}working-copy/_index.adoc[leveloffset=+1, lines=9..23; 27..-1]
 
-include::{chapters-path}structure/_index.adoc[leveloffset=+1, lines=9..23; 27..-1]
+include::{chapters-path}structure/_index.adoc[leveloffset=+1, lines=9..24; 28..-1]
 
-include::{chapters-path}doc-build/_index.adoc[leveloffset=+1, lines=9..23; 27..-1]
+include::{chapters-path}doc-build/_index.adoc[leveloffset=+1, lines=9..24; 28..-1]
 
-include::{chapters-path}asciidoctor-primer/_index.adoc[leveloffset=+1, lines=9..23; 29..-1]
+include::{chapters-path}asciidoctor-primer/_index.adoc[leveloffset=+1, lines=9..24; 30..-1]
 
-include::{chapters-path}rosetta/_index.adoc[leveloffset=+1, lines=9..23; 27..-1]
+include::{chapters-path}rosetta/_index.adoc[leveloffset=+1, lines=9..25; 29..-1]
 
-include::{chapters-path}translations/_index.adoc[leveloffset=+1, lines=9..23; 30..-1]
+include::{chapters-path}translations/_index.adoc[leveloffset=+1, lines=9..24; 31..-1]
 
-include::{chapters-path}po-translations/_index.adoc[leveloffset=+1, lines=9..23; 29..-1]
+include::{chapters-path}po-translations/_index.adoc[leveloffset=+1, lines=9..26; 32..-1]
 
-include::{chapters-path}manual-pages/_index.adoc[leveloffset=+1, lines=9..23; 27..-1]
+include::{chapters-path}manual-pages/_index.adoc[leveloffset=+1, lines=9..24; 28..-1]
 
-include::{chapters-path}writing-style/_index.adoc[leveloffset=+1, lines=9..23; 29..-1]
+include::{chapters-path}writing-style/_index.adoc[leveloffset=+1, lines=9..24; 30..-1]
 
-include::{chapters-path}editor-config/_index.adoc[leveloffset=+1, lines=9..23; 27..-1]
+include::{chapters-path}editor-config/_index.adoc[leveloffset=+1, lines=9..24; 28..-1]
 
-include::{chapters-path}see-also/_index.adoc[leveloffset=+1, lines=9..23; 29..-1]
+include::{chapters-path}see-also/_index.adoc[leveloffset=+1, lines=9..24; 30..-1]
 
 :sectnums!:
 
-include::{chapters-path}examples/_index.adoc[leveloffset=+1, lines=8..23; 27..-1]
+include::{chapters-path}examples/_index.adoc[leveloffset=+1, lines=8..25; 29..-1]
 
 :sectnums:
diff --git a/documentation/content/pt-br/books/fdp-primer/examples/_index.adoc b/documentation/content/pt-br/books/fdp-primer/examples/_index.adoc
index 5aab87564e..a59004d91a 100644
--- a/documentation/content/pt-br/books/fdp-primer/examples/_index.adoc
+++ b/documentation/content/pt-br/books/fdp-primer/examples/_index.adoc
@@ -24,6 +24,8 @@ title: 'Apêndice A. Exemplos'
 :toc-title: Índice
 :example-caption: Exemplo
 
+toc::[]
+
 Estes exemplos não são extensos - eles não contêm todos os elementos que podem ser desejáveis de usar, particularmente em relação ao início dos documentos (Front Matter).
 Para mais exemplos de marcação AsciiDoctor, examine o código fonte em AsciiDoctor deste e de outros documentos disponíveis no repositório Git `doc` ou no link link:https://cgit.freebsd.org/doc/[https://cgit.freebsd.org/doc/].
 
diff --git a/documentation/content/pt-br/books/fdp-primer/overview/_index.adoc b/documentation/content/pt-br/books/fdp-primer/overview/_index.adoc
index 00e47cfeed..3fcbb18ffc 100644
--- a/documentation/content/pt-br/books/fdp-primer/overview/_index.adoc
+++ b/documentation/content/pt-br/books/fdp-primer/overview/_index.adoc
@@ -25,6 +25,8 @@ title: 'Capítulo 1. Visão Geral'
 include::shared/releases.adoc[]
 include::shared/pt-br/mailing-lists.adoc[]
 
+toc::[]
+
 Seja bem vindo ao Projeto de Documentação do FreeBSD.(FDP). Documentação de boa qualidade é muito importante para o sucesso do FreeBSD, e nós valorizamos muito suas contribuições.
 
 Este documento descreve como o FDP é organizado, como escrever e como submeter documentos, e como utilizar de forma efetiva as ferramentas que estão disponíveis.
diff --git a/documentation/content/pt-br/books/fdp-primer/po-translations/_index.adoc b/documentation/content/pt-br/books/fdp-primer/po-translations/_index.adoc
index 277a632d2c..cfa2717ac2 100644
--- a/documentation/content/pt-br/books/fdp-primer/po-translations/_index.adoc
+++ b/documentation/content/pt-br/books/fdp-primer/po-translations/_index.adoc
@@ -27,6 +27,8 @@ title: 'Capítulo 9. Traduções PO'
 
 include::shared/pt-br/urls.adoc[]
 
+toc::[]
+
 [[po-translations-introduction]]
 == Introdução
 
diff --git a/documentation/content/pt-br/books/fdp-primer/rosetta/_index.adoc b/documentation/content/pt-br/books/fdp-primer/rosetta/_index.adoc
index 7ff7189939..2ea81b0e3f 100644
--- a/documentation/content/pt-br/books/fdp-primer/rosetta/_index.adoc
+++ b/documentation/content/pt-br/books/fdp-primer/rosetta/_index.adoc
@@ -24,6 +24,8 @@ title: 'Capítulo 7. Rosetta Stone'
 :toc-title: Índice
 :table-caption: Tabela
 
+toc::[]
+
 [[docbook-vs-asciidoc]]
 == Comparação entre Docbook e AsciiDoc
 



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