From cb1f979263a6654c5e6bb275e3df236e8bd20055 Mon Sep 17 00:00:00 2001 From: Diogo Nunes Date: Sun, 29 May 2022 18:09:57 +0100 Subject: [PATCH] feat: script to update javadoc --- .github/RUNBOOK.md | 4 +--- .github/update-javadoc.sh | 6 ++++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100755 .github/update-javadoc.sh diff --git a/.github/RUNBOOK.md b/.github/RUNBOOK.md index e7a95f4..de3ce0f 100644 --- a/.github/RUNBOOK.md +++ b/.github/RUNBOOK.md @@ -25,9 +25,7 @@ How to do stuff ## Generate Javadoc ```sh -mvn javadoc:javadoc -rm -r docs -cp -R target/site/apidocs docs +./.github/update-javadoc.sh git add . git commit -m "doc: update javadoc to latest version" ``` diff --git a/.github/update-javadoc.sh b/.github/update-javadoc.sh new file mode 100755 index 0000000..6acfd2e --- /dev/null +++ b/.github/update-javadoc.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +mvn javadoc:javadoc +rm -r docs +cp -R target/site/apidocs docs +open docs/index.html \ No newline at end of file