From d4d412d73949393520cb90383337f40e3ac3bcb7 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Wed, 15 Mar 2017 13:35:53 +0100 Subject: [PATCH] Added script to build product guide --- README.md | 4 ++++ authorization_services/build.sh => build-product.sh | 4 +++- getting_started/build.sh | 7 ------- securing_apps/build.sh | 7 ------- server_admin/build.sh | 7 ------- server_development/build.sh | 7 ------- server_installation/build.sh | 7 ------- 7 files changed, 7 insertions(+), 36 deletions(-) rename authorization_services/build.sh => build-product.sh (71%) mode change 100755 => 100644 delete mode 100755 getting_started/build.sh delete mode 100755 securing_apps/build.sh delete mode 100755 server_admin/build.sh delete mode 100755 server_development/build.sh delete mode 100755 server_installation/build.sh diff --git a/README.md b/README.md index 1367c97362..72b8754d29 100755 --- a/README.md +++ b/README.md @@ -42,6 +42,10 @@ To build the documentation for RH-SSO go into the directory of the specific guid cd target asciidoctor master.adoc +On Linux you can also run build-product.sh DIR. For example: + + ./build-product.sh server_admin + You can then view the documentation by opening server_admin/target/master.html This will not create documentation that looks exactly as the official Red Hat Single Sign-On documentation, but the content will be the same. diff --git a/authorization_services/build.sh b/build-product.sh old mode 100755 new mode 100644 similarity index 71% rename from authorization_services/build.sh rename to build-product.sh index fc1e19f7fb..5ae14d81bf --- a/authorization_services/build.sh +++ b/build-product.sh @@ -1,7 +1,9 @@ #!/bin/bash -cd $(readlink -f `dirname $0`) +GUIDE=$1 +cd $GUIDE python gitlab-conversion.py cd target asciidoctor master.adoc + diff --git a/getting_started/build.sh b/getting_started/build.sh deleted file mode 100755 index fc1e19f7fb..0000000000 --- a/getting_started/build.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -cd $(readlink -f `dirname $0`) - -python gitlab-conversion.py -cd target -asciidoctor master.adoc diff --git a/securing_apps/build.sh b/securing_apps/build.sh deleted file mode 100755 index fc1e19f7fb..0000000000 --- a/securing_apps/build.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -cd $(readlink -f `dirname $0`) - -python gitlab-conversion.py -cd target -asciidoctor master.adoc diff --git a/server_admin/build.sh b/server_admin/build.sh deleted file mode 100755 index fc1e19f7fb..0000000000 --- a/server_admin/build.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -cd $(readlink -f `dirname $0`) - -python gitlab-conversion.py -cd target -asciidoctor master.adoc diff --git a/server_development/build.sh b/server_development/build.sh deleted file mode 100755 index fc1e19f7fb..0000000000 --- a/server_development/build.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -cd $(readlink -f `dirname $0`) - -python gitlab-conversion.py -cd target -asciidoctor master.adoc diff --git a/server_installation/build.sh b/server_installation/build.sh deleted file mode 100755 index fc1e19f7fb..0000000000 --- a/server_installation/build.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash - -cd $(readlink -f `dirname $0`) - -python gitlab-conversion.py -cd target -asciidoctor master.adoc