Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153829817
D52678.id162577.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
4 KB
Referenced Files
None
Subscribers
None
D52678.id162577.diff
View Options
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]
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 25, 2:13 AM (15 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32104908
Default Alt Text
D52678.id162577.diff (4 KB)
Attached To
Mode
D52678: fix inlined asciidoc code in en/books/fdp-primer/examples
Attached
Detach File
Event Timeline
Log In to Comment