Skip to content

Ignore certain files for changes on_serve or stop next rebuild until the current finishes #2544

Answered by oprypin
mondeja asked this question in Q&A
Discussion options

You must be logged in to vote

I'm developing a plugin that, essentially, do: from a file foo.md inside the root of the documentation directory, creates another file foo.ext

It is indeed a problem if you do that. It's not a good approach, and I have criticized it before and mentioned an alternative:

the exact described use case (writing files into docs dir during the build of that docs dir) is not a good approach and, I'd say, should not be catered towards.
There will be other issues, such as the file accidentally overwriting real files, or lingering there after an interruption and accidentally being committed, and probably more.
MkDocs' behavior isn't even wrong there.

Instead one can write to a separate temporary …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mondeja
Comment options

Answer selected by mondeja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants