Skip to content

Commit d70637b

Browse files
authored
Use Modelica theme (#20)
1 parent bace3aa commit d70637b

9 files changed

Lines changed: 1179 additions & 755 deletions

File tree

.github/workflows/build-ls-ref.yml

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@ name: Build Layered Standard References
33
on:
44
push:
55
branches-ignore: [ 'temp/*' ]
6-
tags:
7-
- '*'
6+
tags: ['*']
87
pull_request:
98
branches: [ main ]
109

1110
jobs:
12-
build-ls-xcp:
13-
name: Build Layered Standard References
11+
build-ls-ref:
1412

1513
runs-on: ubuntu-24.04
1614

1715
steps:
18-
- name: checkout
19-
uses: actions/checkout@v4
16+
- name: Checkout
17+
uses: actions/checkout@v4.1.7
18+
with:
19+
submodules: recursive
20+
2021
- name: Generate revnumber
2122
run: |
2223
[[ $GITHUB_REF_TYPE == "tag" ]] && REVNUMBER=${GITHUB_REF:11} || REVNUMBER=${GITHUB_SHA:0:7}
@@ -25,26 +26,28 @@ jobs:
2526
echo GITHUB_REF: $GITHUB_REF
2627
echo REVNUMBER: $REVNUMBER
2728
echo "REVNUMBER=$REVNUMBER" >> $GITHUB_ENV
28-
- name: Create build directory
29-
run: |
30-
mkdir -p build/schema
31-
mkdir -p build/images
32-
- name: build layered standard References
29+
30+
- name: Generate HTML
3331
uses: avattathil/asciidoctor-action@master
3432
with:
35-
program: "asciidoctor -D build --backend=html5 --attribute=revnumber=${{ env.REVNUMBER }} --attribute=revdate=$(date +%F) docs/index.adoc"
36-
- name: Copy resources
37-
run: |
38-
cp LICENSE.txt build
39-
cp schema/*.xsd build/schema
40-
cp docs/images/favicon.ico build/images
41-
cp docs/images/*.svg build/images
42-
- name: archive layered standard References
43-
uses: actions/upload-artifact@v4
33+
program: asciidoctor --attribute=revnumber=${{ env.REVNUMBER }} --attribute=revdate=$(date +%F) docs/index.adoc
34+
35+
- name: Copy license
36+
run: cp LICENSE.txt docs
37+
38+
- name: Create ZIP archive
39+
uses: actions/upload-artifact@v5
4440
with:
45-
name: FMI-LS-Ref
46-
path: build/*
41+
name: FMI-LS-REF
42+
path: |
43+
docs/index.html
44+
docs/LICENSE.txt
45+
docs/images/*.svg
46+
docs/theme/css/*.css
47+
docs/theme/images/*.svg
48+
docs/theme/js/*.js
4749
if-no-files-found: error
50+
4851
- name: extract branch name
4952
id: extract_branch
5053
shell: bash

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "docs/theme"]
2+
path = docs/theme
3+
url = git@github.com:modelica/ma-asciidoctor-theme.git

docs/docinfo.html

Lines changed: 0 additions & 102 deletions
This file was deleted.

0 commit comments

Comments
 (0)