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

site.json: Give an easier way to specify which files to exclude from the build process #228

Closed
yamgent opened this issue May 21, 2018 · 2 comments

Comments

@yamgent
Copy link
Member

yamgent commented May 21, 2018

If there's a directory that the user does not want MarkBind to traverse during the page rendering, he must modify the glob's regex to specifically exclude such directories. For example:

"**/index.md" --> "{,!(book)/**/}index.md"

to exclude index.md files residing in book directories.

I suggest that we provide a user an alternative way to ignore entire directories directly with an "ignore" parameter for "pages":

  "pages": [
    {
      "glob": "**/index.md"
    },
    {
      "ignore": "book/"
    },
@acjh
Copy link
Contributor

acjh commented May 21, 2018

I feel that this isn't appropriate as glob explicitly asks MarkBind to process files that match this pattern and generate pages.

If this were to be implemented, it should:

  • definitely be outside the "pages" array as it doesn't specify a page to be rendered;
  • maybe have "exclude" in its name rather than "ignore" to avoid ambiguity.

@yamgent yamgent added the p.Low label May 23, 2018
@damithc damithc changed the title Add ignores for pages site.json: Give an easier way to specify which files to exclude from the build process Dec 24, 2018
@ang-zeyu
Copy link
Contributor

Moved to #715

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

4 participants