markdown-styles icon indicating copy to clipboard operation
markdown-styles copied to clipboard

Option to ignore unknown files

Open pmaselkowski opened this issue 10 years ago • 2 comments

Hi!

I've upgraded markdown-styles and noticed that it copy unknown files to output.

Perhaps some option to ignore unknown files could be added?

pmaselkowski avatar Jun 19 '15 09:06 pmaselkowski

hmm, what kind of unknown files do you have? The intent of the feature was that you can bundle other resources like images and downloadable files in the ./input folder for reproducible builds - previously I had to keep the output folder under source control if it had additional resources. I think the feature might be reasonable but I'm wondering if there is a good default or perhaps ignorefile that could be used.

mixu avatar Jun 19 '15 21:06 mixu

I use your tool to generate sort of HTML table of contents for my github projects and keep related files (also template) in toc folder, for example: https://github.com/Maslosoft/Mangan/tree/master/toc

And output it to project root. So in new version, except HTML files - it also copy template (page.html) and file-header.phps to project root.

There is no control over what is copied. Perhaps something like .gitignore white/black-list could be used? For example:

.whitelist:

*.md
*.css

.blacklist:

*.html
templates/*

pmaselkowski avatar Jun 23 '15 19:06 pmaselkowski