-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Speed up inner loop #15239
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
Speed up inner loop #15239
Conversation
The intent is to support jekyll serve without redownloading all packages every time a change is made. With this, if the marker file exists, no secondary download will occur.
Now, changes will be seen much faster, removing the requirement to rebuild and restart the container every time you want to see a change
✅ Deploy Preview for docsdocker ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site settings. |
|
Saw the build failed and it's because of the new |
|
Same thing for the |
|
Ok. I think it's good to go for a review now. Bring on the feedback! 😄 |
|
Thank you @mikesir87. @crazy-max @thaJeztah Could you PTAL? |
|
@mikesir87 There are some conflicts, can you rebase please?
We discussed about having better cache for As we currently download remote resources as zip and some references are not tied to a specific commit (e.g., using a branch like Maybe if your use case is just live reloading local content we might instead just skip fetching remote resources as there is no hook of this type that can be used in Jekyll?
Live reload lgtm but I think we should create another PR for this one and another to improve caching. WDYT? |
|
Thanks for the pull request. We'd like to make our product docs better, but haven’t been able to review all the suggestions. If the updates are still relevant, review our contribution guidelines and rebase your pull request against the latest version of the docs, then mark it as fresh with a Prevent pull requests from auto-closing with a /lifecycle stale |
|
@mikesir87 @crazy-max As we are gearing up to migrate Docs to Hugo, I'm wondering if we should bring in any changes from this PR to 'main' before the migration. WDYT? |
|
I can take another pass once the big PR is merged in. It won't break my heart to redo it 😆 |
Proposed changes
After playing around with some docs changes, I was getting tired of having to rebuild and restart my containers every time I made a change. So, I decided to take a look at how to fix this. After all, it is a Jekyll project so we should be able to use
jekyll serve, right?completion_markerconfig option that serves as a filepath to determine if the fetch has already occurred. This prevents resource download from occurring on every file change.devstage to the Dockerfile that starts jekyll serve. It uses a newdev-start.shscript to still support the production test use case (which adds the production config file)docker-compose.yamlfile to target this newdevstage and expose the livereload portRelated issues (optional)
None