Skip to content

Commit

Permalink
feat: add script
Browse files Browse the repository at this point in the history
  • Loading branch information
arnoweiss committed Aug 23, 2024
1 parent 7d595ca commit cd27b60
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/autopublish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
- name: Inject md to html
run: ./scripts/replace.sh
- uses: w3c/spec-prod@v2
- uses: actions/upload-pages-artifact@v3
with:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea/
.idea/
index.html
17 changes: 17 additions & 0 deletions scripts/replace.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
cp scripts/respec-template.html index.html
index=`cat index.html`
top=`cat specifications/tx.dataspace.topology.md`
topph="THIS IS THE PLACEHOLDER FOR THE DATASPACE TOPOLOGY"
base=`cat specifications/identity.protocol.base.md`
baseph="THIS IS THE PLACEHOLDER FOR THE BASE PROTOCOL"
pres=`cat specifications/verifiable.presentation.protocol.md`
presph="THIS IS THE PLACEHOLDER FOR THE PRESENTATION PROTOCOL"
iss=`cat specifications/credential.issuance.protocol.md`
issph="THIS IS THE PLACEHOLDER FOR THE ISSUANCE PROTOCOL"

index="${index/$topph/"$top"}"
index="${index/$baseph/"$base"}"
index="${index/$presph/"$pres"}"
index="${index/$issph/"$iss"}"

echo "$index" > index.html

0 comments on commit cd27b60

Please sign in to comment.