Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simpler hidden-file handling #48

Open
denisdefreyne opened this issue Oct 27, 2018 · 1 comment
Open

Simpler hidden-file handling #48

denisdefreyne opened this issue Oct 27, 2018 · 1 comment

Comments

@denisdefreyne
Copy link
Member

Nanoc currently has two ways of not handling hidden files:

  • The data source excludes hidden files, unless they’re explicitly included in extra_files.
  • Glob patterns don’t match hidden files (because Nanoc does not use FNM_DOTMATCH).

It might be possibly to simplify this:

  • The data source includes all files (including hidden ones).
  • There is a ignore /**/.* rule in the Rules file by default.

CC @moll

@moll
Copy link

moll commented Jun 25, 2019

I'm all for it! Saves having to list dot-files separately in data_sources:

data_sources:
  - type: filesystem
    encoding: utf-8
    extra_files:
      - "**/.htaccess"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants