Skip to content

Commit

Permalink
Merge pull request #4 from Logius-standaarden/develop
Browse files Browse the repository at this point in the history
XSD display
  • Loading branch information
sanderke committed Apr 1, 2022
2 parents a92866b + 30fe805 commit bce71bb
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 54 deletions.
72 changes: 38 additions & 34 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,44 @@
name: Build and Check
on:
workflow_dispatch:
pull_request:
jobs:
main:
name: HTML
runs-on: ubuntu-20.04
build:
name: Build
uses: Logius-standaarden/Automatisering/.github/workflows/build.yml@main
check:
needs: build
name: Check
uses: Logius-standaarden/Automatisering/.github/workflows/check.yml@main

preview:
needs: build
name: Preview
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork }}
steps:
- uses: actions/checkout@v2
- run: npx respec --localhost --src index.html --out snapshot.html
- uses: stefanzweifel/git-auto-commit-action@v4
- name: Recover HTML
uses: actions/cache@v2
with:
commit_message: static HTML
wcag:
needs: main
name: WCAG
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: git pull
- run: npm install -g pa11y
- run: pa11y ./snapshot.html
pdf:
needs: main
name: PDF
runs-on: ubuntu-20.04
steps:
- run: |
sudo apt-get install -y xfonts-base xfonts-75dpi
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.focal_amd64.deb -O wkhtmltopdf.deb
sudo dpkg -i wkhtmltopdf.deb
- uses: actions/checkout@v2
- run: git pull
- run: wkhtmltopdf --enable-local-file-access snapshot.html doc.pdf
- run: |
wget https://raw.githubusercontent.com/Logius-standaarden/Digikoppeling-Algemeen/main/scripts/pdf-name.py
python pdf-name.py
rm pdf-name.py
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: PDF
path: ~/static
key: ${{ github.run_id }}
- name: Gather files
run: |
rm index.html
mv ~/static/snapshot.html index.html
rm -f *.md *.pdf *.js snapshot.html
mkdir ~/content
mv ./* ~/content
git clone https://user:${{ secrets.BEHEER }}@github.com/Logius-standaarden/Publicatie-Preview.git
- name: Commit preview
run: |
cd Publicatie-Preview
rm -f -r ${{ github.event.repository.name }}/${{ github.head_ref }}
mkdir -p ${{ github.event.repository.name }}/${{ github.head_ref }}
mv ~/content/* ${{ github.event.repository.name }}/${{ github.head_ref }}
git add -A
git config user.name "GitHub Action"
git config user.email "api@logius.nl"
git commit -m "new preview build"
git push
Binary file modified Digikoppeling-Koppelvlakstandaard-GB.pdf
Binary file not shown.
12 changes: 6 additions & 6 deletions 05_schema.md → ch05_Grote berichten bijlagen.md
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,10 @@ Alle errors behalve UNKNOWN_ERROR zijn recoverable en hebben geen reason nodig.

### Data-reference-request bericht 2 (PUSH)

Hieronder volgt een voorbeeld van een Grote Berichten data-reference-request bericht voor een PDF bestand genaamd file.pdf met een grootte van 2048MiB, die moet worden ge-upload en is gezipped in de volgende 2 zip parts:
Hieronder volgt een voorbeeld van een Grote Berichten data-reference-request bericht voor een PDF bestand genaamd `file.pdf` met een grootte van 2048MiB, die moet worden ge-upload en is gezipped in de volgende 2 zip parts:

- file.pdf.z01 met een grootte van 1024MiB is ge-upload naar https://my.host.nl/files/file.pdf.z01
- file.pdf.zip met een grootte van 765MiB is ge-upload naar https://my.host.nl/files/file.pdf.zip
- file.pdf.z01 met een grootte van 1024MiB is ge-upload naar `https://my.host.nl/files/file.pdf.z01`
- file.pdf.zip met een grootte van 765MiB is ge-upload naar `https://my.host.nl/files/file.pdf.zip`

```XML
<gb:Digikoppeling-external-data-references-request profile="Digikoppeling-gb-4.0">
Expand Down Expand Up @@ -412,10 +412,10 @@ Hieronder volgt een voorbeeld van een Grote Berichten data-reference-request ber

Hieronder volgt een voorbeeld van een Grote Berichten data-reference-response bericht voor de PDF bestand genaamd file.pdf met een grootte van 2048MB, die is ge-upload en gezipped in de volgende 2 zip parts:

- file.001.zip met een grootte van 1024MiB is ge-upload naar https://my.host.nl/files/file.001.zip
- file.002.zip met een grootte van 765MiB is ge-upload naar https://my.host.nl/files/file.002.zip
- file.001.zip met een grootte van 1024MiB is ge-upload naar `https://my.host.nl/files/file.001.zip`
- file.002.zip met een grootte van 765MiB is ge-upload naar `https://my.host.nl/files/file.002.zip`

Waarbij file.001.zip correct is geupload en file.002.zip niet is gevonden.
Waarbij `file.001.zip` correct is geupload en `file.002.zip` niet is gevonden.

```XML
<gb:Digikoppeling-external-data-references-response profile="Digikoppeling-gb-4.0">
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<section data-format="markdown" data-include="ch02_Koppelvlakstandaard Grote Berichten.md"></section>
<section data-format="markdown" data-include="ch03_Metadata.md"></section>
<section data-format="markdown" data-include="ch04_Bestandsoverdracht.md"></section>
<section data-format="markdown" data-include="05_schema.md"></section>
<section data-include-format="markdown" data-include="ch05_Grote berichten bijlagen.md"></section>
<!-- De rest van het document kun je in Markdown schrijven. -->
<!-- <section id="tof" class="informative appendix"></section> -->
<section id='conformance'>
Expand All @@ -66,4 +66,4 @@ <h1>Contributors</h1>
</section> -->
</body>

</html>
</html>
4 changes: 2 additions & 2 deletions js/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ var respecConfig = {
publisher: "Logius",
},
"Digikoppeling Beveiligingsdocument": {
href: "https://www.logius.nl/sites/default/files/bestanden/website/Digikoppeling_Beveiligingsstandaarden_en_voorschriften_v1.3.pdf",
href: "https://publicatie.centrumvoorstandaarden.nl/dk/beveilig/",
title: "Digikoppeling Beveiligingsstandaarden en voorschriften",
date: "2020",
date: "2021",
publisher: "Logius",
},
"Digikoppeling-Cert": {
Expand Down
Loading

0 comments on commit bce71bb

Please sign in to comment.