-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
All files are rebuilt on save when watching with "codedoc serve" #16
Comments
Makes sense, I suspect it should be relatively easy to keep track of the last build time in memory and then check last change time of each markdown file using Just out of curiosity, roughly how long does it take to rebuild all of those 24 pages? |
love It was really noticeable because I was going in to add the MetaOverride component into each file to fix the og:image issue we had been emailing about, but I have done these incremental changes a few times already in order to further "decorate" my files. |
wow thats a lot. originally codedoc used to build all markdown files in parallel, which was pretty fast but also lead to memory issues (specifically on machines with lower RAM), so I had to change it. wonder if that should be a configurable thing (which of course would also require a better parallelization strategy than everything in parallel). |
this is deployed via npm i -g @codedoc/cli@latesst
codedoc update latest the update basically introduces tiered watching. main CODEDOC process now watches markdown files, while an external
|
@jamessimone please check if with this update you get better reloading speeds while working on dev. the expectation naturally is drastically increased speeds, since in most cases only one or two markdown files should be rebuilt. |
@loreanvictor I'm afraid that after upgrading, I'm getting a pretty crazy error while running
|
@loreanvictor wow, just ignore that last comment. I think my npm / yarn versions lead to some crazy results. After reinstalling npm and re-running the commands, I am able to verify that this is working great for me. Nice job! |
I was worried for a moment that I have made a super crazy mistake somewhere. anyways thanks! |
I have 24 pages (including _toc.md, 404.md, and index.md), which doesn't feel like a lot, but it takes some time (not a ton on my desktop, but quite a bit on my laptop) on sequential, individual, file saves to rebuild the entire directory.
It would be awesome if only the files being saved were rebuilt!
The text was updated successfully, but these errors were encountered: