-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Dev UX: How to preview docs/site
in incremental mode
#1310
Comments
While working on #3718, I found this issue is much worse than I thought. We are already running Jekyll in an incremental mode, but it does not seem to pick changes :( I ended up doing a full restart whenever I want to preview my updates. Here is the command that works for me, execute it in $ cp -r ../../docs/site/* pages/en/lb4/ && cp -r ../../docs/site/sidebars/* _data/sidebars/ && npm start |
I encountered problems with this before. I enlisted the help of Biniam and Raymond. Raymond made changes somewhere (can't remember what PR it was). It seemed to work for him, but never for me. |
Few things we can try to speed up Jekyll build times in general: https://cloudcannon.com/tips/2017/12/08/speed-up-your-jekyll-builds/ |
Top entries are reported by
As mostly expected, a lot of time is spent in rendering the sidebar (139 seconds out of total 213 seconds). The article mentioned in my previous comment suggests the following optimization:
Considering the complexity of such solution, I think it's better to focus on previewing LB4 docs changes only and find a way how to exclude non-LB4 content from rendering.
|
Description / Steps to reproduce / Feature proposal
When making changes to documentation files in
docs/site
folder, I'd like to preview the changes I am making.Current Behavior
I can run
npm run build:site
command to copy all sources and start Jekyll server.However, this process does not support incremental updates. Whenever I make a change, all files have to be re-downloaded from
docs/site
and GitHub repositories.Alternatively, it may be possible to combine
npm run copydocs
and loopback.io'snpm start
to speed the updates a bit, but it's still not ideal.Expected Behavior
There should be a single monorepo-level npm script that will:
docs/site
, download any assets from other GitHub repos.docs/site
to localloopback.io
clone--incremental
flag, so that any updates indocs/site
are quickly applied to the local website.Alternatively, we may want to look for a different solution that will allow us to render the content in
docs/site
without the rest of loopback.io content. What's important: we need to configure Jekyll the same way as it's configured on loopback.io, including plugins, CSS stylesheets, etc.See Reporting Issues for more tips on writing good issues
The text was updated successfully, but these errors were encountered: