diff --git a/documentation/content/en/books/fdp-primer/examples/_index.adoc b/documentation/content/en/books/fdp-primer/examples/_index.adoc --- a/documentation/content/en/books/fdp-primer/examples/_index.adoc +++ b/documentation/content/en/books/fdp-primer/examples/_index.adoc @@ -59,66 +59,8 @@ ==== [.programlisting] .... ---- -title: An Example Book -authors: - - author: The FreeBSD Documentation Project -copyright: 1995-2021 The FreeBSD Documentation Project -releaseinfo: "" -trademarks: ["general"] ---- - -= An Example Book -:doctype: book -:toc: macro -:toclevels: 2 -:icons: font -:xrefstyle: basic -:relfileprefix: ../ -:outfilesuffix: -:sectnums: -:sectnumlevels: 6 -:partnums: -:chapter-signifier: Chapter -:part-signifier: Part -:source-highlighter: rouge -:experimental: -:skip-front-matter: -:book: true -:pdf: false - -ifeval::["{backend}" == "html5"] -:chapters-path: content/en/books/bookname/ -endif::[] - -ifeval::["{backend}" == "pdf"] -:chapters-path: -endif::[] - -ifeval::["{backend}" == "epub3"] -:chapters-path: -endif::[] - -[abstract] -Abstract - -Abstract section - -''' - -toc::[] - -:sectnums!: - -\include::{chapters-path}preface/_index.adoc[leveloffset=+1] - -:sectnums: - -\include::{chapters-path}parti.adoc[lines=7..18] - -\include::{chapters-path}chapter-name/_index.adoc[leveloffset=+1] +include::content/{{% lang %}}/books/fdp-primer/examples/example_book.adoc[] .... - ==== [[examples-asciidoctor-article]] @@ -129,36 +71,7 @@ ==== [.programlisting] .... ---- -title: An Example Article -authors: - - author: Your name and surname - email: foo@example.com -trademarks: ["general"] ---- - -= An Example Article -:doctype: article -:toc: macro -:toclevels: 1 -:icons: font -:sectnums: -:sectnumlevels: 6 -:source-highlighter: rouge -:experimental: - -''' - -toc::[] - -== My First Section - -This is the first section in my article. - -=== My First Sub-Section - -This is the first sub-section in my article. - +include::content/{{% lang %}}/books/fdp-primer/examples/example_article.adoc[] .... ==== diff --git a/documentation/content/en/books/fdp-primer/examples/example_article.adoc b/documentation/content/en/books/fdp-primer/examples/example_article.adoc new file mode 100644 --- /dev/null +++ b/documentation/content/en/books/fdp-primer/examples/example_article.adoc @@ -0,0 +1,31 @@ +--- +authors: + - + author: 'Your name and surname' + email: foo@example.com +title: 'An Example Article' +trademarks: ["general"] +--- + += An Example Article +:doctype: article +:toc: macro +:toclevels: 1 +:icons: font +:sectnums: +:sectnumlevels: 6 +:source-highlighter: rouge +:experimental: + +''' + +toc::[] + +== My First Section + +This is the first section in my article. + +=== My First Sub-Section + +This is the first sub-section in my article. + diff --git a/documentation/content/en/books/fdp-primer/examples/example_book.adoc b/documentation/content/en/books/fdp-primer/examples/example_book.adoc new file mode 100644 --- /dev/null +++ b/documentation/content/en/books/fdp-primer/examples/example_book.adoc @@ -0,0 +1,59 @@ +--- +authors: + - + author: 'The FreeBSD Documentation Project' +copyright: '1995-2021 The FreeBSD Documentation Project' +releaseinfo: +title: 'An Example Book' +trademarks: ["general"] +--- + += An Example Book +:doctype: book +:toc: macro +:toclevels: 2 +:icons: font +:xrefstyle: basic +:relfileprefix: ../ +:outfilesuffix: +:sectnums: +:sectnumlevels: 6 +:partnums: +:chapter-signifier: Chapter +:part-signifier: Part +:source-highlighter: rouge +:experimental: +:skip-front-matter: +:book: true +:pdf: false + +ifeval::["{backend}" == "html5"] +:chapters-path: content/ru/books/bookname/ +endif::[] + +ifeval::["{backend}" == "pdf"] +:chapters-path: +endif::[] + +ifeval::["{backend}" == "epub3"] +:chapters-path: +endif::[] + +[abstract] +Abstract + +Abstract section + +''' + +toc::[] + +:sectnums!: + +\include::{chapters-path}preface/_index.adoc[leveloffset=+1] + +:sectnums: + +\include::{chapters-path}parti.adoc[lines=7..18] + +\include::{chapters-path}chapter-name/_index.adoc[leveloffset=+1]