You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2019/09/17 22:57:59 UTC
[isis] 05/07: ISIS-2062: moves extensions/secman module to
ext-secman/ROOT component
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch v2-antora
in repository https://gitbox.apache.org/repos/asf/isis.git
commit f4e0f48a1fe196ae953d1d1a0743c97c0aaa7764
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Tue Sep 17 19:28:37 2019 +0100
ISIS-2062: moves extensions/secman module to ext-secman/ROOT component
---
antora/components/ext-secman/antora.yml | 6 ++++
antora/components/ext-secman/examples.csv | 1 +
.../modules/ROOT}/_attributes.adoc | 0
.../modules/ROOT/assets/attachments}/.gitkeep | 0
.../modules/ROOT}/assets/images/.gitkeep | 0
.../modules/ROOT/examples}/.gitkeep | 0
antora/components/ext-secman/modules/ROOT/nav.adoc | 2 ++
.../modules/ROOT}/pages/_attributes.adoc | 0
.../modules/ROOT}/pages/_partials/_attributes.adoc | 0
.../modules/ROOT}/pages/about.adoc | 0
antora/components/ext-secman/sync_examples.sh | 39 ++++++++++++++++++++++
antora/components/extensions/antora.yml | 1 -
.../components/extensions/modules/secman/nav.adoc | 2 --
.../components/toc/modules/ROOT/pages/about.adoc | 2 +-
.../vw/pages/features/user-registration.adoc | 2 +-
site.yml | 6 ++++
16 files changed, 56 insertions(+), 5 deletions(-)
diff --git a/antora/components/ext-secman/antora.yml b/antora/components/ext-secman/antora.yml
new file mode 100644
index 0000000..e9f2417
--- /dev/null
+++ b/antora/components/ext-secman/antora.yml
@@ -0,0 +1,6 @@
+name: ext-secman
+title: "Extensions - SecMan"
+version: master
+start_page: ROOT:about.adoc
+nav:
+- modules/ROOT/nav.adoc
diff --git a/antora/components/ext-secman/examples.csv b/antora/components/ext-secman/examples.csv
new file mode 100644
index 0000000..5d5804b
--- /dev/null
+++ b/antora/components/ext-secman/examples.csv
@@ -0,0 +1 @@
+#file,source,target
diff --git a/antora/components/extensions/modules/secman/_attributes.adoc b/antora/components/ext-secman/modules/ROOT/_attributes.adoc
similarity index 100%
rename from antora/components/extensions/modules/secman/_attributes.adoc
rename to antora/components/ext-secman/modules/ROOT/_attributes.adoc
diff --git a/antora/components/extensions/modules/secman/examples/.gitkeep b/antora/components/ext-secman/modules/ROOT/assets/attachments/.gitkeep
similarity index 100%
rename from antora/components/extensions/modules/secman/examples/.gitkeep
rename to antora/components/ext-secman/modules/ROOT/assets/attachments/.gitkeep
diff --git a/antora/components/extensions/modules/secman/assets/images/.gitkeep b/antora/components/ext-secman/modules/ROOT/assets/images/.gitkeep
similarity index 100%
rename from antora/components/extensions/modules/secman/assets/images/.gitkeep
rename to antora/components/ext-secman/modules/ROOT/assets/images/.gitkeep
diff --git a/antora/components/extensions/modules/secman/assets/attachments/.gitkeep b/antora/components/ext-secman/modules/ROOT/examples/.gitkeep
similarity index 100%
rename from antora/components/extensions/modules/secman/assets/attachments/.gitkeep
rename to antora/components/ext-secman/modules/ROOT/examples/.gitkeep
diff --git a/antora/components/ext-secman/modules/ROOT/nav.adoc b/antora/components/ext-secman/modules/ROOT/nav.adoc
new file mode 100644
index 0000000..2815342
--- /dev/null
+++ b/antora/components/ext-secman/modules/ROOT/nav.adoc
@@ -0,0 +1,2 @@
+* xref:about.adoc[About]
+
diff --git a/antora/components/extensions/modules/secman/pages/_attributes.adoc b/antora/components/ext-secman/modules/ROOT/pages/_attributes.adoc
similarity index 100%
rename from antora/components/extensions/modules/secman/pages/_attributes.adoc
rename to antora/components/ext-secman/modules/ROOT/pages/_attributes.adoc
diff --git a/antora/components/extensions/modules/secman/pages/_partials/_attributes.adoc b/antora/components/ext-secman/modules/ROOT/pages/_partials/_attributes.adoc
similarity index 100%
rename from antora/components/extensions/modules/secman/pages/_partials/_attributes.adoc
rename to antora/components/ext-secman/modules/ROOT/pages/_partials/_attributes.adoc
diff --git a/antora/components/extensions/modules/secman/pages/about.adoc b/antora/components/ext-secman/modules/ROOT/pages/about.adoc
similarity index 100%
rename from antora/components/extensions/modules/secman/pages/about.adoc
rename to antora/components/ext-secman/modules/ROOT/pages/about.adoc
diff --git a/antora/components/ext-secman/sync_examples.sh b/antora/components/ext-secman/sync_examples.sh
new file mode 100644
index 0000000..5260cd7
--- /dev/null
+++ b/antora/components/ext-secman/sync_examples.sh
@@ -0,0 +1,39 @@
+#!/usr/bin/env bash
+SCRIPT=$(readlink -f "$0")
+SCRIPTPATH=$(dirname "$SCRIPT")
+if [ $# -ne 1 ]; then
+ FILELIST=$SCRIPTPATH/examples.csv
+else
+ FILELIST=$1
+fi
+FILELISTFQN=$(readlink -f $FILELIST)
+DIRNAME=$(dirname $FILELISTFQN)
+BASENAME=$(basename $FILELISTFQN)
+
+cd $DIRNAME >/dev/null 2>&1
+cat $BASENAME | tail +2 | grep -v ^# | while read LINE
+do
+ FILE=$(echo $LINE | awk -F, '{print $1}' | awk '{$1=$1;print}')
+ F2=$(echo $LINE | awk -F, '{print $2}' | awk '{$1=$1;print}')
+ F3=$(echo $LINE | awk -F, '{print $3}' | awk '{$1=$1;print}')
+ SOURCEFQN=$DIRNAME/$F2/$FILE
+ TARGETDIR=$DIRNAME/$F3
+ TARGETFQN=$DIRNAME/$F3/$FILE
+
+ echo "SOURCEFQN: $SOURCEFQN"
+
+ if [ -f "$SOURCEFQN" ]
+ then
+
+ if [ -f "$TARGETFQN" ]
+ then
+ rm $TARGETFQN
+ fi
+ mkdir -p $TARGETDIR
+ cp $SOURCEFQN $TARGETFQN
+ else
+ echo "- does not exist ($SOURCEFQN) " >&2
+ exit 1
+ fi
+done
+cd - >/dev/null 2>&1
\ No newline at end of file
diff --git a/antora/components/extensions/antora.yml b/antora/components/extensions/antora.yml
index 12549bd..0a2127a 100644
--- a/antora/components/extensions/antora.yml
+++ b/antora/components/extensions/antora.yml
@@ -5,5 +5,4 @@ start_page: ROOT:about.adoc
nav:
- modules/ROOT/nav.adoc
- modules/specsupport/nav.adoc
-- modules/secman/nav.adoc
- modules/viewer-wicket-excel/nav.adoc
diff --git a/antora/components/extensions/modules/secman/nav.adoc b/antora/components/extensions/modules/secman/nav.adoc
deleted file mode 100644
index ff22afc..0000000
--- a/antora/components/extensions/modules/secman/nav.adoc
+++ /dev/null
@@ -1,2 +0,0 @@
-* xref:about.adoc[Security Manager]
-
diff --git a/antora/components/toc/modules/ROOT/pages/about.adoc b/antora/components/toc/modules/ROOT/pages/about.adoc
index cb4d334..b769382 100644
--- a/antora/components/toc/modules/ROOT/pages/about.adoc
+++ b/antora/components/toc/modules/ROOT/pages/about.adoc
@@ -63,7 +63,7 @@ include::_attributes.adoc[]
** xref:ext-fixtures:ROOT:about.adoc[Fixtures]
** xref:ext:specsupport:about.adoc[(BDD) Spec Support]
* Modules
-** xref:ext:secman:about.adoc[Security Manager]
+** xref:ext-secman:ROOT:about.adoc[Security Manager]
** xref:ext:viewer-wicket-excel:about.adoc[Excel Download (Wicket)]
* Values Types
** xref:ext-asciidoc:ROOT:about.adoc[Asciidoc], xref:ext-markdown:ROOT:about.adoc[Markdown]
diff --git a/antora/components/ug/modules/vw/pages/features/user-registration.adoc b/antora/components/ug/modules/vw/pages/features/user-registration.adoc
index c079cd0..bee520d 100644
--- a/antora/components/ug/modules/vw/pages/features/user-registration.adoc
+++ b/antora/components/ug/modules/vw/pages/features/user-registration.adoc
@@ -20,7 +20,7 @@ To support this the framework requires three services to be registered and confi
* the xref:rg:svc:integration-api/EmailService.adoc[email service], that is used by the email notification service to actually send the email.
The Apache Isis core framework provides a default implementation of both the email notification service and the email service.
-The xref:ext:secman:about.adoc[Security Manager] extension provides a partial implementation of xref:rg:svc:persistence-layer-spi/UserRegistrationService.adoc[user registration service] that you can complete for your own applications.
+The xref:ext-secman:ROOT:about.adoc[Security Manager] extension provides a partial implementation of xref:rg:svc:persistence-layer-spi/UserRegistrationService.adoc[user registration service] that you can complete for your own applications.
// TODO: v2: search for references of 'security module' because this is now available as the 'secman' extension, and reference the extensions doc component.
diff --git a/site.yml b/site.yml
index 15a61ee..6efd4d2 100644
--- a/site.yml
+++ b/site.yml
@@ -28,6 +28,12 @@ content:
start_path: antora/components/ext-markdown
- url: .
branches: HEAD
+ start_path: antora/components/ext-fixtures
+ - url: .
+ branches: HEAD
+ start_path: antora/components/ext-secman
+ - url: .
+ branches: HEAD
start_path: examples/apps/demo/_adoc
- url: .
branches: HEAD