git: 5a0e43b709 - main - ru/articles/pam: Fix include links for .c files
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 Oct 2021 12:39:21 UTC
The branch main has been updated by blackend:
URL: https://cgit.FreeBSD.org/doc/commit/?id=5a0e43b7092ad14306ced0341e20bee5c0c0e182
commit 5a0e43b7092ad14306ced0341e20bee5c0c0e182
Author: Marc Fonvieille <blackend@FreeBSD.org>
AuthorDate: 2021-10-29 12:20:23 +0000
Commit: Marc Fonvieille <blackend@FreeBSD.org>
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!: