diff --git a/HOWTO.md b/HOWTO.md index 056d68d..905de1d 100644 --- a/HOWTO.md +++ b/HOWTO.md @@ -64,7 +64,7 @@ Here is an example of possible `.gitlab-ci.yml`: pages: image: alpine script: - - wget -c https://github.com/kpym/gm/releases/download/v0.17.0/gm_0.17.0_Linux_64bit.tar.gz -O - | tar -C /usr/local/bin -xz gm + - wget -c https://github.com/kpym/gm/releases/download/v0.17.1/gm_0.17.1_Linux_64bit.tar.gz -O - | tar -C /usr/local/bin -xz gm - gm --pages '**/*' artifacts: paths: diff --git a/README.md b/README.md index 07b8697..fcf83a7 100644 --- a/README.md +++ b/README.md @@ -23,13 +23,14 @@ This tool is a thin wrapper around the [github.com/yuin/goldmark](https://github ``` > gm -h -gm (version: 0.17.0): a goldmark cli tool which is a thin wrapper around github.com/yuin/goldmark (versio: v1.5.6). +gm (version: 0.17.1): a goldmark cli tool which is a thin wrapper around github.com/yuin/goldmark (versio: v1.5.6). If not serving (no '--serve' or '-s' option is used): - the .md files are converted and saved as .html with the same base name; - - if the .html file exists it is overwritten; + - if the corresponding .html file already exists, it is overwritten; - 'stdin' is converted to 'stdout'; - when a pattern is used, only the matched .md files are considered. + - the pattern can contain '*', '?', the '**' glob pattern, '[class]' and {alt1,...} alternatives. When serving (with '--serve' or '-s' option): - the .md files are converted and served as html with live.js (for live updates); diff --git a/gm_parameters.go b/gm_parameters.go index 179b4ec..69523af 100644 --- a/gm_parameters.go +++ b/gm_parameters.go @@ -30,9 +30,10 @@ func help() { If not serving (no '--serve' or '-s' option is used): - the .md files are converted and saved as .html with the same base name; - - if the .html file exists it is overwritten; + - if the corresponding .html file already exists, it is overwritten; - 'stdin' is converted to 'stdout'; - when a pattern is used, only the matched .md files are considered. + - the pattern can contain '*', '?', the '**' glob pattern, '[class]' and {alt1,...} alternatives. When serving (with '--serve' or '-s' option): - the .md files are converted and served as html with live.js (for live updates);