Skip to content

Commit 9c5c690

Browse files
committed
changed the index.html
1 parent a85be77 commit 9c5c690

File tree

2 files changed

+56
-14
lines changed

2 files changed

+56
-14
lines changed

.github/workflows/deploy.yml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,35 +21,48 @@ jobs:
2121

2222
- name: Copy umbrella content
2323
run: |
24-
mkdir -p build/site
2524
cp -v index.html build/site/
2625
cp -v .nojekyll build/site/
2726
cp -v CNAME build/site/
28-
ls -l build/site/
27+
ls -la build/site/
28+
29+
- name: Fix index.html URLs
30+
run: |
31+
# Update relative URLs to absolute ones
32+
sed -i 's|href="/aas-specifications/|href="./aas-specifications/|g' build/site/index.html
33+
sed -i 's|href="/idta-submodel-templates/|href="./idta-submodel-templates/|g' build/site/index.html
34+
echo "Modified index.html content:"
35+
cat build/site/index.html
2936
3037
- name: Download AAS Specifications site
3138
run: |
3239
mkdir -p build/site/aas-specifications
33-
wget -q -r -nH --cut-dirs=1 --no-parent --reject="index.html*" https://admin-shell-io.github.io/aas-specifications/
40+
wget -q -r -nH --cut-dirs=1 --no-parent --reject="index.html*" -P aas-specifications/ https://admin-shell-io.github.io/aas-specifications/
3441
cp -r aas-specifications/* build/site/aas-specifications/ || true
42+
echo "Contents of aas-specifications directory:"
43+
ls -la aas-specifications/ || echo "No files found"
3544
3645
- name: Download Submodel Templates site
3746
run: |
3847
mkdir -p build/site/idta-submodel-templates
39-
wget -q -r -nH --cut-dirs=1 --no-parent --reject="index.html*" https://admin-shell-io.github.io/idta-submodel-templates/
48+
wget -q -r -nH --cut-dirs=1 --no-parent --reject="index.html*" -P idta-submodel-templates/ https://admin-shell-io.github.io/idta-submodel-templates/
4049
cp -r idta-submodel-templates/* build/site/idta-submodel-templates/ || true
50+
echo "Contents of idta-submodel-templates directory:"
51+
ls -la idta-submodel-templates/ || echo "No files found"
4152
4253
- name: List deployed files
4354
run: |
44-
echo "Contents of build/site:"
45-
ls -lR build/site/
46-
echo "Contents of build/site/index.html:"
47-
cat build/site/index.html
55+
echo "Contents of build/site root:"
56+
ls -la build/site/
57+
echo "Contents of aas-specifications directory:"
58+
ls -la build/site/aas-specifications/ || echo "Directory empty or not found"
59+
echo "Contents of idta-submodel-templates directory:"
60+
ls -la build/site/idta-submodel-templates/ || echo "Directory empty or not found"
4861
4962
- name: Deploy to GitHub Pages
5063
uses: JamesIves/github-pages-deploy-action@v4
5164
with:
5265
folder: build/site
5366
branch: gh-pages
5467
clean: true
55-
force: true
68+
force: true

index.html

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,42 @@
11
<!-- index.html -->
22
<!DOCTYPE html>
33
<html>
4-
<head><meta charset="utf-8"><title>IDTA AAS Specification Documentation</title></head>
4+
<head>
5+
<meta charset="utf-8">
6+
<title>IDTA AAS Specification Documentation</title>
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<style>
9+
body {
10+
font-family: Arial, sans-serif;
11+
line-height: 1.6;
12+
max-width: 800px;
13+
margin: 0 auto;
14+
padding: 20px;
15+
}
16+
h1 {
17+
border-bottom: 1px solid #ccc;
18+
padding-bottom: 10px;
19+
}
20+
ul {
21+
padding-left: 20px;
22+
}
23+
li {
24+
margin-bottom: 10px;
25+
}
26+
a {
27+
color: #0366d6;
28+
text-decoration: none;
29+
}
30+
a:hover {
31+
text-decoration: underline;
32+
}
33+
</style>
34+
</head>
535
<body>
636
<h1>IDTA AAS Specification Documentation</h1>
7-
<h2 style="color:red;">THIS IS A TEST - SHOULD BE VISIBLE</h2>
837
<ul>
9-
<li><a href="/aas-specifications/">AAS Specifications</a></li>
10-
<li><a href="/idta-submodel-templates/">Submodel Templates</a></li>
38+
<li><a href="./aas-specifications/">AAS Specifications</a></li>
39+
<li><a href="./idta-submodel-templates/">Submodel Templates</a></li>
1140
</ul>
1241
</body>
13-
</html>
42+
</html>

0 commit comments

Comments
 (0)