[defensive-coding-guide] branch master updated: Remove master-docinfo
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
pbokoc pushed a commit to branch master
in repository defensive-coding-guide.
The following commit(s) were added to refs/heads/master by this push:
new 0c15018 Remove master-docinfo
0c15018 is described below
commit 0c15018e17e76242a41d60b4b57be72de6db84e9
Author: Petr Bokoc <pbokoc(a)redhat.com>
AuthorDate: Thu Jan 13 23:31:06 2022 +0100
Remove master-docinfo
---
modules/ROOT/pages/master-docinfo.xml | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/modules/ROOT/pages/master-docinfo.xml b/modules/ROOT/pages/master-docinfo.xml
deleted file mode 100644
index 39bc8f8..0000000
--- a/modules/ROOT/pages/master-docinfo.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<abstract>
- <para>
- This document provides guidelines for improving software
- security through secure coding. It covers common
- programming languages and libraries, and focuses on
- concrete recommendations.
- </para>
- </abstract>
-<edition>1</edition>
-<productname>Fedora Security Team</productname>
-<productnumber></productnumber>
-<pubsnumber>1</pubsnumber>
-<subtitle>A Guide to Improving Software Security</subtitle>
\ No newline at end of file
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
2 years, 2 months
[defensive-coding-guide] 04/06: Fix publication year
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
pbokoc pushed a commit to branch master
in repository defensive-coding-guide.
commit f531cc17b88730c3cd3a2e799ac4cc809b9bab63
Author: Petr Bokoc <pbokoc(a)redhat.com>
AuthorDate: Thu Jan 13 20:43:09 2022 +0100
Fix publication year
---
modules/ROOT/partials/entities.adoc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/ROOT/partials/entities.adoc b/modules/ROOT/partials/entities.adoc
index 44e5e03..d03f3ed 100644
--- a/modules/ROOT/partials/entities.adoc
+++ b/modules/ROOT/partials/entities.adoc
@@ -1,6 +1,6 @@
:HOLDER: Red Hat, Inc
-:YEAR: 2012-2021
+:YEAR: 2012-2022
-:nbsp:
+:nbsp:
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
2 years, 2 months
[defensive-coding-guide] 03/06: Update structure for partials and
examples
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
pbokoc pushed a commit to branch master
in repository defensive-coding-guide.
commit 531ddf0721c4320b28d88a06f5b48cdfacd281b6
Author: Petr Bokoc <pbokoc(a)redhat.com>
AuthorDate: Thu Jan 13 20:42:40 2022 +0100
Update structure for partials and examples
---
.../snippets => examples}/C-Arithmetic-add.adoc | 0
.../C-Arithmetic-add_unsigned.adoc | 0
.../snippets => examples}/C-Arithmetic-mult.adoc | 0
.../C-Globals-String_Array.adoc | 0
.../C-Pointers-remaining.adoc | 0
.../C-String-Functions-format.adoc | 0
.../C-String-Functions-snprintf-incremental.adoc | 0
.../C-String-Functions-snprintf.adoc | 0
.../C-String-Functions-strncat-as-strncpy.adoc | 0
.../C-String-Functions-strncat-emulation.adoc | 0
.../C-String-Functions-strncat-merged.adoc | 0
.../C-String-Functions-strncpy.adoc | 0
.../Features-HSM-GNUTLS-PIN.adoc | 0
.../snippets => examples}/Features-HSM-GNUTLS.adoc | 0
.../Features-HSM-NSS-PIN.adoc | 0
.../snippets => examples}/Features-HSM-NSS.adoc | 0
.../Features-HSM-OpenSSL.adoc | 0
.../Features-TLS-Client-GNUTLS-Connect.adoc | 0
.../Features-TLS-Client-GNUTLS-Credentials.adoc | 0
.../Features-TLS-Client-GNUTLS-Verify.adoc | 0
.../Features-TLS-Client-NSS-Close.adoc | 0
.../Features-TLS-Client-NSS-Connect.adoc | 0
.../Features-TLS-Client-OpenJDK-Connect.adoc | 0
.../Features-TLS-Client-OpenJDK-Context.adoc | 0
...atures-TLS-Client-OpenJDK-Context_For_Cert.adoc | 0
.../Features-TLS-Client-OpenJDK-Hostname.adoc | 0
.../Features-TLS-Client-OpenJDK-Import.adoc | 0
...Features-TLS-Client-OpenJDK-MyTrustManager.adoc | 0
.../Features-TLS-Client-OpenJDK-Use.adoc | 0
.../Features-TLS-Client-OpenSSL-CTX.adoc | 0
.../Features-TLS-Client-OpenSSL-Connect.adoc | 0
...Features-TLS-Client-OpenSSL-Connection-Use.adoc | 0
.../Features-TLS-Client-OpenSSL-Init.adoc | 0
.../Features-TLS-Client-Python-Connect.adoc | 0
...Features-TLS-Client-Python-check_host_name.adoc | 0
.../Features-TLS-GNUTLS-Credentials-Close.adoc | 0
.../Features-TLS-GNUTLS-Disconnect.adoc | 0
.../Features-TLS-GNUTLS-Init.adoc | 0
.../Features-TLS-GNUTLS-Use.adoc | 0
.../Features-TLS-NSS-Close.adoc | 0
.../Features-TLS-NSS-Includes.adoc | 0
.../Features-TLS-NSS-Init.adoc | 0
.../Features-TLS-NSS-Use.adoc | 0
.../snippets => examples}/Features-TLS-Nagle.adoc | 0
.../Features-TLS-OpenJDK-Parameters.adoc | 0
.../Features-TLS-OpenSSL-Connection-Close.adoc | 0
.../Features-TLS-OpenSSL-Context-Close.adoc | 0
.../Features-TLS-OpenSSL-Errors.adoc | 0
.../Features-TLS-Python-Close.adoc | 0
.../Features-TLS-Python-Use.adoc | 0
.../Go-Error_Handling-IO.adoc | 0
.../Go-Error_Handling-Regular.adoc | 0
.../snippets => examples}/Java-Finally.adoc | 0
.../snippets => examples}/Java-JNI-Pointers.adoc | 0
.../Java-Language-ReadArray.adoc | 0
.../Java-SecurityManager-Callback.adoc | 0
.../Java-SecurityManager-CurrentDirectory.adoc | 0
.../Java-SecurityManager-Privileged.adoc | 0
.../Java-SecurityManager-Unprivileged.adoc | 0
.../Java-TryWithResource.adoc | 0
.../Shell-Input_Validation.adoc | 0
.../Tasks-Serialization-XML-Expat-Create.adoc | 0
...-Serialization-XML-Expat-EntityDeclHandler.adoc | 0
.../Tasks-Serialization-XML-OpenJDK-Errors.adoc | 0
.../Tasks-Serialization-XML-OpenJDK-Imports.adoc | 0
...Serialization-XML-OpenJDK-NoEntityResolver.adoc | 0
...rialization-XML-OpenJDK-NoResourceResolver.adoc | 0
.../Tasks-Serialization-XML-OpenJDK_Parse-DOM.adoc | 0
...ialization-XML-OpenJDK_Parse-XMLSchema_DOM.adoc | 0
...ialization-XML-OpenJDK_Parse-XMLSchema_SAX.adoc | 0
...Tasks-Serialization-XML-Qt-NoEntityHandler.adoc | 0
.../Tasks-Serialization-XML-Qt-NoEntityReader.adoc | 0
.../Tasks-Serialization-XML-Qt-QDomDocument.adoc | 0
modules/ROOT/pages/features/Features-HSM.adoc | 10 ++--
modules/ROOT/pages/features/Features-TLS.adoc | 66 +++++++++++-----------
modules/ROOT/pages/index.adoc | 6 +-
.../pages/programming-languages/C-Language.adoc | 10 ++--
.../ROOT/pages/programming-languages/C-Libc.adoc | 16 +++---
modules/ROOT/pages/programming-languages/Go.adoc | 4 +-
.../pages/programming-languages/Java-Language.adoc | 6 +-
.../pages/programming-languages/Java-LowLevel.adoc | 2 +-
.../Java-SecurityManager.adoc | 8 +--
.../ROOT/pages/programming-languages/Shell.adoc | 4 +-
modules/ROOT/pages/tasks/Tasks-File_System.adoc | 2 +-
modules/ROOT/pages/tasks/Tasks-Processes.adoc | 2 +-
modules/ROOT/pages/tasks/Tasks-Serialization.adoc | 22 ++++----
.../_partials => partials}/Author_Group.adoc | 0
.../_partials => partials}/Legal_Notice.adoc | 0
.../{pages/_partials => partials}/entities.adoc | 0
89 files changed, 79 insertions(+), 79 deletions(-)
diff --git a/modules/ROOT/pages/_partials/snippets/C-Arithmetic-add.adoc b/modules/ROOT/examples/C-Arithmetic-add.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-Arithmetic-add.adoc
rename to modules/ROOT/examples/C-Arithmetic-add.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-Arithmetic-add_unsigned.adoc b/modules/ROOT/examples/C-Arithmetic-add_unsigned.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-Arithmetic-add_unsigned.adoc
rename to modules/ROOT/examples/C-Arithmetic-add_unsigned.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-Arithmetic-mult.adoc b/modules/ROOT/examples/C-Arithmetic-mult.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-Arithmetic-mult.adoc
rename to modules/ROOT/examples/C-Arithmetic-mult.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-Globals-String_Array.adoc b/modules/ROOT/examples/C-Globals-String_Array.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-Globals-String_Array.adoc
rename to modules/ROOT/examples/C-Globals-String_Array.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-Pointers-remaining.adoc b/modules/ROOT/examples/C-Pointers-remaining.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-Pointers-remaining.adoc
rename to modules/ROOT/examples/C-Pointers-remaining.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-String-Functions-format.adoc b/modules/ROOT/examples/C-String-Functions-format.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-String-Functions-format.adoc
rename to modules/ROOT/examples/C-String-Functions-format.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-String-Functions-snprintf-incremental.adoc b/modules/ROOT/examples/C-String-Functions-snprintf-incremental.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-String-Functions-snprintf-incremental.adoc
rename to modules/ROOT/examples/C-String-Functions-snprintf-incremental.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-String-Functions-snprintf.adoc b/modules/ROOT/examples/C-String-Functions-snprintf.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-String-Functions-snprintf.adoc
rename to modules/ROOT/examples/C-String-Functions-snprintf.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-String-Functions-strncat-as-strncpy.adoc b/modules/ROOT/examples/C-String-Functions-strncat-as-strncpy.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-String-Functions-strncat-as-strncpy.adoc
rename to modules/ROOT/examples/C-String-Functions-strncat-as-strncpy.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-String-Functions-strncat-emulation.adoc b/modules/ROOT/examples/C-String-Functions-strncat-emulation.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-String-Functions-strncat-emulation.adoc
rename to modules/ROOT/examples/C-String-Functions-strncat-emulation.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-String-Functions-strncat-merged.adoc b/modules/ROOT/examples/C-String-Functions-strncat-merged.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-String-Functions-strncat-merged.adoc
rename to modules/ROOT/examples/C-String-Functions-strncat-merged.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/C-String-Functions-strncpy.adoc b/modules/ROOT/examples/C-String-Functions-strncpy.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/C-String-Functions-strncpy.adoc
rename to modules/ROOT/examples/C-String-Functions-strncpy.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-HSM-GNUTLS-PIN.adoc b/modules/ROOT/examples/Features-HSM-GNUTLS-PIN.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-HSM-GNUTLS-PIN.adoc
rename to modules/ROOT/examples/Features-HSM-GNUTLS-PIN.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-HSM-GNUTLS.adoc b/modules/ROOT/examples/Features-HSM-GNUTLS.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-HSM-GNUTLS.adoc
rename to modules/ROOT/examples/Features-HSM-GNUTLS.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-HSM-NSS-PIN.adoc b/modules/ROOT/examples/Features-HSM-NSS-PIN.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-HSM-NSS-PIN.adoc
rename to modules/ROOT/examples/Features-HSM-NSS-PIN.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-HSM-NSS.adoc b/modules/ROOT/examples/Features-HSM-NSS.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-HSM-NSS.adoc
rename to modules/ROOT/examples/Features-HSM-NSS.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-HSM-OpenSSL.adoc b/modules/ROOT/examples/Features-HSM-OpenSSL.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-HSM-OpenSSL.adoc
rename to modules/ROOT/examples/Features-HSM-OpenSSL.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-GNUTLS-Connect.adoc b/modules/ROOT/examples/Features-TLS-Client-GNUTLS-Connect.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-GNUTLS-Connect.adoc
rename to modules/ROOT/examples/Features-TLS-Client-GNUTLS-Connect.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-GNUTLS-Credentials.adoc b/modules/ROOT/examples/Features-TLS-Client-GNUTLS-Credentials.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-GNUTLS-Credentials.adoc
rename to modules/ROOT/examples/Features-TLS-Client-GNUTLS-Credentials.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-GNUTLS-Verify.adoc b/modules/ROOT/examples/Features-TLS-Client-GNUTLS-Verify.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-GNUTLS-Verify.adoc
rename to modules/ROOT/examples/Features-TLS-Client-GNUTLS-Verify.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-NSS-Close.adoc b/modules/ROOT/examples/Features-TLS-Client-NSS-Close.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-NSS-Close.adoc
rename to modules/ROOT/examples/Features-TLS-Client-NSS-Close.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-NSS-Connect.adoc b/modules/ROOT/examples/Features-TLS-Client-NSS-Connect.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-NSS-Connect.adoc
rename to modules/ROOT/examples/Features-TLS-Client-NSS-Connect.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Connect.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenJDK-Connect.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Connect.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenJDK-Connect.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Context.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenJDK-Context.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Context.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenJDK-Context.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Context_For_Cert.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenJDK-Context_For_Cert.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Context_For_Cert.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenJDK-Context_For_Cert.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Hostname.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenJDK-Hostname.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Hostname.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenJDK-Hostname.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Import.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenJDK-Import.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Import.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenJDK-Import.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-MyTrustManager.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenJDK-MyTrustManager.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-MyTrustManager.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenJDK-MyTrustManager.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Use.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenJDK-Use.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenJDK-Use.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenJDK-Use.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenSSL-CTX.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenSSL-CTX.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenSSL-CTX.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenSSL-CTX.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenSSL-Connect.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenSSL-Connect.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenSSL-Connect.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenSSL-Connect.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenSSL-Connection-Use.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenSSL-Connection-Use.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenSSL-Connection-Use.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenSSL-Connection-Use.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenSSL-Init.adoc b/modules/ROOT/examples/Features-TLS-Client-OpenSSL-Init.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-OpenSSL-Init.adoc
rename to modules/ROOT/examples/Features-TLS-Client-OpenSSL-Init.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-Python-Connect.adoc b/modules/ROOT/examples/Features-TLS-Client-Python-Connect.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-Python-Connect.adoc
rename to modules/ROOT/examples/Features-TLS-Client-Python-Connect.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Client-Python-check_host_name.adoc b/modules/ROOT/examples/Features-TLS-Client-Python-check_host_name.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Client-Python-check_host_name.adoc
rename to modules/ROOT/examples/Features-TLS-Client-Python-check_host_name.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-GNUTLS-Credentials-Close.adoc b/modules/ROOT/examples/Features-TLS-GNUTLS-Credentials-Close.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-GNUTLS-Credentials-Close.adoc
rename to modules/ROOT/examples/Features-TLS-GNUTLS-Credentials-Close.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-GNUTLS-Disconnect.adoc b/modules/ROOT/examples/Features-TLS-GNUTLS-Disconnect.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-GNUTLS-Disconnect.adoc
rename to modules/ROOT/examples/Features-TLS-GNUTLS-Disconnect.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-GNUTLS-Init.adoc b/modules/ROOT/examples/Features-TLS-GNUTLS-Init.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-GNUTLS-Init.adoc
rename to modules/ROOT/examples/Features-TLS-GNUTLS-Init.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-GNUTLS-Use.adoc b/modules/ROOT/examples/Features-TLS-GNUTLS-Use.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-GNUTLS-Use.adoc
rename to modules/ROOT/examples/Features-TLS-GNUTLS-Use.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-NSS-Close.adoc b/modules/ROOT/examples/Features-TLS-NSS-Close.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-NSS-Close.adoc
rename to modules/ROOT/examples/Features-TLS-NSS-Close.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-NSS-Includes.adoc b/modules/ROOT/examples/Features-TLS-NSS-Includes.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-NSS-Includes.adoc
rename to modules/ROOT/examples/Features-TLS-NSS-Includes.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-NSS-Init.adoc b/modules/ROOT/examples/Features-TLS-NSS-Init.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-NSS-Init.adoc
rename to modules/ROOT/examples/Features-TLS-NSS-Init.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-NSS-Use.adoc b/modules/ROOT/examples/Features-TLS-NSS-Use.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-NSS-Use.adoc
rename to modules/ROOT/examples/Features-TLS-NSS-Use.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Nagle.adoc b/modules/ROOT/examples/Features-TLS-Nagle.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Nagle.adoc
rename to modules/ROOT/examples/Features-TLS-Nagle.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-OpenJDK-Parameters.adoc b/modules/ROOT/examples/Features-TLS-OpenJDK-Parameters.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-OpenJDK-Parameters.adoc
rename to modules/ROOT/examples/Features-TLS-OpenJDK-Parameters.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-OpenSSL-Connection-Close.adoc b/modules/ROOT/examples/Features-TLS-OpenSSL-Connection-Close.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-OpenSSL-Connection-Close.adoc
rename to modules/ROOT/examples/Features-TLS-OpenSSL-Connection-Close.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-OpenSSL-Context-Close.adoc b/modules/ROOT/examples/Features-TLS-OpenSSL-Context-Close.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-OpenSSL-Context-Close.adoc
rename to modules/ROOT/examples/Features-TLS-OpenSSL-Context-Close.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-OpenSSL-Errors.adoc b/modules/ROOT/examples/Features-TLS-OpenSSL-Errors.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-OpenSSL-Errors.adoc
rename to modules/ROOT/examples/Features-TLS-OpenSSL-Errors.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Python-Close.adoc b/modules/ROOT/examples/Features-TLS-Python-Close.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Python-Close.adoc
rename to modules/ROOT/examples/Features-TLS-Python-Close.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Features-TLS-Python-Use.adoc b/modules/ROOT/examples/Features-TLS-Python-Use.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Features-TLS-Python-Use.adoc
rename to modules/ROOT/examples/Features-TLS-Python-Use.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Go-Error_Handling-IO.adoc b/modules/ROOT/examples/Go-Error_Handling-IO.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Go-Error_Handling-IO.adoc
rename to modules/ROOT/examples/Go-Error_Handling-IO.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Go-Error_Handling-Regular.adoc b/modules/ROOT/examples/Go-Error_Handling-Regular.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Go-Error_Handling-Regular.adoc
rename to modules/ROOT/examples/Go-Error_Handling-Regular.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Java-Finally.adoc b/modules/ROOT/examples/Java-Finally.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Java-Finally.adoc
rename to modules/ROOT/examples/Java-Finally.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Java-JNI-Pointers.adoc b/modules/ROOT/examples/Java-JNI-Pointers.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Java-JNI-Pointers.adoc
rename to modules/ROOT/examples/Java-JNI-Pointers.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Java-Language-ReadArray.adoc b/modules/ROOT/examples/Java-Language-ReadArray.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Java-Language-ReadArray.adoc
rename to modules/ROOT/examples/Java-Language-ReadArray.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Java-SecurityManager-Callback.adoc b/modules/ROOT/examples/Java-SecurityManager-Callback.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Java-SecurityManager-Callback.adoc
rename to modules/ROOT/examples/Java-SecurityManager-Callback.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Java-SecurityManager-CurrentDirectory.adoc b/modules/ROOT/examples/Java-SecurityManager-CurrentDirectory.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Java-SecurityManager-CurrentDirectory.adoc
rename to modules/ROOT/examples/Java-SecurityManager-CurrentDirectory.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Java-SecurityManager-Privileged.adoc b/modules/ROOT/examples/Java-SecurityManager-Privileged.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Java-SecurityManager-Privileged.adoc
rename to modules/ROOT/examples/Java-SecurityManager-Privileged.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Java-SecurityManager-Unprivileged.adoc b/modules/ROOT/examples/Java-SecurityManager-Unprivileged.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Java-SecurityManager-Unprivileged.adoc
rename to modules/ROOT/examples/Java-SecurityManager-Unprivileged.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Java-TryWithResource.adoc b/modules/ROOT/examples/Java-TryWithResource.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Java-TryWithResource.adoc
rename to modules/ROOT/examples/Java-TryWithResource.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Shell-Input_Validation.adoc b/modules/ROOT/examples/Shell-Input_Validation.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Shell-Input_Validation.adoc
rename to modules/ROOT/examples/Shell-Input_Validation.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Expat-Create.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-Expat-Create.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Expat-Create.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-Expat-Create.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Expat-EntityDeclHandler.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-Expat-EntityDeclHandler.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Expat-EntityDeclHandler.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-Expat-EntityDeclHandler.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK-Errors.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK-Errors.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK-Errors.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK-Errors.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK-Imports.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK-Imports.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK-Imports.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK-Imports.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK-NoEntityResolver.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK-NoEntityResolver.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK-NoEntityResolver.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK-NoEntityResolver.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK-NoResourceResolver.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK-NoResourceResolver.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK-NoResourceResolver.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK-NoResourceResolver.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK_Parse-DOM.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK_Parse-DOM.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK_Parse-DOM.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK_Parse-DOM.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_DOM.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_DOM.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_DOM.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_DOM.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_SAX.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_SAX.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_SAX.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_SAX.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Qt-NoEntityHandler.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-Qt-NoEntityHandler.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Qt-NoEntityHandler.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-Qt-NoEntityHandler.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Qt-NoEntityReader.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-Qt-NoEntityReader.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Qt-NoEntityReader.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-Qt-NoEntityReader.adoc
diff --git a/modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Qt-QDomDocument.adoc b/modules/ROOT/examples/Tasks-Serialization-XML-Qt-QDomDocument.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/snippets/Tasks-Serialization-XML-Qt-QDomDocument.adoc
rename to modules/ROOT/examples/Tasks-Serialization-XML-Qt-QDomDocument.adoc
diff --git a/modules/ROOT/pages/features/Features-HSM.adoc b/modules/ROOT/pages/features/Features-HSM.adoc
index 8b110dc..8b9e34b 100644
--- a/modules/ROOT/pages/features/Features-HSM.adoc
+++ b/modules/ROOT/pages/features/Features-HSM.adoc
@@ -81,7 +81,7 @@ and its usage to sign data.
[source,c]
----
-include::{partialsdir}/snippets/Features-HSM-OpenSSL.adoc[]
+include::example$Features-HSM-OpenSSL.adoc[]
----
====
@@ -104,7 +104,7 @@ and its usage to sign data.
[source,c]
----
-include::{partialsdir}/snippets/Features-HSM-GNUTLS.adoc[]
+include::example$Features-HSM-GNUTLS.adoc[]
----
====
@@ -119,7 +119,7 @@ An example PIN callback function is shown below.
[source,c]
----
-include::{partialsdir}/snippets/Features-HSM-GNUTLS-PIN.adoc[]
+include::example$Features-HSM-GNUTLS-PIN.adoc[]
----
====
@@ -145,7 +145,7 @@ The following example demonstrates a typical NSS application for signing.
[source,c]
----
-include::{partialsdir}/snippets/Features-HSM-NSS.adoc[]
+include::example$Features-HSM-NSS.adoc[]
----
====
@@ -173,7 +173,7 @@ $ NSS_Sign_Example "${token_name}:${cert_name}"
[source,c]
----
-include::{partialsdir}/snippets/Features-HSM-NSS-PIN.adoc[]
+include::example$Features-HSM-NSS-PIN.adoc[]
----
====
diff --git a/modules/ROOT/pages/features/Features-TLS.adoc b/modules/ROOT/pages/features/Features-TLS.adoc
index fffede7..e66f5da 100644
--- a/modules/ROOT/pages/features/Features-TLS.adoc
+++ b/modules/ROOT/pages/features/Features-TLS.adoc
@@ -3,7 +3,7 @@
[[chap-Defensive_Coding-TLS]]
= Transport Layer Security (TLS)
-include::{partialsdir}/entities.adoc[]
+include::partial$entities.adoc[]
Transport Layer Security (TLS, formerly Secure Sockets
Layer/SSL) is the recommended way to to protect integrity and
@@ -62,7 +62,7 @@ duration of the handshake), or use the Linux-specific
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Nagle.adoc[]
+include::example$Features-TLS-Nagle.adoc[]
----
====
@@ -133,7 +133,7 @@ due to a connection teardown by the other end).
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-OpenSSL-Errors.adoc[]
+include::example$Features-TLS-OpenSSL-Errors.adoc[]
----
====
@@ -309,7 +309,7 @@ The OpenSSL library needs explicit initialization (see <<ex-Defensive_Coding-TLS
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenSSL-Init.adoc[]
+include::example$Features-TLS-Client-OpenSSL-Init.adoc[]
----
@@ -332,7 +332,7 @@ be cumbersome.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenSSL-CTX.adoc[]
+include::example$Features-TLS-Client-OpenSSL-CTX.adoc[]
----
====
@@ -380,7 +380,7 @@ name.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenSSL-Connect.adoc[]
+include::example$Features-TLS-Client-OpenSSL-Connect.adoc[]
----
====
@@ -397,7 +397,7 @@ transport, using `BIO_set_ssl`.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenSSL-Connection-Use.adoc[]
+include::example$Features-TLS-Client-OpenSSL-Connection-Use.adoc[]
----
====
@@ -418,7 +418,7 @@ socket after the connection object has been freed.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-OpenSSL-Connection-Close.adoc[]
+include::example$Features-TLS-OpenSSL-Connection-Close.adoc[]
----
====
@@ -433,7 +433,7 @@ because no further TLS connections will be established.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-OpenSSL-Context-Close.adoc[]
+include::example$Features-TLS-OpenSSL-Context-Close.adoc[]
----
====
@@ -456,7 +456,7 @@ CAs (<<ex-Defensive_Coding-TLS-Client-GNUTLS-Credentials>>).
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-GNUTLS-Credentials.adoc[]
+include::example$Features-TLS-Client-GNUTLS-Credentials.adoc[]
----
====
@@ -466,7 +466,7 @@ object should be freed:
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-GNUTLS-Credentials-Close.adoc[]
+include::example$Features-TLS-GNUTLS-Credentials-Close.adoc[]
----
During its lifetime, the credentials object can be used to
@@ -486,7 +486,7 @@ This is shown in <<ex-Defensive_Coding-TLS-Client-GNUTLS-Connect>>.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-GNUTLS-Connect.adoc[]
+include::example$Features-TLS-Client-GNUTLS-Connect.adoc[]
----
====
@@ -505,7 +505,7 @@ can be omitted if the functionality is not needed.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-GNUTLS-Verify.adoc[]
+include::example$Features-TLS-Client-GNUTLS-Verify.adoc[]
----
====
@@ -519,7 +519,7 @@ receiving data, as in <<ex-Defensive_Coding-TLS-GNUTLS-Use>>.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-GNUTLS-Use.adoc[]
+include::example$Features-TLS-GNUTLS-Use.adoc[]
----
====
@@ -535,7 +535,7 @@ Finally, the session object can be deallocated using
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-GNUTLS-Disconnect.adoc[]
+include::example$Features-TLS-GNUTLS-Disconnect.adoc[]
----
====
@@ -548,7 +548,7 @@ classes:
[source,java]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenJDK-Import.adoc[]
+include::example$Features-TLS-Client-OpenJDK-Import.adoc[]
----
@@ -579,7 +579,7 @@ be supported as a fall-back option. This is shown in <<ex-Defensive_Coding-TLS-C
[source,java]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenJDK-Context.adoc[]
+include::example$Features-TLS-Client-OpenJDK-Context.adoc[]
----
====
@@ -595,7 +595,7 @@ connections.
[source,java]
----
-include::{partialsdir}/snippets/Features-TLS-OpenJDK-Parameters.adoc[]
+include::example$Features-TLS-OpenJDK-Parameters.adoc[]
----
====
@@ -606,7 +606,7 @@ separately, and this is only supported by OpenJDK 7 and later:
[source,java]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenJDK-Hostname.adoc[]
+include::example$Features-TLS-Client-OpenJDK-Hostname.adoc[]
----
All application protocols can use the
@@ -629,7 +629,7 @@ internal API on OpenJDK 6.
[source,java]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenJDK-Connect.adoc[]
+include::example$Features-TLS-Client-OpenJDK-Connect.adoc[]
----
====
@@ -650,7 +650,7 @@ The TLS socket can be used as a regular socket, as shown in
[source,java]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenJDK-Use.adoc[]
+include::example$Features-TLS-Client-OpenJDK-Use.adoc[]
----
====
@@ -675,7 +675,7 @@ the server certificate is identified by its SHA-256 hash.
[source,java]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenJDK-MyTrustManager.adoc[]
+include::example$Features-TLS-Client-OpenJDK-MyTrustManager.adoc[]
----
====
@@ -690,7 +690,7 @@ This trust manager has to be passed to the
[source,java]
----
-include::{partialsdir}/snippets/Features-TLS-Client-OpenJDK-Context_For_Cert.adoc[]
+include::example$Features-TLS-Client-OpenJDK-Context_For_Cert.adoc[]
----
====
@@ -735,7 +735,7 @@ Using NSS needs several header files, as shown in
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-NSS-Includes.adoc[]
+include::example$Features-TLS-NSS-Includes.adoc[]
----
====
@@ -761,7 +761,7 @@ load trusted CA certificates from a file.)
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-NSS-Init.adoc[]
+include::example$Features-TLS-NSS-Init.adoc[]
----
@@ -772,7 +772,7 @@ the following function calls:
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-NSS-Close.adoc[]
+include::example$Features-TLS-NSS-Close.adoc[]
----
After NSS has been initialized, the TLS connection can be
@@ -808,7 +808,7 @@ certificate is verified and matched against the host name.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-NSS-Connect.adoc[]
+include::example$Features-TLS-Client-NSS-Connect.adoc[]
----
====
@@ -822,7 +822,7 @@ the NSPR descriptor to communicate with the server.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-NSS-Use.adoc[]
+include::example$Features-TLS-NSS-Use.adoc[]
----
====
@@ -836,7 +836,7 @@ shows how to close the connection.
[source,c]
----
-include::{partialsdir}/snippets/Features-TLS-Client-NSS-Close.adoc[]
+include::example$Features-TLS-Client-NSS-Close.adoc[]
----
@@ -877,7 +877,7 @@ certificate returned by `getpeercert`.
[source,python]
----
-include::{partialsdir}/snippets/Features-TLS-Client-Python-check_host_name.adoc[]
+include::example$Features-TLS-Client-Python-check_host_name.adoc[]
----
====
@@ -923,7 +923,7 @@ manually against the host name, by calling the
[source,python]
----
-include::{partialsdir}/snippets/Features-TLS-Client-Python-Connect.adoc[]
+include::example$Features-TLS-Client-Python-Connect.adoc[]
----
====
@@ -933,12 +933,12 @@ be used like a regular socket:
[source,python]
----
-include::{partialsdir}/snippets/Features-TLS-Python-Use.adoc[]
+include::example$Features-TLS-Python-Use.adoc[]
----
Closing the TLS socket is straightforward as well:
[source,python]
----
-include::{partialsdir}/snippets/Features-TLS-Python-Close.adoc[]
+include::example$Features-TLS-Python-Close.adoc[]
----
diff --git a/modules/ROOT/pages/index.adoc b/modules/ROOT/pages/index.adoc
index 898c10d..ad123ed 100644
--- a/modules/ROOT/pages/index.adoc
+++ b/modules/ROOT/pages/index.adoc
@@ -1,5 +1,5 @@
:experimental:
-include::{partialsdir}/entities.adoc[]
+include::partial$entities.adoc[]
= Defensive coding guide
@@ -15,6 +15,6 @@ concrete recommendations.
--
image::title_logo.svg[]
-include::{partialsdir}/Legal_Notice.adoc[]
+include::partial$Legal_Notice.adoc[]
-include::{partialsdir}/Author_Group.adoc[]
+include::partial$Author_Group.adoc[]
diff --git a/modules/ROOT/pages/programming-languages/C-Language.adoc b/modules/ROOT/pages/programming-languages/C-Language.adoc
index a0f450a..c3a52a0 100644
--- a/modules/ROOT/pages/programming-languages/C-Language.adoc
+++ b/modules/ROOT/pages/programming-languages/C-Language.adoc
@@ -56,7 +56,7 @@ The cast silences a compiler warning;
[source,c]
----
-include::partial$snippets/C-Pointers-remaining.adoc[]
+include::example$C-Pointers-remaining.adoc[]
----
@@ -86,7 +86,7 @@ see <<ex-Defensive_Coding-C-Arithmetic-bad>>.
[source,c]
----
-include::partial$snippets/C-Arithmetic-add.adoc[]
+include::example$C-Arithmetic-add.adoc[]
----
@@ -113,7 +113,7 @@ additions have to be checked in this way.
[source,c]
----
-include::partial$snippets/C-Arithmetic-add_unsigned.adoc[]
+include::example$C-Arithmetic-add_unsigned.adoc[]
----
====
@@ -129,7 +129,7 @@ see <<ex-Defensive_Coding-C-Arithmetic-mult>>.
[source,c]
----
-include::partial$snippets/C-Arithmetic-mult.adoc[]
+include::example$C-Arithmetic-mult.adoc[]
----
====
@@ -189,7 +189,7 @@ after the `*`, and not before it.
[source,c]
----
-include::partial$snippets/C-Globals-String_Array.adoc[]
+include::example$C-Globals-String_Array.adoc[]
----
diff --git a/modules/ROOT/pages/programming-languages/C-Libc.adoc b/modules/ROOT/pages/programming-languages/C-Libc.adoc
index 1882ab7..e34bc3b 100644
--- a/modules/ROOT/pages/programming-languages/C-Libc.adoc
+++ b/modules/ROOT/pages/programming-languages/C-Libc.adoc
@@ -1,7 +1,7 @@
:experimental:
-include::{partialsdir}/entities.adoc[]
+include::partial$entities.adoc[]
[[sect-Defensive_Coding-C-Libc]]
== The C Standard Library
@@ -127,7 +127,7 @@ size is allocated on the heap, consider use
[source,c]
----
-include::partial$snippets/C-String-Functions-snprintf.adoc[]
+include::example$C-String-Functions-snprintf.adoc[]
----
@@ -157,7 +157,7 @@ invariant. After the loop, the result string is in the
[source,c]
----
-include::partial$snippets/C-String-Functions-snprintf-incremental.adoc[]
+include::example$C-String-Functions-snprintf-incremental.adoc[]
----
@@ -192,7 +192,7 @@ function (see <<ex-Defensive_Coding-C-String-Functions-format-Attribute>>).
[source,c]
----
-include::partial$snippets/C-String-Functions-format.adoc[]
+include::example$C-String-Functions-format.adoc[]
----
@@ -207,7 +207,7 @@ ensuring NUL termination is:
[source,c]
----
-include::partial$snippets/C-String-Functions-strncpy.adoc[]
+include::example$C-String-Functions-strncpy.adoc[]
----
@@ -216,7 +216,7 @@ function for this purpose:
[source,c]
----
-include::partial$snippets/C-String-Functions-strncat-as-strncpy.adoc[]
+include::example$C-String-Functions-strncat-as-strncpy.adoc[]
----
@@ -239,7 +239,7 @@ approach similar to <<ex-Defensive_Coding-C-String-Functions-snprintf-incrementa
[source,c]
----
-include::partial$snippets/C-String-Functions-strncat-emulation.adoc[]
+include::example$C-String-Functions-strncat-emulation.adoc[]
----
@@ -249,7 +249,7 @@ string:
[source,c]
----
-include::partial$snippets/C-String-Functions-strncat-merged.adoc[]
+include::example$C-String-Functions-strncat-merged.adoc[]
----
diff --git a/modules/ROOT/pages/programming-languages/Go.adoc b/modules/ROOT/pages/programming-languages/Go.adoc
index 368e1ba..93d5218 100644
--- a/modules/ROOT/pages/programming-languages/Go.adoc
+++ b/modules/ROOT/pages/programming-languages/Go.adoc
@@ -53,7 +53,7 @@ details.
[source,go]
----
-include::partial$snippets/Go-Error_Handling-Regular.adoc[]
+include::example$Go-Error_Handling-Regular.adoc[]
----
@@ -73,7 +73,7 @@ returning both data and an error at the same time.
[source,go]
----
-include::partial$snippets/Go-Error_Handling-IO.adoc[]
+include::example$Go-Error_Handling-IO.adoc[]
----
diff --git a/modules/ROOT/pages/programming-languages/Java-Language.adoc b/modules/ROOT/pages/programming-languages/Java-Language.adoc
index 176d4ae..5ac12a8 100644
--- a/modules/ROOT/pages/programming-languages/Java-Language.adoc
+++ b/modules/ROOT/pages/programming-languages/Java-Language.adoc
@@ -31,7 +31,7 @@ data, implementing an exponential growth policy. See the
[source,java]
----
-include::partial$snippets/Java-Language-ReadArray.adoc[]
+include::example$Java-Language-ReadArray.adoc[]
----
@@ -62,7 +62,7 @@ possible and should not throw any exceptions.
[source,java]
----
-include::partial$snippets/Java-Finally.adoc[]
+include::example$Java-Finally.adoc[]
----
@@ -87,7 +87,7 @@ used instead. The Java compiler will automatically insert the
[source,java]
----
-include::partial$snippets/Java-TryWithResource.adoc[]
+include::example$Java-TryWithResource.adoc[]
----
diff --git a/modules/ROOT/pages/programming-languages/Java-LowLevel.adoc b/modules/ROOT/pages/programming-languages/Java-LowLevel.adoc
index 6697f1c..4c184f8 100644
--- a/modules/ROOT/pages/programming-languages/Java-LowLevel.adoc
+++ b/modules/ROOT/pages/programming-languages/Java-LowLevel.adoc
@@ -75,7 +75,7 @@ beginning of the array.
[source,java]
----
-include::partial$snippets/Java-JNI-Pointers.adoc[]
+include::example$Java-JNI-Pointers.adoc[]
----
diff --git a/modules/ROOT/pages/programming-languages/Java-SecurityManager.adoc b/modules/ROOT/pages/programming-languages/Java-SecurityManager.adoc
index 17b7933..c3c7101 100644
--- a/modules/ROOT/pages/programming-languages/Java-SecurityManager.adoc
+++ b/modules/ROOT/pages/programming-languages/Java-SecurityManager.adoc
@@ -110,7 +110,7 @@ shows how to run a piece code of with reduced privileges.
[source,java]
----
-include::partial$snippets/Java-SecurityManager-Unprivileged.adoc[]
+include::example$Java-SecurityManager-Unprivileged.adoc[]
----
@@ -123,7 +123,7 @@ on all files in the current directory) can be used:
[source,java]
----
-include::partial$snippets/Java-SecurityManager-CurrentDirectory.adoc[]
+include::example$Java-SecurityManager-CurrentDirectory.adoc[]
----
@@ -208,7 +208,7 @@ shows how to request additional privileges.
[source,java]
----
-include::partial$snippets/Java-SecurityManager-Privileged.adoc[]
+include::example$Java-SecurityManager-Privileged.adoc[]
----
@@ -249,7 +249,7 @@ invocation out of the privileged code section, of course.)
[source,java]
----
-include::partial$snippets/Java-SecurityManager-Callback.adoc[]
+include::example$Java-SecurityManager-Callback.adoc[]
----
diff --git a/modules/ROOT/pages/programming-languages/Shell.adoc b/modules/ROOT/pages/programming-languages/Shell.adoc
index 8362485..4ad08f5 100644
--- a/modules/ROOT/pages/programming-languages/Shell.adoc
+++ b/modules/ROOT/pages/programming-languages/Shell.adoc
@@ -3,7 +3,7 @@
[[chap-Defensive_Coding-Shell]]
= Shell Programming and [application]*bash*
-include::{partialsdir}/entities.adoc[]
+include::partial$entities.adoc[]
This chapter contains advice about shell programming, specifically
in [application]*bash*. Most of the advice will apply
@@ -350,7 +350,7 @@ POSIX shells.
[source,bash]
----
-include::partial$snippets/Shell-Input_Validation.adoc[]
+include::example$Shell-Input_Validation.adoc[]
----
diff --git a/modules/ROOT/pages/tasks/Tasks-File_System.adoc b/modules/ROOT/pages/tasks/Tasks-File_System.adoc
index 12e24e8..402661d 100644
--- a/modules/ROOT/pages/tasks/Tasks-File_System.adoc
+++ b/modules/ROOT/pages/tasks/Tasks-File_System.adoc
@@ -1,6 +1,6 @@
:experimental:
-include::{partialsdir}/entities.adoc[]
+include::partial$entities.adoc[]
[[chap-Defensive_Coding-Tasks-File_System]]
= File System Manipulation
diff --git a/modules/ROOT/pages/tasks/Tasks-Processes.adoc b/modules/ROOT/pages/tasks/Tasks-Processes.adoc
index b5bdcd6..97b3c07 100644
--- a/modules/ROOT/pages/tasks/Tasks-Processes.adoc
+++ b/modules/ROOT/pages/tasks/Tasks-Processes.adoc
@@ -3,7 +3,7 @@
[[sect-Defensive_Coding-Tasks-Processes]]
= Processes
-include::{partialsdir}/entities.adoc[]
+include::partial$entities.adoc[]
[[sect-Defensive_Coding-Tasks-Processes-Creation]]
== Creating Safe Processes
diff --git a/modules/ROOT/pages/tasks/Tasks-Serialization.adoc b/modules/ROOT/pages/tasks/Tasks-Serialization.adoc
index 4c52a9d..c6152dc 100644
--- a/modules/ROOT/pages/tasks/Tasks-Serialization.adoc
+++ b/modules/ROOT/pages/tasks/Tasks-Serialization.adoc
@@ -267,7 +267,7 @@ problems related to that.
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-Expat-EntityDeclHandler.adoc[]
+include::example$Tasks-Serialization-XML-Expat-EntityDeclHandler.adoc[]
----
@@ -282,7 +282,7 @@ This handler must be installed when the
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-Expat-Create.adoc[]
+include::example$Tasks-Serialization-XML-Expat-Create.adoc[]
----
@@ -315,7 +315,7 @@ parsing to stop when encountering entity declarations.
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-Qt-NoEntityHandler.adoc[]
+include::example$Tasks-Serialization-XML-Qt-NoEntityHandler.adoc[]
----
@@ -336,7 +336,7 @@ may need adjusting.
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-Qt-NoEntityReader.adoc[]
+include::example$Tasks-Serialization-XML-Qt-NoEntityReader.adoc[]
----
@@ -358,7 +358,7 @@ return value and report any error.
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-Qt-QDomDocument.adoc[]
+include::example$Tasks-Serialization-XML-Qt-QDomDocument.adoc[]
----
@@ -389,7 +389,7 @@ external ID resolution.
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-OpenJDK-NoEntityResolver.adoc[]
+include::example$Tasks-Serialization-XML-OpenJDK-NoEntityResolver.adoc[]
----
@@ -401,7 +401,7 @@ include::{partialsdir}/snippets/Tasks-Serialization-XML-OpenJDK-NoEntityResolver
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-OpenJDK-NoResourceResolver.adoc[]
+include::example$Tasks-Serialization-XML-OpenJDK-NoResourceResolver.adoc[]
----
====
@@ -415,7 +415,7 @@ shows the imports used by the examples.
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-OpenJDK-Imports.adoc[]
+include::example$Tasks-Serialization-XML-OpenJDK-Imports.adoc[]
----
====
@@ -435,7 +435,7 @@ instance in the `inputStream` variable.
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-OpenJDK_Parse-DOM.adoc[]
+include::example$Tasks-Serialization-XML-OpenJDK_Parse-DOM.adoc[]
----
====
@@ -467,7 +467,7 @@ using a SAX-based approach. The XML data is read from an
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_SAX.adoc[]
+include::example$Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_SAX.adoc[]
----
====
@@ -490,7 +490,7 @@ to perform the schema-based validation on the
[source,java]
----
-include::{partialsdir}/snippets/Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_DOM.adoc[]
+include::example$Tasks-Serialization-XML-OpenJDK_Parse-XMLSchema_DOM.adoc[]
----
====
diff --git a/modules/ROOT/pages/_partials/Author_Group.adoc b/modules/ROOT/partials/Author_Group.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/Author_Group.adoc
rename to modules/ROOT/partials/Author_Group.adoc
diff --git a/modules/ROOT/pages/_partials/Legal_Notice.adoc b/modules/ROOT/partials/Legal_Notice.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/Legal_Notice.adoc
rename to modules/ROOT/partials/Legal_Notice.adoc
diff --git a/modules/ROOT/pages/_partials/entities.adoc b/modules/ROOT/partials/entities.adoc
similarity index 100%
rename from modules/ROOT/pages/_partials/entities.adoc
rename to modules/ROOT/partials/entities.adoc
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
2 years, 2 months
[defensive-coding-guide] 02/06: Update Fedora logo
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
pbokoc pushed a commit to branch master
in repository defensive-coding-guide.
commit b1b3d6a9603812e116c6c9128e78712c1ace2576
Author: Petr Bokoc <pbokoc(a)redhat.com>
AuthorDate: Thu Jan 13 20:42:15 2022 +0100
Update Fedora logo
---
modules/ROOT/assets/images/title_logo.svg | 100 ++++++++++++++----------------
1 file changed, 46 insertions(+), 54 deletions(-)
diff --git a/modules/ROOT/assets/images/title_logo.svg b/modules/ROOT/assets/images/title_logo.svg
index e8fd52b..8dd65ac 100644
--- a/modules/ROOT/assets/images/title_logo.svg
+++ b/modules/ROOT/assets/images/title_logo.svg
@@ -1,61 +1,53 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- Created with Inkscape (http://www.inkscape.org/) -->
-
<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
- version="1.0"
- width="220"
- height="70"
- id="svg6180">
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+ version="1.1"
+ width="907.78003"
+ height="415.07999"
+ id="svg2855"
+ sodipodi:docname="fedora_logo.svg"
+ inkscape:version="1.0.2 (e86c870879, 2021-01-15)">
+ <metadata
+ id="metadata20">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <sodipodi:namedview
+ pagecolor="#ffffff"
+ bordercolor="#666666"
+ borderopacity="1"
+ objecttolerance="10"
+ gridtolerance="10"
+ guidetolerance="10"
+ inkscape:pageopacity="0"
+ inkscape:pageshadow="2"
+ inkscape:window-width="2560"
+ inkscape:window-height="1403"
+ id="namedview18"
+ showgrid="false"
+ inkscape:zoom="1.7471193"
+ inkscape:cx="453.89001"
+ inkscape:cy="207.53999"
+ inkscape:window-x="0"
+ inkscape:window-y="25"
+ inkscape:window-maximized="1"
+ inkscape:current-layer="svg2855" />
<defs
- id="defs6182" />
- <g
- transform="translate(-266.55899,-345.34488)"
- id="layer1">
- <path
- d="m 316.7736,397.581 c 0,0 0,0 -20.53889,0 0.3327,4.45245 3.92157,7.77609 8.70715,7.77609 3.38983,0 6.31456,-1.39616 8.64094,-3.65507 0.46553,-0.46679 0.99726,-0.59962 1.59519,-0.59962 0.79781,0 1.59561,0.39932 2.12692,1.06388 0.3327,0.46553 0.53216,0.99726 0.53216,1.52857 0,0.73118 -0.3327,1.52857 -0.93106,2.12734 -2.7919,2.99052 -7.51086,4.98503 -12.16403,4.98503 -8.44149,0 -15.22074,-6.77967 -15.22074,-15.22158 0,-8.44149 6.58022,-15.22074 15.02171,-15.22074 8.37529,0 14.62323 [...]
- id="path11"
- style="fill:#3c6eb4" />
- <path
- d="m 375.46344,410.80807 c -8.44106,0 -15.22074,-6.77968 -15.22074,-15.22159 0,-8.44149 6.77968,-15.22074 15.22074,-15.22074 8.44234,0 15.22159,6.77925 15.22159,15.22074 -4.2e-4,8.44149 -6.77968,15.22159 -15.22159,15.22159 z m 0,-24.65992 c -5.31688,0 -8.77377,4.25427 -8.77377,9.43833 0,5.18364 3.45689,9.43833 8.77377,9.43833 5.31731,0 8.77504,-4.25469 8.77504,-9.43833 -4.2e-4,-5.18406 -3.45773,-9.43833 -8.77504,-9.43833 z"
- id="path13"
- style="fill:#3c6eb4" />
- <path
- d="m 412.66183,380.36574 c -4.45963,0 -7.40966,1.319 -10.01391,4.62956 l -0.24036,-1.53995 0,0 c -0.20198,-1.60743 -1.57326,-2.84926 -3.23382,-2.84926 -1.80139,0 -3.26206,1.459 -3.26206,3.26081 0,0.003 0,0.005 0,0.008 l 0,0 0,0.003 0,0 0,23.40712 c 0,1.79464 1.46194,3.25743 3.257,3.25743 1.79465,0 3.25744,-1.46279 3.25744,-3.25743 l 0,-12.56209 c 0,-5.71621 4.98502,-8.57432 10.23613,-8.57432 1.59519,0 2.85726,-1.32953 2.85726,-2.92515 0,-1.59561 -1.26207,-2.85726 -2.85768,-2.85726 z"
- id="path15"
- style="fill:#3c6eb4" />
- <path
- d="m 447.02614,395.58648 c 0.0666,-8.17541 -5.78326,-15.22074 -15.222,-15.22074 -8.44192,0 -15.28779,6.77925 -15.28779,15.22074 0,8.44191 6.64684,15.22159 14.68985,15.22159 4.01434,0 7.62682,-2.06621 9.23846,-4.22518 l 0.79359,2.01434 0,0 c 0.42589,1.13177 1.5176,1.93717 2.7978,1.93717 1.65001,0 2.98756,-1.33671 2.99009,-2.98545 l 0,0 0,-7.80687 0,0 0,-4.1556 z m -15.222,9.43833 c -5.31773,0 -8.77419,-4.25469 -8.77419,-9.43833 0,-5.18406 3.45604,-9.43833 8.77419,-9.43833 5.3173,0 [...]
- id="path17"
- style="fill:#3c6eb4" />
- <path
- d="m 355.01479,368.3337 c 0,-1.7938 -1.46194,-3.18997 -3.25659,-3.18997 -1.79422,0 -3.25743,1.39659 -3.25743,3.18997 l 0,17.1499 c -1.66097,-3.05756 -5.25026,-5.11786 -9.50495,-5.11786 -8.64052,0 -14.42336,6.51318 -14.42336,15.22074 0,8.70757 5.98229,15.22159 14.42336,15.22159 3.76555,0 7.03057,-1.55429 8.98587,-4.25554 l 0.72317,1.83428 c 0.44782,1.25912 1.64917,2.16024 3.06051,2.16024 1.78621,0 3.24984,-1.45435 3.24984,-3.24815 0,-0.005 0,-0.009 0,-0.0139 l 0,0 0,-38.95128 -4.2e [...]
- id="path19"
- style="fill:#3c6eb4" />
- <path
- d="m 287.21553,365.34023 c -0.59414,-0.0877 -1.19966,-0.13198 -1.80097,-0.13198 -6.73118,0 -12.20746,5.4767 -12.20746,12.20788 l 0,3.8132 -3.98903,0 c -1.46237,0 -2.65908,1.19671 -2.65908,2.65781 0,1.46321 1.19671,2.93738 2.65908,2.93738 l 3.98819,0 0,20.46004 c 0,1.79464 1.46236,3.25743 3.25658,3.25743 1.79507,0 3.25744,-1.46279 3.25744,-3.25743 l 0,-20.46004 4.40986,0 c 1.46194,0 2.65823,-1.47417 2.65823,-2.93738 0,-1.46152 -1.19629,-2.65823 -2.65823,-2.65823 l -4.40733,0 0,-3.8 [...]
- id="path21"
- style="fill:#3c6eb4" />
- <path
- d="m 482.01243,363.57426 c 0,-10.06788 -8.16108,-18.22938 -18.22897,-18.22938 -10.06282,0 -18.22179,8.15475 -18.22854,18.21631 l -4.2e-4,-4.2e-4 0,14.1071 4.2e-4,4.2e-4 c 0.005,2.28463 1.85832,4.13409 4.14463,4.13409 0.007,0 0.0127,-8.4e-4 0.0194,-8.4e-4 l 0.001,8.4e-4 14.07083,0 0,0 c 10.06409,-0.004 18.22138,-8.16276 18.22138,-18.22812 z"
- id="path25"
- style="fill:#294172" />
- <path
- d="m 469.13577,349.66577 c -4.72528,0 -8.55576,3.83049 -8.55576,8.55577 0,0.002 0,0.004 0,0.006 l 0,4.52836 -4.51444,0 c -8.5e-4,0 -8.5e-4,0 -0.001,0 -4.72528,0 -8.55576,3.81193 -8.55576,8.53678 0,4.72528 3.83048,8.55577 8.55576,8.55577 4.72486,0 8.55534,-3.83049 8.55534,-8.55577 0,-0.002 0,-0.004 0,-0.006 l 0,-4.54733 4.51444,0 c 8.5e-4,0 0.001,0 0.002,0 4.72486,0 8.55534,-3.79296 8.55534,-8.51781 0,-4.72528 -3.83048,-8.55577 -8.55534,-8.55577 z m -8.55576,21.63483 c -0.004,2.489 [...]
- id="path29"
- style="fill:#3c6eb4" />
- <path
- d="m 460.58001,362.7558 0,-4.52836 c 0,-0.002 0,-0.004 0,-0.006 0,-4.72528 3.83048,-8.55577 8.55576,-8.55577 0.71685,0 1.22623,0.0805 1.88952,0.25469 0.96774,0.25385 1.75796,1.04618 1.75838,1.96922 4.2e-4,1.11575 -0.80919,1.92621 -2.0194,1.92621 -0.57642,0 -0.78473,-0.11048 -1.62892,-0.11048 -2.49125,0 -4.51149,2.01771 -4.51571,4.50854 l 0,3.90385 0,4.2e-4 c 0,0.35252 0.28505,0.63758 0.63757,0.63758 4.3e-4,0 0.001,0 0.002,0 l 2.96521,0 c 1.10521,0 1.99747,0.88467 1.99832,1.99283 0 [...]
- id="path31"
- style="fill:#ffffff" />
- <path
- d="m 477.41661,378.55292 2.81558,0 0,0.37898 -1.18152,0 0,2.94935 -0.45254,0 0,-2.94935 -1.18152,0 0,-0.37898 m 3.26144,0 0.67101,0 0.84937,2.26496 0.85381,-2.26496 0.67102,0 0,3.32833 -0.43917,0 0,-2.9226 -0.85828,2.28279 -0.45255,0 -0.85827,-2.28279 0,2.9226 -0.43694,0 0,-3.32833"
- id="text6223"
- style="fill:#294172;enable-background:new" />
- </g>
+ id="defs2857" />
<path
- d="m 181.98344,61.675273 2.81558,0 0,0.37898 -1.18152,0 0,2.94935 -0.45254,0 0,-2.94935 -1.18152,0 0,-0.37898 m 3.26144,0 0.67101,0 0.84937,2.26496 0.85381,-2.26496 0.67102,0 0,3.32833 -0.43917,0 0,-2.9226 -0.85828,2.28279 -0.45255,0 -0.85827,-2.28279 0,2.9226 -0.43694,0 0,-3.32833"
- id="path2391"
- style="fill:#294172;enable-background:new" />
+ id="path1616"
+ style="opacity:1;fill:#51a2da;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1.33335"
+ d="m 196.07741,103.89381 c -57.21983,0 -103.586462,46.37214 -103.623771,103.57914 h -0.01831 v 80.21109 h 0.01831 c 0.02746,12.98741 10.552761,23.50213 23.546771,23.50213 h 0.11181 0.0184 79.98755 c 57.22698,-0.0366 103.57969,-46.40238 103.57969,-103.62386 8e-5,-57.24568 -46.37792,-103.6685 -103.62367,-103.6685 z m 181.24101,41.83865 c -21.90847,0 -35.96355,16.64654 -36.09167,32.22312 v 90.29625 c -0.0275,11.13336 16.92975,11.13336 16.90537,0 V 207.9872 h 17.37498 c 4.06533,0 7.5358 [...]
</svg>
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
2 years, 2 months
[defensive-coding-guide] 01/06: Update build/preview scripts
by pagure@pagure.io
This is an automated email from the git hooks/post-receive script.
pbokoc pushed a commit to branch master
in repository defensive-coding-guide.
commit 782e1e1e21120b705d0ac4a2c4ec04f7fa985890
Author: Petr Bokoc <pbokoc(a)redhat.com>
AuthorDate: Thu Jan 13 20:34:12 2022 +0100
Update build/preview scripts
---
build.sh | 9 +++++++--
preview.sh | 6 +++---
2 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/build.sh b/build.sh
index 1e4db2d..75dd387 100755
--- a/build.sh
+++ b/build.sh
@@ -14,14 +14,19 @@ if [ "$(uname)" == "Darwin" ]; then
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
# Running on Linux.
+ # there isn't an antora/aarch64 container, antora can be installed locally
# Check whether podman is available, else faill back to docker
# which requires root.
- if [ -f /usr/bin/podman ]; then
+ if [ -f /usr/local/bin/antora ]; then
+ /usr/local/bin/antora $cmd
+ elif [[ `uname -m` == "aarch64" ]]; then
+ echo "no antora/aarch64 container try just \`npm install -g @antora/cli @antora/site-generator-default\`"
+ elif [ -f /usr/bin/podman ]; then
echo ""
echo "This build script is using Podman to run the build in an isolated environment."
echo ""
- podman run --rm -it -v $(pwd):/antora:z $image $cmd
+ podman run --rm -it -v $(pwd):/antora:z $image $cmd
elif [ -f /usr/bin/docker ]; then
echo ""
diff --git a/preview.sh b/preview.sh
index acc52af..4270107 100755
--- a/preview.sh
+++ b/preview.sh
@@ -1,13 +1,13 @@
#!/bin/sh
-if [ "$(uname)" == "Darwin" ]; then
+if [ "$(uname)" = "Darwin" ]; then
# Running on macOS.
# Let's assume that the user has the Docker CE installed
# which doesn't require a root password.
echo "The preview will be available at http://localhost:8080/"
- docker run --rm -v $(pwd):/antora:ro -v $(pwd)/nginx.conf:/etc/nginx/conf.d/default.conf:ro -p 8080:80 nginx
+ docker run --rm -v "$(pwd):/antora:ro" -v "$(pwd)/nginx.conf:/etc/nginx/conf.d/default.conf:ro" -p 8080:80 nginx
-elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
+elif [ "$(expr substr "$(uname -s)" 1 5)" = "Linux" ]; then
# Running on Linux.
# Fedora Workstation has python3 installed as a default, so using that
echo ""
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
2 years, 2 months