chore: use sectlinks instead of sectanchors to prevent accessibility … #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build adocs and publish v1 to production | |
on: | |
push: | |
branches: | |
- v1 | |
paths: | |
- "docs/**" | |
workflow_dispatch: | |
jobs: | |
adoc_build: | |
runs-on: ubuntu-latest | |
name: asciidoctor build | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
ref: v1 | |
- name: Build html | |
id: adocbuild | |
uses: tonynv/asciidoctor-action@master | |
with: | |
program: "asciidoctor -D docs -o index.html -a lang=nb docs/main.adoc" | |
- name: Build pdf | |
id: adocbuild_pdf | |
uses: tonynv/asciidoctor-action@master | |
with: | |
program: "asciidoctor-pdf -D docs -o files/tbx-ap-no-v1.pdf -a lang=nb docs/main.adoc" | |
continue-on-error: true | |
- name: Upload rdf to static-rdf-server | |
uses: Informasjonsforvaltning/[email protected] | |
id: upload-rdf | |
with: | |
ontology-type: "specification" | |
ontology: "tbx-ap-no" | |
version: "v1" | |
host: "https://fellesdatakatalog.digdir.no" | |
api-key: ${{ secrets.STATIC_RDF_SERVER_API_KEY }} | |
files: | | |
docs/index.html text/html nb | |
docs/files/tbx-ap-no-v1.pdf application/pdf nb files/tbx-ap-no.pdf | |
docs/images/digitaliseringsdirektoratet.png image/png nb images/digitaliseringsdirektoratet.png |