From 7435c0666122aaa8401da2a9dae90bf280958193 Mon Sep 17 00:00:00 2001 From: James W <26191568+jgwoolley@users.noreply.github.com> Date: Tue, 7 Jan 2025 16:20:09 -0500 Subject: [PATCH] Added README.asciidoc to github pages --- .gitignore | 6 +++--- README.asciidoc | 2 ++ build.sh | 10 ++++++---- docs.sh | 22 +++++++++++----------- pages.html | 14 -------------- public/index.html | 22 ++++++++++++++++++++++ 6 files changed, 44 insertions(+), 32 deletions(-) delete mode 100644 pages.html create mode 100644 public/index.html diff --git a/.gitignore b/.gitignore index 4b00399..d0e3c65 100644 --- a/.gitignore +++ b/.gitignore @@ -3,7 +3,7 @@ .project .settings/ dependency-reduced-pom.xml -/target/ +target/ maven.zip -/com -public +com/ +dist/ diff --git a/README.asciidoc b/README.asciidoc index 93e59b1..62e8147 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -53,6 +53,8 @@ Usage: nf2t package -i= -o= [-v=] == TODO +* Add GitHub Specific sauce +* Remove progress bars from maven. * See link:https://github.com/remkop/picocli/tree/main/picocli-codegen#generate-documentation[] * FileSystem or InputStreams to parse? * Review the standard implementation, make sure this implementation is as similiar as possible: link:https://github.com/apache/nifi/blob/main/nifi-commons/nifi-flowfile-packager/src/main/java/org/apache/nifi/util/Unpackage.java[]. diff --git a/build.sh b/build.sh index 8b29983..1ee4e7a 100644 --- a/build.sh +++ b/build.sh @@ -51,11 +51,13 @@ cp "./target/${prefix_name}.jar" "$artifact_path" for file in "$artifact_path"/*; do echo "$file" + md5sum $file | cut -d ' ' -f 1 > "$file.md5" + sha1sum $file | cut -d ' ' -f 1 > "$file.sha1" + sha256sum $file | cut -d ' ' -f 1 > "$file.sha256" + sha512sum $file | cut -d ' ' -f 1 > "$file.sha512" + if gpg --yes --local-user $GPG_USER -ab $file; then - md5sum $file | cut -d ' ' -f 1 > "$file.md5" - sha1sum $file | cut -d ' ' -f 1 > "$file.sha1" - sha256sum $file | cut -d ' ' -f 1 > "$file.sha256" - sha512sum $file | cut -d ' ' -f 1 > "$file.sha512" + fi done diff --git a/docs.sh b/docs.sh index 43f5594..1dd8e25 100644 --- a/docs.sh +++ b/docs.sh @@ -14,22 +14,22 @@ rm *.mvnhelp # Create JavaDocs -mkdir --parents ./public/ -rm -rf ./public/* +mkdir --parents ./dist/ +rm -rf ./dist/ -mkdir ./public/javadocs/ -mkdir ./public/man/ +cp -a ./public/ ./dist/ +mkdir --parents ./dist/javadocs/ +mkdir --parents ./dist/man/ +mkdir --parents ./dist/readme/ # Create Variables prefix_name="${artifactId}-${version}" -cp pages.html public/index.html -cp maven.zip public/ -unzip "./target/${prefix_name}-javadoc.jar" -d public/javadocs +cp maven.zip ./dist/ +unzip "./target/${prefix_name}-javadoc.jar" -d ./dist/javadocs -java -jar "./target/${prefix_name}.jar" gen-manpage -d public/man/ +java -jar "./target/${prefix_name}.jar" gen-manpage -d ./dist/man/ -asciidoctor --source-dir "public/man" "public/man/*.adoc" - -echo '

Redirect

' >> "public/man/index.html" \ No newline at end of file +asciidoctor --source-dir "./dist/man" "./dist/man/*.adoc" +asciidoctor README.asciidoc --out-file "./dist/readme/index.html" \ No newline at end of file diff --git a/pages.html b/pages.html deleted file mode 100644 index 84e5d7d..0000000 --- a/pages.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - Nf2t CLI - - -

Test

- - - \ No newline at end of file diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..76eb1b8 --- /dev/null +++ b/public/index.html @@ -0,0 +1,22 @@ + + + + Nf2t CLI + + + + + + + + + +

Nf2t CLI

+ + + \ No newline at end of file