From 22b1e4fa4f34253f1091d3568db80d1d0a53835e Mon Sep 17 00:00:00 2001 From: arnoweiss Date: Fri, 11 Oct 2024 15:04:13 +0200 Subject: [PATCH] chore: remove shellscript --- .github/workflows/autopublish.yaml | 7 +++---- .gitignore | 1 - scripts/respec-template.html => index.html | 19 +++++-------------- scripts/replace.sh | 16 ---------------- 4 files changed, 8 insertions(+), 35 deletions(-) rename scripts/respec-template.html => index.html (85%) delete mode 100644 scripts/replace.sh diff --git a/.github/workflows/autopublish.yaml b/.github/workflows/autopublish.yaml index 69e8e8b..e750b2e 100644 --- a/.github/workflows/autopublish.yaml +++ b/.github/workflows/autopublish.yaml @@ -16,13 +16,12 @@ jobs: - uses: actions/setup-node@v4 with: node-version: 22.x - - name: Inject md to html + - name: Copy assets up a level run: | - chmod +x ./scripts/replace.sh - ./scripts/replace.sh + cp specifications/*.png . + cp specifications/*.yaml . - name: Run Respec run: - sudo npx puppeteer browsers install chrome npx respec --src index.html --out index.html.build.html -t 60 --disable-sandbox --verbose - uses: actions/upload-pages-artifact@v3 with: diff --git a/.gitignore b/.gitignore index b94e4c5..35e542a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ .idea/ -index.html /*.png \ No newline at end of file diff --git a/scripts/respec-template.html b/index.html similarity index 85% rename from scripts/respec-template.html rename to index.html index 3690046..238508d 100644 --- a/scripts/respec-template.html +++ b/index.html @@ -50,28 +50,19 @@

Eclipse Decentralized Claims Protocol

Discussions or Issues.

-
- -THIS IS THE PLACEHOLDER FOR THE DATASPACE TOPOLOGY +
-
- -THIS IS THE PLACEHOLDER FOR THE BASE PROTOCOL +
-
- -THIS IS THE PLACEHOLDER FOR THE PRESENTATION PROTOCOL - +
-
- -THIS IS THE PLACEHOLDER FOR THE ISSUANCE PROTOCOL - +
+

Notes

diff --git a/scripts/replace.sh b/scripts/replace.sh deleted file mode 100644 index f38a114..0000000 --- a/scripts/replace.sh +++ /dev/null @@ -1,16 +0,0 @@ -cp scripts/respec-template.html index.html -cp specifications/*.png . -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 \ No newline at end of file