Comments (7)
Preview builds are now enabled. I have updated the wiki page on blog posts accordingly. Tagging @ProfYaffle just so he sees this (since I separated this out from another issue).
from kodi-tv.
One other note. I re-saved the blog post about broken add-ons (I added a space at the end) so that it now has a preview.
from kodi-tv.
Re-opening this. While the live preview looks great, there's a sync delay of some kind: I updated a draft post, saved it, and yet the preview still shows the old iteration.
It may be unavoidable, in which case some text on the preview button to remind people might be useful.
Perhaps unrelated, but - going back now to see if a few minutes has allowed the sync/build/whatever - I'm unable to even get a preview, instead getting a "Check for Preview" and refresh button that seem to do nothing.
from kodi-tv.
That save got "caught" in a major rebuild, so it look almost 17 minutes to rebuild the preview. Once we get things stable and in production, that shouldn't happen very often, but this time you saved that after I had pushed some changes that forced a full rebuild on the main site (which meant your separate temporary branch had to do the same thing).
I'll check to see if there's any way to customize what messages are shown when, but I think we may be stuck with what is there (although I can certainly submit an issue to the Netlify CMS github repo). I'm getting ready to deploy some more changes that I'm hoping will speed build times, and that may help. But there is always going to be a 5 minute or so delay between saving a draft and getting a preview.
from kodi-tv.
I stumbled on documentation on how to build custom live previews inside the CMS. Once I stopped following the documentation and just started banging on things, I got a viable live preview done. It's available to try in staging at:
http://kodi-tv-staging.netlify.app/admin
You probably shouldn't save any changes to the posts or add new ones, or those will get merged when we next merge staging into main. But you can at least edit exiting posts without saving and start new ones (again, without saving). The live preview is real time as you type, and it is exactly (well, 99% exactly) what you will see on the web site. There are two differences in the live preview.
- The live preview shows the read time as 99 minutes. That is calculated by Gatsby at build time, so there is no way to access it in the live preview.
- The live preview has no footer. We use a Gatsby static query to generate the footer list of sponsors, and, as with the read time, that query is run at build. If the footer is included the live preview errors out.
There is an interesting bonus of this preview. It is fully responsive. By resizing the preview pane you can see what the post will look like on other devices. Here are some screenshots of that:
On a big screen with enough space for a full size preview:
On a laptop sized screen with enough space for mid-sized preview:
And one with the preview pane small enough that it emulates a mobile device:
from kodi-tv.
Live preview for blog posts (and all other content types) are available in main now and published at https://kodi-tv.netlify.app. I think this solves the problem much better than the incremental builds at save, so I have disabled those for now. Unless we change it back, the site will only be rebuilt when a post is actually published.
from kodi-tv.
Closing this then :)
from kodi-tv.
Related Issues (20)
- Donor wall is broken HOT 7
- Fix typing errors on the home page
- Set a minimum donation amount HOT 6
- Eslint Errors HOT 4
- Where is the full JSONRPC spec or ServiceDescription.json? HOT 2
- Endaoment donation HOT 4
- Limit recent donations HOT 1
- Netlify CMS Limitations/Options HOT 4
- Hero image distortion on blog pages HOT 6
- Jiotv not working with new version HOT 1
- "Essay writing" spam on Kodi blog HOT 10
- Enable Netlify CMS "Open Authoring" feature HOT 7
- Add sentry to sponsors HOT 1
- Forum count shows a zero HOT 2
- Provide download button for Apple Silicon (arm64) HOT 7
- "[CR]" showing in addon descriptions
- Add OSUOSL to sponsors HOT 5
- Admin login sometimes doesn't connect with github HOT 4
- CRT shader HOT 1
- No Dolby Atmos HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kodi-tv.