diff --git a/.woodpecker.yml b/.woodpecker.yml index 5edc1a9..5ad9c10 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,10 +1,10 @@ +clone: + git: + image: woodpeckerci/plugin-git + settings: + recursive: true + submodule_update_remote: true pipeline: - fetch_git_submodules: - image: alpine/git - commands: - - git submodule init - - git submodule update --recursive --remote - check_documentation_build: image: rust:1.61-slim-buster commands: @@ -14,3 +14,7 @@ pipeline: - apt-get install git curl -y - ./update-includes.sh - mdbook build . + check_formatting: + image: alpine:3 + commands: + - prettier -c src diff --git a/format_docs.sh b/format_docs.sh new file mode 100755 index 0000000..6cc6432 --- /dev/null +++ b/format_docs.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +prettier -w src