nanoc / features

Collection of feature requests
2 stars 1 forks source link

Specify files that check command aren't applied #51

Closed mshibanami closed 5 years ago

mshibanami commented 5 years ago

Hi there,

Suppose there are generated files in output as follows:

And suppose you want to specify world.html as a file that nanoc check command is not applied. But It seems you can't do it so far in Nanoc.

So I'd like to suggest a feature that Nanoc let you specify it in nanoc.yaml, like this:

checks:
    exclude_files: ['world.html']

By the way, I found the same name's key in checks -> external_links. But it works only for external_links.

denisdefreyne commented 5 years ago

Hey Manabu,

This is a good suggestion — the exclusions are currently handled by the individual checks themselves, but having it globally would definitely be useful.

I’m moving this to the nanoc/features repository, where I keep feature requests.

denisdefreyne commented 5 years ago

Here’s a WIP implementation for this: nanoc/nanoc#1438

mshibanami commented 5 years ago

Thanks so much!

denisdefreyne commented 5 years ago

This is now released in Nanoc 4.11.9.