chore: end of the year maintenance

This commit is contained in:
Robert Kaussow 2021-12-21 10:29:16 +01:00
parent 7ee8ec20f6
commit c43992d781
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
4 changed files with 100 additions and 84 deletions

View File

@ -44,7 +44,7 @@ local PipelineDocs = {
}, },
{ {
name: 'testbuild', name: 'testbuild',
image: 'thegeeklab/hugo:0.83.1', image: 'thegeeklab/hugo:0.91.0',
commands: [ commands: [
'hugo -b http://localhost/', 'hugo -b http://localhost/',
], ],
@ -61,7 +61,7 @@ local PipelineDocs = {
}, },
{ {
name: 'build', name: 'build',
image: 'thegeeklab/hugo:0.83.1', image: 'thegeeklab/hugo:0.91.0',
commands: [ commands: [
'hugo', 'hugo',
], ],

View File

@ -1,80 +1,92 @@
--- ---
concurrency:
limit: 1
kind: pipeline kind: pipeline
name: docs name: docs
platform: platform:
arch: amd64
os: linux os: linux
arch: amd64
concurrency:
limit: 1
steps: steps:
- commands: - name: assets
- make doc image: thegeeklab/alpine-tools
image: thegeeklab/alpine-tools commands:
name: assets - make doc
- commands:
- git-batch - name: sync
image: thegeeklab/git-batch image: thegeeklab/git-batch
name: sync commands:
- commands: - git-batch
- markdownlint 'content/**/*.md' 'README.md' 'CONTRIBUTING.md'
image: thegeeklab/markdownlint-cli - name: markdownlint
name: markdownlint image: thegeeklab/markdownlint-cli
- commands: commands:
- npm install -g spellchecker-cli - markdownlint 'content/**/*.md' 'README.md' 'CONTRIBUTING.md'
- spellchecker --files 'content/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article
syntax-urls --no-suggestions - name: spellcheck
environment: image: node:lts-alpine
FORCE_COLOR: true commands:
NPM_CONFIG_LOGLEVEL: error - npm install -g spellchecker-cli
image: node:lts-alpine - spellchecker --files 'content/**/*.md' 'README.md' -d .dictionary -p spell indefinite-article syntax-urls --no-suggestions
name: spellcheck environment:
- commands: FORCE_COLOR: true
- hugo -b http://localhost/ NPM_CONFIG_LOGLEVEL: error
image: thegeeklab/hugo:0.83.1
name: testbuild - name: testbuild
- commands: image: thegeeklab/hugo:0.91.0
- link-validator -ro commands:
environment: - hugo -b http://localhost/
LINK_VALIDATOR_BASE_DIR: public
image: thegeeklab/link-validator - name: link-validation
name: link-validation image: thegeeklab/link-validator
- commands: commands:
- hugo - link-validator -ro
image: thegeeklab/hugo:0.83.1 environment:
name: build LINK_VALIDATOR_BASE_DIR: public
- commands:
- npm install -g js-beautify - name: build
- html-beautify -r -f 'public/**/*.html' image: thegeeklab/hugo:0.91.0
environment: commands:
FORCE_COLOR: true - hugo
NPM_CONFIG_LOGLEVEL: error
image: node:lts-alpine - name: beautify
name: beautify image: node:lts-alpine
- image: plugins/s3-sync commands:
name: publish - npm install -g js-beautify
settings: - html-beautify -r -f 'public/**/*.html'
access_key: environment:
from_secret: s3_access_key FORCE_COLOR: true
bucket: geekdocs NPM_CONFIG_LOGLEVEL: error
delete: true
endpoint: https://sp.rknet.org - name: publish
path_style: true image: plugins/s3-sync
secret_key: settings:
from_secret: s3_secret_access_key access_key:
source: public/ from_secret: s3_access_key
strip_prefix: public/ bucket: geekdocs
target: /${DRONE_REPO_NAME} delete: true
when: endpoint: https://sp.rknet.org
ref: path_style: true
- refs/heads/main secret_key:
- refs/tags/** from_secret: s3_secret_access_key
source: public/
strip_prefix: public/
target: /${DRONE_REPO_NAME}
when:
ref:
- refs/heads/main
- refs/tags/**
trigger: trigger:
ref: ref:
- refs/heads/main - refs/heads/main
- refs/tags/** - refs/tags/**
- refs/pull/** - refs/pull/**
--- ---
kind: signature kind: signature
hmac: 79ea19f08d85bbcc0b69bd8b04a9f9b092acfcca1e4eb530451f5f8055db7217 hmac: 5b5951dd92dad9fd673283f1bb0412856a5bd6e34af58b966d7e008c8ff319b4
... ...

3
.prettierignore Normal file
View File

@ -0,0 +1,3 @@
.drone.yml
*.tpl.md
LICENSE

29
LICENSE
View File

@ -1,20 +1,21 @@
The MIT License (MIT) MIT License
Copyright (c) 2021 Robert Kaussow Copyright (c) 2022 Robert Kaussow <mail@thegeeklab.de>
Permission is hereby granted, free of charge, to any person obtaining a copy of Permission is hereby granted, free of charge, to any person obtaining a copy
this software and associated documentation files (the "Software"), to deal in of this software and associated documentation files (the "Software"), to deal
the Software without restriction, including without limitation the rights to in the Software without restriction, including without limitation the rights
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
the Software, and to permit persons to whom the Software is furnished to do so, copies of the Software, and to permit persons to whom the Software is furnished
subject to the following conditions: to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all The above copyright notice and this permission notice (including the next
copies or substantial portions of the Software. paragraph) shall be included in all copies or substantial portions of the
Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.