-
Notifications
You must be signed in to change notification settings - Fork 71
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
Automatic rebuilds #182
Comments
That's awseom. It is so good that you got familiar with the GitHub actions. 🙂
I don't know what could be the issue. 🙁 I googled for Anyway, is there any reason why we need to use |
I would like to use I suspect it might just take time for the cache to populate, but I was testing it on Saturday around midnight UTC so I didn't want to leave it in this broken state for too long. Do you know if there's any timeframe where the docs can be down for a few hours? |
You are seeing a broken site even though it is set to It's currently displaying normally for me. |
Still broken here (set back to master ~30 minutes ago) |
Just restarted my router but didn't help. Have you ever loaded docs.lvgl.io on your smartphone? If not could you try changing to gh-pages and load the site from mobilenet? |
I don't have a data plan on my phone, but I did try loading it on https://www.browserling.com/ on Saturday, and it had the same issue (no CSS, just the raw HTML). Browserling runs a remote browser in the cloud, so I presume it is loading it from a different location. I got in the queue for testing it again; will report back on the results in a minute. |
Great! So what's next? Try browserling with gh-pages? |
Ah sorry, you tried it on Saturday... So what's next? :) |
Would it be possible to host a backup copy of the docs on https://docs2.lvgl.io (or something similar) so we can test things without interrupting developers? I'd like to try flipping it to gh-pages and waiting 24 hours to see if the cache picks up on the change. |
Also, I assume whenever you've built the docs the "normal" way (using |
Okay, I'm adding a back-up. I'd rather use lvgl.io/docs for the back-up.
Yes, only 1-2 minutes. Waas it slower with gh-pages? |
It quickly switched to the broken HTML, but it did not pick up on the CSS even after I waited 5 minutes. I suspect I am doing something wrong, but I have no idea what it is. 🙂 |
https://lvgl.io/docs is there. Now docs.lvgl.io work for me again. More than 1 hour has passed. Okay, I'll open a pinned github issue, and write a short announcement on the forum with the backup link. |
Sounds good. Just to confirm: will you be flipping the branch setting? |
Yes,
Ok? |
Perfect! |
Done! |
All looks good, it became broken here. 😄 |
Same on my end. Hopefully we can get it working, because having instant documentation updates upon a PR merge would be a great feature. |
Oh yes, it'd be great! |
I've modified the html in gh-pages and changed "Introduction" in the TOC to "Introduction!" (added exclamation mark). We will see the HTML gets updated independently from CSS. |
It has updated for me already: https://docs.lvgl.io/latest/en/html/header.html This is so confusing! |
Here too. Maybe there is a different expiration time on HTML than on CSS. |
Do you think it would be worthwhile to open an issue on the GitHub support forum about this? The CSS still returns 404. |
Yes, I think it's worth to open an issue. As a workaround what about adding the script into a We can safely make experiments now as the docs breakdown is announced. |
That would be awkward, but we may not have a choice. Let's wait a little bit and see if any GitHub staff or community members respond. |
Okay, let's give it a few days. |
Personally, I would rather leave it in the broken state (so that others can potentially debug), but I suppose that we want existing docs links to keep working. How about I restore it later this afternoon if no one responds (3PM EST)? |
You are right. |
I think it's time to go the the |
I think you're right. I was hoping that a staff member would have responded by now, but maybe that forum is not as active as I thought. Should we restore it to |
When will you have time to try it out? If tomorrow or so I think we can wait for it. If it takes several days let's restore it for now. |
It'll be a few days, most likely, so I set the branch back to |
Okay, thanks! |
It works! release/v7, dev, and latest are now being deployed automatically - no manual rebuilding necessary. Will test release/v6 soon. |
Change of plan: v6 is just using the most recent precompiled HTML, as the build script didn't behave properly, and I didn't feel it was worth investing more time into given that it's about to be 2 major versions old. We can always hand-edit the HTML if there's anything major which needs adjusting. |
I've just tested it by removing teh "Download PDF" link from latest aaaaaand it worked like a charm 😍 That's amazing! I agree to not deal with v6. |
Great! For releases, I think all that needs to be done is merge latest to release/v7 and increment the version number in latest; it’s essentially the same as the core repo. |
The docs are updating nicely during the release :) The is one issue though that I see on every release. When If I re-run it manually when the emscripten project is updated it runs without errors. Is it normal? |
It seems like normal behavior; I believe to solve this the Emscripten project would have to be updated before you actually tag the release version. Or, we could add a flag so that CI ignores the version check. |
Actually, it won't be an issue soon once lv_examples and lvgl is merged. |
Are you thinking that 7.10 will be the last 7.x series release? |
I think we can merge So there might be a few releases until that but I can click the re-run button still 2-3 times 🙂 |
Do you also see that the docs builds are failing after the release? Have I messed up something? |
Syntax error in I can't fix it right now; will check later if you haven't already fixed it. |
I've fixed in on release/v7 and it was correct on latest but still the same error. |
dev also had the problem so I just adjusted it. Let's see what happens now. |
It deployed correctly. I think it's fixed. |
Hm, somehow the other branches are still not working. |
With the way I have the script setup, a change to one branch rebuilds and redeploys all of them. (They all say "Last updated on Feb 16, 2021." at the bottom.) However, GitHub will still show the red X on the failing branches until another commit is pushed to them. |
Oh, I see! All good then. LVGL version is really update on the top left of the webpage. It seems the rebuild works well and this issue can be closed. |
Great! |
I have been working for the past few hours on the necessary Actions infrastructure for the documentation to rebuild itself whenever a commit is pushed to the
dev
,latest,
orrelease/v7
branches.That logic is functioning for the most part now, so I am trying to switch
docs.lvgl.io
to serve pages from thegh-pages
branch. Unfortunately, GitHub Pages is doing some strange caching and refuses to properly pick up on the CSS fromgh-pages
(it works fine frommaster
).Any ideas why this might be happening? I believe everything has been set up on the automation end correctly; this seems to be a Pages issue.
The text was updated successfully, but these errors were encountered: