You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's your user story?
As a publisher using a static website renderer I would like to be able to rewrite paths reflecting the input directory structure in order to align them with some output directory structure produced subsequently by a static website renderer. I may also just want to replace a file extension like .md with .html.
How would you like the system behave to satisfy your needs? How would you like it not?
I would like an option pathRewrites which is either ...
Alternative 1: versatile
... a map where key refers to the intended replacement and value is an array of one or more search strings or regular expression patterns to replace with key.
In particular the use of an array in the value position allows to address situations in which a static website renderer or compiler collects files from multiple directories and writes them into a single target directory.
Alternative 2: simple
... a map where key refers to the regular expression search pattern and value is the replacement string
... a map where key refers to the intended replacement and value is is a search string or an array of one or more search strings or regular expression patterns to replace with key.
Do you know examples of systems that have a similar feature you need?
TypeScript's paths option.
The text was updated successfully, but these errors were encountered:
What's your user story?
As a publisher using a static website renderer I would like to be able to rewrite paths reflecting the input directory structure in order to align them with some output directory structure produced subsequently by a static website renderer. I may also just want to replace a file extension like
.md
with.html
.How would you like the system behave to satisfy your needs? How would you like it not?
I would like an option
pathRewrites
which is either ...Alternative 1: versatile
... a map where key refers to the intended replacement and value is an array of one or more search strings or regular expression patterns to replace with key.
In particular the use of an array in the value position allows to address situations in which a static website renderer or compiler collects files from multiple directories and writes them into a single target directory.
Alternative 2: simple
... a map where key refers to the regular expression search pattern and value is the replacement string
{ "linking": { "pathRewrites": { ".md": ".html", "../someDir/": "../target/dir/", "^(.*)/directory": "$1/folder" } } }
Alternative 3: both
... a map where key refers to the intended replacement and value is is a search string or an array of one or more search strings or regular expression patterns to replace with key.
Do you know examples of systems that have a similar feature you need?
TypeScript's
paths
option.The text was updated successfully, but these errors were encountered: