From 37d0161856b90b0c8591e51e10e1c7151e382e2e Mon Sep 17 00:00:00 2001 From: janos erdos Date: Sun, 19 Nov 2023 13:29:51 +0100 Subject: [PATCH] feat: also publish javadoc --- .github/workflows/gh-pages.yml | 8 +++++--- .gitignore | 3 ++- .../io/github/erdos/stencil/functions/package-info.java | 7 +------ 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index bba485e5..f1623378 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -14,11 +14,9 @@ permissions: pages: write id-token: write -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. concurrency: group: "pages" - cancel-in-progress: false + cancel-in-progress: true jobs: # Build job @@ -34,6 +32,10 @@ jobs: with: source: ./docs destination: ./_site + - name: Compile uberjar + run: lein uberjar + - name: Run javadoc tool + run: javadoc -d _site/javadoc --source-path ./java-src -cp target/stencil-core-*-standalone.jar -subpackages io.github.erdos.stencil - name: Upload artifact uses: actions/upload-pages-artifact@v2 diff --git a/.gitignore b/.gitignore index 60946993..e466c5e1 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,5 @@ junit.xml .DS_Store .lsp/ *.jfr -.clj-kondo/ \ No newline at end of file +.clj-kondo/ +/_site/ \ No newline at end of file diff --git a/java-src/io/github/erdos/stencil/functions/package-info.java b/java-src/io/github/erdos/stencil/functions/package-info.java index f5202c4a..f8c0e177 100644 --- a/java-src/io/github/erdos/stencil/functions/package-info.java +++ b/java-src/io/github/erdos/stencil/functions/package-info.java @@ -1,10 +1,5 @@ /** - * General purpose functions. - *

- * Function implementations come here. - * - * - *

Custom Functions

+ *

Custom Functions

*

* It is possible to define custom functions on the host code and invoke them from within the template files. * Custom functions must implement the {@link io.github.erdos.stencil.functions.Function} interface and be registered