From 43fca2bead3d16bda0c98799bfca06526b749045 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 27 Nov 2024 16:28:53 -0600 Subject: [PATCH] README/help for `--assetrefs=colocate` --- README.md | 7 ++++++- cli.js | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3a2744f..914dcb1 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,13 @@ npx @11ty/import [type] [target] --cacheduration=20m # Change output format (default: markdown) npx @11ty/import [type] [target] --format=html -# Use absolute asset URLs (default: relative) +# Change asset reference URLs: relative (default), absolute, colocate +# slug.md and assets/asset.png with +npx @11ty/import [type] [target] --assetrefs=relative +# slug.md and assets/asset.png with npx @11ty/import [type] [target] --assetrefs=absolute +# slug/index.md and slug/asset.png with +npx @11ty/import [type] [target] --assetrefs=colocate # EXPERIMENTAL: Persist *new* non-draft content # - `github` persist type requires a `GITHUB_TOKEN` environment variable. diff --git a/cli.js b/cli.js index 7b4487b..a65c2ba 100755 --- a/cli.js +++ b/cli.js @@ -98,8 +98,10 @@ if(help) { # Change output format (default: markdown) npx @11ty/import [type] [target] --format=html - # Use absolute asset URLs (default: relative) + # Change asset reference URLs: relative (default), absolute, colocate + npx @11ty/import [type] [target] --assetrefs=relative npx @11ty/import [type] [target] --assetrefs=absolute + npx @11ty/import [type] [target] --assetrefs=colocate `); process.exit();