diff --git a/.github/workflows/publish-gh-pages.yml b/.github/workflows/publish-gh-pages.yml index 9d8f6ec..0ac1aa7 100644 --- a/.github/workflows/publish-gh-pages.yml +++ b/.github/workflows/publish-gh-pages.yml @@ -114,7 +114,7 @@ jobs: - name: Build slides run: asciidoctor-revealjs -v -D slides -o index.html fcs-endpoint-dev-slides/index.adoc - + - name: Copy slide resources run: | mv -v fcs-endpoint-dev-slides/images slides/ @@ -126,9 +126,35 @@ jobs: name: fcs-endpoint-dev-slides path: slides/* + fcs-endpoint-dev-slides-as-doc: + runs-on: ubuntu-latest + container: asciidoctor/docker-asciidoctor + + steps: + - uses: actions/checkout@v4 + + - name: Build HTML + run: asciidoctor -v -D docs -a data-uri --backend=html5 -o fcs-endpoint-dev-slides.html fcs-endpoint-dev-slides/index.adoc + + #- name: Build PDF + # run: asciidoctor-pdf -v -D docs -o fcs-endpoint-dev-slides.pdf fcs-endpoint-dev-slides/index.adoc + + - name: Store results + uses: actions/upload-artifact@v4 + with: + name: fcs-endpoint-dev-slides-docs + path: doc/* + publish: runs-on: ubuntu-latest - needs: [ fcs-aai, fcs-core-1-0, fcs-core-2-0, fcs-dataviews-1-0, fcs-endpoint-dev-slides ] + needs: + [ + fcs-aai, + fcs-core-1-0, + fcs-core-2-0, + fcs-dataviews-1-0, + fcs-endpoint-dev-slides, + ] steps: - uses: actions/checkout@v4 diff --git a/fcs-endpoint-dev-slides/index.adoc b/fcs-endpoint-dev-slides/index.adoc index be989dc..d57adaf 100644 --- a/fcs-endpoint-dev-slides/index.adoc +++ b/fcs-endpoint-dev-slides/index.adoc @@ -1,19 +1,25 @@ = FCS Endpoint Development Tutorial :author: Erik Körner :date: 2024-03-11 +// revealjs :revealjsdir: reveal.js :revealjs_theme: white :revealjs_width: 1408 :revealjs_height: 892 :revealjs_slideNumber: h.v // :revealjs_hash: true -:source-highlighter: highlight.js +// source code ifdef::backend-revealjs[] +:source-highlighter: highlight.js // :highlightjsdir: -// https://github.com/asciidoctor/asciidoctor-reveal.js/blob/cbe2ac7f72877050ce15ee4a38fd54ca91590a78/lib/asciidoctor-revealjs/highlightjs.rb#L62 +// see https://github.com/asciidoctor/asciidoctor-reveal.js/blob/cbe2ac7f72877050ce15ee4a38fd54ca91590a78/lib/asciidoctor-revealjs/highlightjs.rb#L62 :highlightjs-theme: reveal.js/plugin/highlight/magula.css :highlightjs-languages: xml,python,java,json,yaml,isbl,csharp,wren,x86asm endif::[] +ifndef::backend-revealjs[] +:source-highlighter: rouge +:rouge-style: igor_pro +endif::[] :imagesdir: images :customcss: css/presentation.css :title-slide-background-image: fcs-render-uk.png