From 7543b2d9dce422df9eb02a5a65a60d1fb29a27fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=80ngel=20Oll=C3=A9=20Bl=C3=A1zquez?= Date: Sun, 19 Nov 2023 23:37:43 +0100 Subject: [PATCH] Add Antora --- .github/workflows/publish.yml | 40 ++++++++++++++++++++++++++++++++ .gitignore | 43 +++++++++++++++++++++++++++++++++++ antora-playbook.yml | 21 +++++++++++++++++ code/.gitkeep | 0 4 files changed, 104 insertions(+) create mode 100644 .github/workflows/publish.yml create mode 100644 .gitignore create mode 100644 antora-playbook.yml create mode 100644 code/.gitkeep diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..0f31034 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,40 @@ +name: Publish to GitHub Pages +on: + push: + branches: [main] + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: +concurrency: + group: pages + cancel-in-progress: true +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write +jobs: + build: + runs-on: ubuntu-latest + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' + - name: Install Antora + run: npm i antora + - name: Generate Site + run: npx antora antora-playbook.yml + - name: Setup Pages + uses: actions/configure-pages@v3 + - name: Upload artifact + uses: actions/upload-pages-artifact@v2 + with: + path: build/site + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2cc48aa --- /dev/null +++ b/.gitignore @@ -0,0 +1,43 @@ +target/ +!.mvn/wrapper/maven-wrapper.jar +audit.log +.cache/ +*.log + +docs/ +gh-pages/ +dependency-reduced-pom.xml +svm.jar + +### STS ### +.apt_generated +.classpath +.factorypath +.project +.settings +.springBeans + +### IntelliJ IDEA ### +.idea +*.iws +*.iml +*.ipr + +### NetBeans ### +nbproject/private/ +build/ +nbbuild/ +dist/ +nbdist/ +.nb-gradle/ + +.DS_Store +.vscode +istio-1.1.1 +firebase* +yarn* +package* +!package.json +node_modules +.firebaserc +.firebase diff --git a/antora-playbook.yml b/antora-playbook.yml new file mode 100644 index 0000000..b5c676e --- /dev/null +++ b/antora-playbook.yml @@ -0,0 +1,21 @@ +site: + title: Mastering Web Troubleshooting + url: https://olleb.com/troubleshooting-workshop + start_page: troubleshooting-workshop::index.adoc +content: + sources: + - url: https://github.com/aolle/troubleshooting-workshop.git + branches: HEAD +# branches: [main, v2.0, v1.0] + edit_url: false + start_path: docs +asciidoc: + attributes: + experimental: '' + idprefix: '' + idseparator: '-' + page-pagination: '' +ui: + bundle: + url: https://gitlab.com/antora/antora-ui-default/-/jobs/artifacts/HEAD/raw/build/ui-bundle.zip?job=bundle-stable + snapshot: true diff --git a/code/.gitkeep b/code/.gitkeep new file mode 100644 index 0000000..e69de29