Example usage Local usage will test only documentations in root directory, and will not spellcheck.
Example usage Local usage will test only documentations in root directory, and will not spellcheck.
Suggested solution:
docker \
run \
--name local-documentation-tests \
--rm \
--mount "type=bind,source=${PWD},target=/testing_space,readonly" \
containers.projects.task.gda.pl/containers/linters/markdown \
sh -c 'markdownlint $(find -name "*.md") && mdspell --report --en-gb --ignore-numbers $(find -name "*.md")'
- sh -c will run two commands in container (currently mdspell is runed outside of container)
- find solve issue with running only on files in current directory.
Edited by Piotr Korthals