diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 88e6becfc798365f853e9946c8b289005fbfe0bd..fb5c4d2f1d0008299efdd484ac6639f7e69f860f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,8 +1,9 @@ # Datei: .gitlab-ci.yml variables: GIT_STRATEGY: clone - TEST_IMAGE: webpage:${CI_COMMIT_REF_NAME} - TEST_NETWORK: testnet + TEST_IMAGE: webpage:base + LINTER_IMAGE: webpage:linter + LINKCHECKER_IMAGE: webpage:linkchecker stages: - build @@ -13,5 +14,8 @@ build: - pwd - ls -l - 'echo "TEST_IMAGE: ${TEST_IMAGE}"' - - 'echo "TEST_NETWORK: ${TEST_NETWORK}"' + - 'echo "LINTER_IMAGE: ${LINTER_IMAGE}"' + - 'echo "LINKCHECKER_IMAGE: ${LINKCHECKER_IMAGE}"' - docker build -t ${TEST_IMAGE} . + - docker build -t ${LINTER_IMAGE} linter/ + - docker build -t ${LINKCHECKER_IMAGE} linkchecker/ diff --git a/linkchecker/Dockerfile b/linkchecker/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..06b4cfa3e54d67e855757ba22aa5de9e991efbd5 --- /dev/null +++ b/linkchecker/Dockerfile @@ -0,0 +1,8 @@ +FROM webpage:base + +RUN apt update && apt install -y nodejs npm + +RUN npm install -g markdown-link-check + +WORKDIR /src/linkchecker + diff --git a/linter/Dockerfile b/linter/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..0b25a4e1955ca9daa48609b7316b1b58fed7fa5a --- /dev/null +++ b/linter/Dockerfile @@ -0,0 +1,12 @@ +FROM webpage:base + +RUN apt update && apt install -y nodejs npm + +RUN npm install -g markdownlint-cli + +WORKDIR /src/linter + +ENTRYPOINT ["/usr/local/bin/markdownlint"] + +CMD ["--help"] + diff --git a/linter/config.json b/linter/config.json new file mode 100644 index 0000000000000000000000000000000000000000..4be0c89503e39d697cdb47aec98cd0306a5bca5b --- /dev/null +++ b/linter/config.json @@ -0,0 +1,22 @@ +{ + "default": false, + "first-heading-h1": true, + "header-increment": true, + "heading-style": { "style": "atx" }, + "no-missing-space-atx": true, + "no-multiple-space-atx": true, + "blanks-around-headings": true, + "no-emphasis-as-heading": true, + "first-line-heading": true, + "single-title": true, + "no-empty-links": true, + "no-alt-text": true, + "no-multiple-blanks": true, + "single-trailing-newline": true, + "blanks-around-fences": true, + "blanks-around-lists": true, + "commands-show-output": true, + "line-length": { "line_length": 100, "code_blocks": false, "tables": false}, + "no-missing-space-atx": true, + "no-multiple-space-atx": true +}