Skip to content

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

Description

@yamgent

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/"
    },

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions