git: 5a0e43b709 - main - ru/articles/pam: Fix include links for .c files

Marc Fonvieille <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by blackend:

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

commit 5a0e43b7092ad14306ced0341e20bee5c0c0e182
Author:     Marc Fonvieille <[email protected]>
AuthorDate: 2021-10-29 12:20:23 +0000
Commit:     Marc Fonvieille <[email protected]>
CommitDate: 2021-10-29 12:20:23 +0000

    ru/articles/pam: Fix include links for .c files
---
 documentation/content/ru/articles/pam/_index.adoc | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/documentation/content/ru/articles/pam/_index.adoc b/documentation/content/ru/articles/pam/_index.adoc
index a99b44630a..5faf16ed03 100644
--- a/documentation/content/ru/articles/pam/_index.adoc
+++ b/documentation/content/ru/articles/pam/_index.adoc
@@ -57,6 +57,18 @@ SUCH DAMAGE.
 :figure-caption: Рисунок
 :example-caption: Пример
 
+ifeval::["{backend}" == "html5"]
+:sourcesdir: static/source/articles/pam
+endif::[]
+
+ifeval::["{backend}" == "pdf"]
+:sourcesdir: ../../../../static/source/articles/pam
+endif::[]
+
+ifeval::["{backend}" == "epub3"]
+:sourcesdir: ../../../../static/source/articles/pam
+endif::[]
+
 [.abstract-title]
 Abstract
 
@@ -549,7 +561,7 @@ auth    required        pam_nologin.so  no_warn
 
 [.programlisting]
 ....
-include::static/source/articles/pam/su.c[]
+include::{sourcesdir}/su.c[]
 ....
 
 :sectnums!:
@@ -562,7 +574,7 @@ include::static/source/articles/pam/su.c[]
 
 [.programlisting]
 ....
-include::static/source/articles/pam/pam_unix.c[]
+include::{sourcesdir}/pam_unix.c[]
 ....
 
 :sectnums!:
@@ -575,7 +587,7 @@ include::static/source/articles/pam/pam_unix.c[]
 
 [.programlisting]
 ....
-include::static/source/articles/pam/converse.c[]
+include::{sourcesdir}/converse.c[]
 ....
 
 :sectnums!:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.