mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-05-06 05:03:27 +00:00
12 lines
349 B
Bash
Executable File
12 lines
349 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
abs_path() {
|
|
echo "$(cd "$(dirname "$1")"; pwd -P)/$(basename "$1")"
|
|
}
|
|
|
|
md_source=${1:?path to markdown file is a required argument}
|
|
|
|
[ -f ${md_source} ] || (echo "file:'${results}' does not exist"; exit 1)
|
|
|
|
docker run -v $(abs_path ${md_source}):/source/source.md -v $(pwd)/output:/output -it --rm doc_converters:latest md_to_pdf
|