Skip to content

Commit 4364b7b

Browse files
authored
Merge pull request #616 from input-output-hk/host-leios-design
Publish leios-design.pdf onto website
2 parents 9bea6aa + 0dd8fe4 commit 4364b7b

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/docs.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- "**/*.d2"
77
- "site/**"
88
- "ui/**"
9+
- ".github/workflows/docs.yaml"
910
push:
1011
branches:
1112
- main
@@ -160,9 +161,33 @@ jobs:
160161
name: visualizer
161162
path: site/static/visualizer
162163

164+
- name: Find leios design build artifact
165+
id: leios-design-workflow
166+
uses: actions/github-script@v7
167+
with:
168+
script: |
169+
let res = await github.rest.actions.listWorkflowRuns({
170+
owner: context.repo.owner,
171+
repo: context.repo.repo,
172+
workflow_id: 'leios-design.yaml',
173+
branch: 'main',
174+
status: 'success'
175+
});
176+
return res.data.workflow_runs[0].id;
177+
178+
- name: 📥 Download built leios design
179+
uses: actions/download-artifact@v4
180+
with:
181+
github-token: ${{ secrets.GITHUB_TOKEN || github.token }}
182+
run-id: ${{steps.leios-design-workflow.outputs.result}}
183+
pattern: leios-design-pdf*
184+
merge-multiple: true
185+
path: site/static
186+
163187
- name: 🏗️ Build Docusaurus site
164188
working-directory: site
165189
run: |
190+
find static
166191
npm run build
167192
168193
- name: Verify Docusaurus build

site/sidebars.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,19 @@ const sidebars: SidebarsConfig = {
2121
"development/throughput-simulation",
2222
"development/simulation-demonstration",
2323
"development/cost-estimator",
24-
"development/monthly-reviews",
2524
{
2625
type: "link",
2726
href: "https://leios.cardano-scaling.org/visualizer",
2827
label: "Visualizer",
2928
},
3029
],
3130
},
31+
"development/monthly-reviews",
32+
{
33+
type: "link",
34+
href: "https://leios.cardano-scaling.org/leios-design.pdf",
35+
label: "Technical Design",
36+
},
3237
],
3338
};
3439

0 commit comments

Comments
 (0)