Page MenuHomeFreeBSD

fix inlined asciidoc code in en/books/fdp-primer/examples
AbandonedPublic

Authored by vladlen on Sep 22 2025, 5:01 PM.
Tags
Referenced Files
Unknown Object (File)
Thu, Nov 20, 3:56 PM
Unknown Object (File)
Thu, Nov 13, 6:23 PM
Unknown Object (File)
Mon, Nov 3, 10:06 PM
Unknown Object (File)
Tue, Oct 28, 7:30 PM
Unknown Object (File)
Mon, Oct 27, 3:59 PM
Unknown Object (File)
Sat, Oct 25, 6:32 AM
Unknown Object (File)
Oct 21 2025, 12:03 AM
Unknown Object (File)
Oct 18 2025, 8:51 PM
Subscribers
None

Details

Reviewers
maxim
Group Reviewers
Doc Committers
Summary

I proposed simpler and from my point of view better solution in https://reviews.freebsd.org/D52774

FDP-primer has examples page, containing AsciiDoc example of code inside of AsciiDoc. It is always the challenge to represent AsciiDoc from AsciiDoc.
Currently example page rendered correctly in English, but PO file for translations is generated with destroyed AsciiDoc text (I did not find any way to fix it by options). Final translated version of books/fdp-primer/examples require manual correction or copy from English version.

I propose to use trick with include directive: put all examples code into separate files and include them inside of code block. It works.

Translators do not need any manual changes in this case, also they have option correctly translate examples in separate files.

Manual work documented in Wiki (https://wiki.freebsd.org/Doc/Translation/Weblate/Documents in section Books sentence about examples.adoc), but it is not described in FDP-primer now. This patch excludes this manual work.

Diff Detail

Repository
R9 FreeBSD doc repository
Lint
Lint Skipped
Unit
Tests Skipped