Skip to content

Commit 49cbb28

Browse files
committed
add cms master pdf to website
1 parent c5f6e2d commit 49cbb28

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

.github/workflows/plot_new_data.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,23 @@ jobs:
105105
for file in output/*.html; do
106106
fname=$(basename "$file")
107107
108-
# skip index.html itself
109108
if [ "$fname" != "index.html" ]; then
110109
echo "<li><a href='$fname'>$fname</a></li>" >> output/index.html
111110
fi
112111
done
113112
114-
echo "</ul></body></html>" >> output/index.html
113+
echo "</ul>" >> output/index.html
115114
115+
# ---- PDF viewer embed ----
116+
if [ -f PSPL_CMS_MASTER_11012025.pdf ]; then
117+
echo "<h2>CMS Master P&ID</h2>" >> output/index.html
118+
echo "<iframe src='PSPL_CMS_MASTER_11012025.pdf' width='100%' height='800px'></iframe>" >> output/index.html
119+
else
120+
echo "<p>No PDF found.</p>" >> output/index.html
121+
fi
122+
# --------------------------
123+
124+
echo "</body></html>" >> output/index.html
116125
117126
118127
- name: Upload artifact for GitHub Pages

PSPL_CMS_MASTER_11012025.pdf

264 KB
Binary file not shown.
File renamed without changes.

0 commit comments

Comments
 (0)