galaxy-hub icon indicating copy to clipboard operation
galaxy-hub copied to clipboard

Skip partitioning by using `vue-remark`'s `ignore` option to tell it which pages require Vue

Open NickSto opened this issue 2 years ago • 1 comments

I just had the thought that maybe instead of doing the whole "partitioning" step where we physically divide Markdown files into those that require vue-remark and those that don't, we could just instruct the plugin itself which files to process. The source-filesystem plugin has a path option and vue-remark has an ignore option which tells it which files to apply to.

Currently we're using glob patterns to tell the plugins which classes of files to process, but instead we could pass literal paths. These path lists would be very long, so this could hit some kind of limit. But we could also try to reduce the number of paths by summarizing sets of paths back into globs, if, say, all the pages under X directory should be processed the same way.

It might be worth looking into, since it would simplify things greatly to eliminate the whole partitioning step.

NickSto avatar May 05 '22 14:05 NickSto

Worth noting here that we'll still have to make a copy of all the content files into a "build" directory until we do away with the Markdown fixing step. So this would just do away with the added complexity of having to separate all the copies into two different partitions.

NickSto avatar May 11 '22 17:05 NickSto