Skip to content

Commit

Permalink
relaunch with antora version from materials
Browse files Browse the repository at this point in the history
  • Loading branch information
jstaerk committed Mar 21, 2024
1 parent 70558de commit b4bf7a3
Show file tree
Hide file tree
Showing 84 changed files with 7,670 additions and 65 deletions.
51 changes: 51 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Publish to GitHub Pages with Lunr Search Extension
on:
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: github-pages
cancel-in-progress: false
# 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: Configure Pages
uses: actions/configure-pages@v3
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Install Antora with the Antora Lunr Extension
run: npm i antora @antora/lunr-extension
- name: Generate Site
run: npx antora docs-site/antora-playbook.yml
- name: Zip Docs
uses: montudor/action-zip@v1
with:
args: zip -qq -r docs.zip docs-site/build/site
- name: Upload Zip
id: artifact-upload-step
uses: actions/upload-artifact@v4
with:
path: docs.zip
- name: Use URL for something
run: find docs-site/build/site/ \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's|\[\[Download\]\]|${{ steps.artifact-upload-step.outputs.artifact-url }}|g'
- name: Upload Artifacts
uses: actions/upload-pages-artifact@v2
with:
path: docs-site/build/site
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
docs-site/build/
docs-site/node_modules/
.idea
Empty file added .nojekyll
Empty file.
65 changes: 0 additions & 65 deletions README.md

This file was deleted.

10 changes: 10 additions & 0 deletions antora.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name: e-invoicing
title: e-invoicing
version: 1.0.0
start_page: index.adoc
asciidoc:
attributes:
source-language: asciidoc@
table-caption: false
nav:
- modules/ROOT/nav.adoc
20 changes: 20 additions & 0 deletions docs-site/antora-playbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
site:
title: ZUGFeRD Info
start_page: e-invoicing::index.adoc
content:
sources:
- url: https://github.com/ZUGFeRD/ZUGFeRD.github.io.git
branches: HEAD
ui:
bundle:
url: https://github.com/ZUGFeRD/ZUGFeRD.github.io/raw/main/docs-site/ui-bundle.zip
snapshot: true
supplemental_files:
- path: ui.yml
contents: |
static_files:
- .nojekyll
- path: .nojekyll
antora:
extensions:
- require: '@antora/lunr-extension'
Loading

0 comments on commit b4bf7a3

Please sign in to comment.