Supporting rehype-all-the-thumbs
by preventing needless work
Obviate: (Great word right?) It's defined as : To keep from happening or render unnecessary. Which is what we are doing to the backlog of items.
Configuration:
- read file closure ?
{ read: async (s) => Promise<boolean> }
Input:
- a HAST tree
- vfile with added
newAssets
key added to the object
Output:
- vfile with
newAssets
array filtered to only hold files that need to be generated based on the read function results
- rehype-all-the-thumbs ...like putting on velcro shoes
- rehype-all-the-thumbs-curate (DOM -> data.srcs)
- rehype-all-the-thumbs-create (data.srcs -> data.newAssets)
- rehype-all-the-thumbs-manipulate (data.newAssets -> DOM)
- vfile-newAssets-generate (data.newAssets -> Side Effect Funtion to create the file)