add docs validation to ci
Some checks are pending
continuous-integration/drone/push Build is pending

This commit is contained in:
Robert Kaussow 2020-06-03 23:08:15 +02:00
parent f50bba3549
commit f53c2b0050
4 changed files with 50 additions and 4 deletions

2
.dictionary Normal file
View File

@ -0,0 +1,2 @@
Ansible
toc-tree

View File

@ -21,10 +21,49 @@ steps:
commands: commands:
- git-batch - git-batch
- name: build - name: markdownlint
image: klakegg/hugo:0.69.0-ext-alpine image: node:lts-alpine
commands: commands:
- hugo-official - 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.72.0-ext-alpine
commands:
- hugo-official -s
- name: beautify
image: node:lts-alpine
commands:
- npm install -g js-beautify
- html-beautify -r -f 'public/**/*.html'
environment:
FORCE_COLOR: true
NPM_CONFIG_LOGLEVEL: error
- name: publish - name: publish
image: plugins/s3-sync image: plugins/s3-sync

6
.markdownlint.yml Normal file
View File

@ -0,0 +1,6 @@
---
default: True
MD013: False
MD041: False
MD004:
style: dash

View File

@ -1,2 +1 @@
# galaxy # galaxy