Skip to content

Commit 3503379

Browse files
fix: resolve scheduled build startup failure and missing CSS in guides (#251)
Add permissions block to scheduled-build.yml to grant security-events and contents write access required by the reusable build.yml workflow. The repository default is read-only, causing startup_failure on every nightly run since the workflow was created. Inline custom CSS in site.xml instead of referencing an external file. The relative path ./css/custom.css in the CDATA head block resolved incorrectly for pages in subdirectories like guides/.
1 parent 0bba7fa commit 3503379

3 files changed

Lines changed: 29 additions & 30 deletions

File tree

.github/workflows/scheduled-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
# Nightly build at 3:00 AM UTC (after metaschema-java at 2:00 AM)
55
- cron: '0 3 * * *'
66
workflow_dispatch:
7+
permissions:
8+
actions: read
9+
contents: write
10+
security-events: write
711
jobs:
812
nightly:
913
uses: ./.github/workflows/build.yml

src/site/resources/css/custom.css

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

src/site/site.xml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,31 @@
4343
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
4444
<meta http-equiv="Content-Type" content="text/html; charset=${outputEncoding}" />
4545
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.1/css/all.css" crossorigin="anonymous" />
46-
<link rel="stylesheet" href="./css/custom.css" />
46+
<style>
47+
a.externalLink[href^=https],a.externalLink[href^=http] {
48+
background: none;
49+
padding-right: 0;
50+
}
51+
a.externalLink[href^=https]::after,a.externalLink[href^=http]::after {
52+
font-family: 'Font Awesome 5 Free';
53+
display: inline-block;
54+
content: "\f35d";
55+
font-size: .5rem;
56+
font-weight: 900;
57+
margin-left: 3px;
58+
}
59+
footer {
60+
text-align: center;
61+
padding-bottom: 10px;
62+
}
63+
code {
64+
color: #5f879b;
65+
}
66+
/* Fix table header alignment - flexmark doesn't apply alignment to th cells */
67+
.table th, table th {
68+
text-align: left !important;
69+
}
70+
</style>
4771
]]>
4872
</head>
4973

0 commit comments

Comments
 (0)