diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-06-22 11:21:59 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-22 11:21:59 +0000 |
commit | 00ce793f0db8bbbc5a5048c9b75512fb506eee93 (patch) | |
tree | c4bf51dd21b24f904adbfe99d10f7913e09c4960 /docs/remote-docs.sh | |
parent | 15a651f860191a6cfe0b3d5f1c0a846e6a584091 (diff) | |
parent | ce3d0954a51c1b958211a4cb41d3179c4c06fe8c (diff) | |
download | podman-00ce793f0db8bbbc5a5048c9b75512fb506eee93.tar.gz podman-00ce793f0db8bbbc5a5048c9b75512fb506eee93.tar.bz2 podman-00ce793f0db8bbbc5a5048c9b75512fb506eee93.zip |
Merge pull request #14631 from n1hility/opendoc-after-install
Open Windows tutorial after MSI installation
Diffstat (limited to 'docs/remote-docs.sh')
-rwxr-xr-x | docs/remote-docs.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/docs/remote-docs.sh b/docs/remote-docs.sh index 8249fc497..4c2602f80 100755 --- a/docs/remote-docs.sh +++ b/docs/remote-docs.sh @@ -86,6 +86,16 @@ function html_fn() { -o $TARGET/${file%%.*}.html $markdown } +function html_standalone() { + local markdown=$1 + local title=$2 + local file=$(basename $markdown) + local dir=$(dirname $markdown) + (cd $dir; pandoc --ascii --from markdown-smart -c ../standalone-styling.css \ + --standalone --self-contained --metadata title="$2" -V title= \ + $file) > $TARGET/${file%%.*}.html +} + # Run 'podman help' (possibly against a subcommand, e.g. 'podman help image') # and return a list of each first word under 'Available Commands', that is, # the command name but not its description. @@ -165,3 +175,6 @@ for s in $SOURCES; do fi done rename +if [[ "$PLATFORM" == "windows" ]]; then + html_standalone docs/tutorials/podman-for-windows.md 'Podman for Windows' +fi |