Replies: 2 comments 7 replies
-
First I'd argue that it might be early to give up on rebuilding the whole site. What if you have 1k, 10k, 100k, 1M pages? How often would you touch these pages? What is the pain point/threshold that you'd find acceptable in terms of building/indexing/deploying time? fwiw I'm regularly rebuilding and redeploying pangea (412 pages as of today); it generally takes about 50s, which in my book is "noticeable, but bearable". Of course, assuming this scales ~ linearly, I'm not sure I'll want to wait 10 minutes for a typo fix when I have 5,000 pages, and an hour when I have 25k. But I think there's a lot of room to make builds much faster. The process is currently quite "stupid", in that it rebuilds all the HTML and the search index from scratch (only dependencies and data loaders outputs are cached). There would probably be a way to make rebuilding an order of magnitude faster by reusing a built page when we can guarantee nothing has changed. Another improvement could be to parallelize the build. We just haven't worked on this yet. Deploying is already very fast as it compares the list of files to deploy with the list of files already deployed and just sends the updates. Also, if your site is separated into multiple small sites, you'll have to find a way to regroup and reconcile the minisearch indexes (assuming you want search!) You might be interested in an experiment here where I mix indexes from 7 sites using either Vitepress or Framework (since both generators use Minisearch under the hood) for an integrated search. |
Beta Was this translation helpful? Give feedback.
-
That's... a whole lot of dashboarding. 😄
This is the way. Just ping me with an issue on the @beartype issue tracker ...or anywhere with @leycec, really! if you need a bit of friendly help from a Canadian redneck. Runtime tensor type-hinting can be "fun" stuff. Until then, may the Python be with your super-cool AI healthcare project. Robots need hospitals, too. 🤖 |
Beta Was this translation helpful? Give feedback.
-
As I've settled on Framework for my blog, I am finding that rebuilding the whole site after a minor update to a single .md file can feel a little excessive (even though its not many pages now, I am thinking about the case of fully rebuilding 100+ pages each time). I am considering breaking out various blog categories into a separate repositories, and then link to to their contents from a main index page.
I wonder what would be an appropriate solution to (automatically) making the pages of subsites/Framework projects discoverable by the main page? A simple routing structure would resemble something like the following, with the
root
being the main index repository and each second-level (posts
,notebooks
, etc.) entry a separate repo.Beta Was this translation helpful? Give feedback.
All reactions