From f53c2b005019f50809dda745380cde481c6e3ce8 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 3 Jun 2020 23:08:15 +0200 Subject: [PATCH] add docs validation to ci --- .dictionary | 2 ++ .drone.yml | 43 +++++++++++++++++++++++++++++++++++++++++-- .markdownlint.yml | 6 ++++++ README.md | 1 - 4 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 .dictionary create mode 100644 .markdownlint.yml diff --git a/.dictionary b/.dictionary new file mode 100644 index 0000000..414d3d6 --- /dev/null +++ b/.dictionary @@ -0,0 +1,2 @@ +Ansible +toc-tree diff --git a/.drone.yml b/.drone.yml index ec633dc..d860d24 100644 --- a/.drone.yml +++ b/.drone.yml @@ -21,10 +21,49 @@ steps: commands: - git-batch +- name: markdownlint + image: node:lts-alpine + commands: + - npm install -g markdownlint-cli + - markdownlint 'content/**/*.md' 'README.md' -p .gitignore + environment: + FORCE_COLOR: true + NPM_CONFIG_LOGLEVEL: error + +- name: spellcheck + image: node:lts-alpine + commands: + - npm install -g spellchecker-cli + - spellchecker --files 'content/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article syntax-urls --no-suggestions + environment: + FORCE_COLOR: true + NPM_CONFIG_LOGLEVEL: error + +- name: testbuild + image: klakegg/hugo:0.72.0-ext-alpine + commands: + - hugo-official -s -b http://localhost/ + +- name: link-validation + image: xoxys/link-validator + commands: + - link-validator -ro + environment: + LINK_VALIDATOR_BASE_DIR: public + - name: build - image: klakegg/hugo:0.69.0-ext-alpine + image: klakegg/hugo:0.72.0-ext-alpine + commands: + - hugo-official -s + +- name: beautify + image: node:lts-alpine commands: - - hugo-official + - npm install -g js-beautify + - html-beautify -r -f 'public/**/*.html' + environment: + FORCE_COLOR: true + NPM_CONFIG_LOGLEVEL: error - name: publish image: plugins/s3-sync diff --git a/.markdownlint.yml b/.markdownlint.yml new file mode 100644 index 0000000..b59a114 --- /dev/null +++ b/.markdownlint.yml @@ -0,0 +1,6 @@ +--- +default: True +MD013: False +MD041: False +MD004: + style: dash diff --git a/README.md b/README.md index d606383..27d26a9 100644 --- a/README.md +++ b/README.md @@ -1,2 +1 @@ # galaxy -