Skip to content

Commit 5e3d04b

Browse files
committed
updated antora playbook
1 parent cd6e61a commit 5e3d04b

File tree

3 files changed

+16
-42
lines changed

3 files changed

+16
-42
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build & Deploy Combined Docs
1+
name: Deploy Combined Docs
22

33
on:
44
push:
@@ -9,44 +9,21 @@ permissions:
99
contents: write
1010

1111
jobs:
12-
build-and-deploy:
12+
deploy:
1313
runs-on: ubuntu-latest
1414
steps:
15-
# 1. Checkout umbrella repo
1615
- uses: actions/checkout@v3
1716
with:
1817
fetch-depth: 0
1918

20-
# 2. Checkout AAS Specs source (main branch)
21-
- name: Checkout AAS Specs source
22-
uses: actions/checkout@v3
23-
with:
24-
repository: admin-shell-io/aas-specifications
25-
path: aas-specifications
26-
27-
# 3. Checkout Submodel Templates source (main branch)
28-
- name: Checkout Submodel Templates source
29-
uses: actions/checkout@v3
30-
with:
31-
repository: admin-shell-io/idta-submodel-templates
32-
path: idta-submodel-templates
33-
34-
# 4. Set up Node.js and install Antora toolchain + extensions
35-
- name: Setup Node.js
36-
uses: actions/setup-node@v3
37-
with:
38-
node-version: 18
39-
cache: 'npm'
40-
41-
- name: Install dependencies
42-
run: npm ci
19+
- name: Create site directory
20+
run: mkdir -p build/site
4321

44-
# 5. Build the site using the umbrella playbook
45-
- name: Build site
22+
- name: Copy umbrella content
4623
run: |
47-
npx antora antora-playbook.yml --to-dir=build/site
24+
cp -r index.html build/site/
25+
cp -r .nojekyll build/site/
4826
49-
# 6. Deploy to GitHub Pages
5027
- name: Deploy to GitHub Pages
5128
uses: JamesIves/github-pages-deploy-action@v4
5229
with:

antora-playbook.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,26 @@
11
site:
22
title: Industrial Digital Twin Docs
33
url: https://industrialdigitaltwin.io
4-
start_page: index::index.adoc # if using AsciiDoc for your homepage
4+
start_page: index::index.adoc
55

66
content:
77
sources:
8-
# 1) This umbrella repo (for your dashboard/index.adoc)
98
- url: .
109
branches: [ HEAD ]
1110
start_path: .
12-
# 2) AAS Specs module
13-
- url: https://github.com/admin-shell-io/aas-specifications
14-
branches: [ main ]
11+
- url: https://admin-shell-io.github.io/aas-specifications
12+
branches: [ HEAD ]
13+
start_path: .
14+
- url: https://admin-shell-io.github.io/idta-submodel-templates
15+
branches: [ HEAD ]
1516
start_path: .
16-
# 3) Submodel Templates module
17-
- url: https://github.com/admin-shell-io/idta-submodel-templates
18-
branches: [ main ]
19-
start_path: published/*/*/*/docs
2017

2118
ui:
2219
bundle:
2320
url: https://github.com/admin-shell-io/aas-specs-antora-ui/releases/latest/download/ui-bundle.zip
2421
snapshot: true
2522
supplemental_files:
26-
- path: .nojekyll # preserve nested folders on GitHub Pages
23+
- path: .nojekyll
2724

2825
runtime:
2926
fetch: true

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<!-- index.html -->
22
<!DOCTYPE html>
33
<html>
4-
<head><meta charset="utf-8"><title>Industrial Digital Twin Docs</title></head>
4+
<head><meta charset="utf-8"><title>IDTA AAS Specification Documentation</title></head>
55
<body>
6-
<h1>Industrial Digital Twin Documentation</h1>
6+
<h1>IDTA AAS Specification Documentation</h1>
77
<ul>
88
<li><a href="/aas-specifications/index/home/index.html">AAS Specifications</a></li>
99
<li><a href="/idta-submodel-templatesindex/home/index.html">Submodel Templates</a></li>

0 commit comments

Comments
 (0)