Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Inability to prevent folders from being watched #69

Open
tlhuillier opened this issue Mar 6, 2019 · 0 comments
Open

Inability to prevent folders from being watched #69

tlhuillier opened this issue Mar 6, 2019 · 0 comments
Labels
Milestone

Comments

@tlhuillier
Copy link

In some projects, I like to have the documentation inside the project (next to the source code), as well as the built output of the documentation (let say you want to publish your doc using Github pages for example, you could build it inside your project).

A project like this is structured like so:

.
├── components/
├── assets/
├── translations/
├── doc/
│   ├── _config.yml/
│   ├── intro.md
│   └── ...
├── build/
│   ├── doc/
│   └── ...
│── package.json
│── webpack.config.js
└── ...

Then I would build or watch the stylemark doc like so:
stylemark -i . -o ./build/doc -c ./doc/_config.yml -w -b

Note that for such projects, the documentation lives inside source code as well as in some dedicated markdown files (and that's why stylemark input is set to .).

But when watching for file changes, the filewatcher sees file changes when stylemark update the content of /build/doc/ — and thus triggering an infinite loop, the doc getting built over and over again.


It would be great to have a proper way to prevent some folders from being watched to prevent such problems.

@tlhuillier tlhuillier changed the title Inability to ignore folders from being watched Inability to prevent folders from being watched Mar 6, 2019
@mpetrovich mpetrovich added this to the v4.0 milestone Dec 30, 2019
@mpetrovich mpetrovich added the bug label Dec 30, 2019
@mpetrovich mpetrovich reopened this Apr 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants