add docs validation to ci
Some checks are pending
continuous-integration/drone/push Build is pending
Some checks are pending
continuous-integration/drone/push Build is pending
This commit is contained in:
parent
f50bba3549
commit
f53c2b0050
2
.dictionary
Normal file
2
.dictionary
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
Ansible
|
||||||
|
toc-tree
|
45
.drone.yml
45
.drone.yml
@ -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
6
.markdownlint.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
default: True
|
||||||
|
MD013: False
|
||||||
|
MD041: False
|
||||||
|
MD004:
|
||||||
|
style: dash
|
Reference in New Issue
Block a user