The Stochastic Game

Ramblings of General Geekery

Posts with tag 'piecrust'

    PieCrust 3.0

    Last year I announced PieCrust 2.0 without much fanfare and, guess what, here comes PieCrust 3.0 now! The funny thing is that I didn’t post much about PieCrust during that whole time… the joke about blog engines is that the more you work on them, the less you actually use them. So as is tradition, I released the new version of PieCrust on the Python package server and immediately found a bunch of new bugs, which I proceeded to fix (we’re now at PieCrust 3.
    Read more...

    Piecrust 2.0 and Beyond

    As is tradition, PieCrust 2.0 was released without much fanfare a few weeks ago. Just like with the previous version, it just happened because, well, nothing happened: I was using PieCrust for a couple other websites without any problem or need for new features, so I figured it might be as good a time as any to make it official. Time to run pip install -U piecrust. Since then of course I found a few bugs, so a 2.
    Read more...

    Happy New Year!

    Happy new year and other such holiday things to the 3 people who read my blog! I was in San-Francisco for new year’s eve and it was quite lovely. Apart from the sake of posting something new, this post is also to show off how PieCrust’s admin panel can now upload page assets (in this case, that would be the picture above… check the URL, it’s hosted right here). This feature will be part of the impending 2.
    Read more...

    PieCrust 2.0rc2

    PieCrust 2.0rc2 was published a couple days ago, and it’s mostly a bug fix and clean-up release, as you might expect. Run your pip install piecrust --pre -U to update, or whatever you do usually. More info after the jump. Since there are mostly bug fixes in this release, there’s only a few small user-facing change to discuss here. SFTP publisher Are you using the recent new publishing features? You should!
    Read more...

    Baking faster with hoedown

    Update: the times reported by the Bench utility are CPU times, i.e. they represent the time spent working by your various CPUs. The “real/wall” time, i.e. the time you effectively have to wait as a user, is usually a third less than that. So the “real” time for my blog went roughly from 7 seconds to 5 seconds. In a previous blog post about PieCrust performance, I mentioned how static site generators are dependent on the performance of their formatting and templating libraries.
    Read more...

    Piecrust 2.0rc1

    PieCrust 2.0rc1 is now out! The last piece of the puzzle (or should I say the pie?), page generators, is now in place. You can run pip install piecrust --pre -U to update from PyPi, or grab it from BitBucket or GitHub. More details after the break. Page generators The big new feature in this release are page generators. They’re basically a generalization of the previous taxonomy feature, which used to let you define taxonomies (tags, categories, etc) to classify your pages, and then PieCrust would generate one page for each term that you use (e.
    Read more...

    Piecrust Drives A Truck

    PieCrust 2.0 beta 5 is now live on PyPi, so you can go ahead and pip install --pre piecrust -U to get it. The 2 big new features in that release are the last reasons I switched to Python for PieCrust 2 after packaging and multi-core support: better ways to launch and manage sub-processes. This lets me do: Publishing support, because baking your site is only the beginning, and you actually need to upload that stuff somewhere.
    Read more...

    Multi-core PieCrust 2

    PieCrust news – and this blog – have been pretty quiet for the past couple months, and that’s because I’ve been busy working on PieCrust 2 performance. TL;DR: PieCrust 2 now runs in multiple cores, which speeds up the baking process quite a bit. Update your repositories, or grab the latest version from Pypi! More details after the break. Remember the performance graph from the PieCrust 2 announcement post? Back then, PieCrust 2 was taking around 6.
    Read more...

    Piecrust 1.x is Officially Deprecated

    It had to happen eventually, but PieCrust 1.x is now officially deprecated. It was deprecated more or less unofficially before, as you can see from the lack of activity on the repository, but, well, here it is. The PieCrust 2 help pages are now showing up by default at the official URL, and that’s where I’ll be focusing from now on. If you want to upgrade your existing 1.x website to 2.
    Read more...

    Piecrust 2 Documentation Preview

    I’ve been quite silent for the past few weeks because I’ve been mostly working on the PieCrust 2 documentation website – a lot of time spent writing stuff, trying out different layouts, figuring out how to organize the information, and coding the infrastructure tools that will generate separate documentations for each release. Now at least I’ve got half of something to show, in case some of you want to provide feeback or – gasp – help!
    Read more...

    New features in PieCrust 2

    Now that you know about PieCrust 2 and you’ve upgraded your website, it’s time to look at the really new features. Today we’ll talk about the 2 ones that I think are most important: the new content model, and the new pagination model. (this post is going to be a bit long so here’s something to keep you hungry) Sources, routes, and taxonomies In PieCrust 1, like in most other static website generators, the way content was defined was quite rigid: you could have pages, and you could have blog posts.
    Read more...

    Upgrading to PieCrust 2

    The recently announced PieCrust 2 is all fine and dandy if you were to create a new website – the command line interface and user experience are essentially the same out of the box – but you will find that it can’t handle an existing PieCrust 1 website. This is because a few things have changed… luckily, the chef import command and this blog post will get you going in no time!
    Read more...

    Announcing PieCrust 2

    I’ve been busy on it for longer than I expected – neglecting the freshly announced Wikked along with several pull requests on PieCrust – but I believe it’s at last ready for a public alpha release: PieCrust 2 is here! WARNING: before you go clone the new repository, be aware that, at the time of writing this, it has been tested on a glorious total of 2 machines (both my own), and 2 websites (both my own as well).
    Read more...

    PieCrust 1.1

    It’s been long overdue, since PieCrust 1.0 was released more than 4 months ago, but at last it’s here: PieCrust 1.1! Every time I figure I will go with a “release small, release often” kind of philosophy, I still end up with more of a “wait, I’ll just get this last feature ready first” kind of vicious circle… sigh. Anyway, grab the new release, or keep reading if you want to know about the most important changes.
    Read more...

    PieCrust 1.0

    PieCrust reached the big milestone of version 1.0 without much fanfare – and this post won’t be any different from the other release announcements. After a few release candidates I figured I would never be quite satisfied, so why not just keep going with the releases and not pay too much attention to the first digit. You’ll see releases 1.1.0 and up coming soon, with the usual bunch of fixes, changes, and new features.
    Read more...

    Blog Archives in PieCrust

    The question has come up a couple times already via email or Twitter, so here’s a quick recipe to write a nice looking archive page for your PieCrust blog. There are 2 main types of blog archives: monthly archives and yearly archives. We’ll look at them one at a time after the break. Yearly archives This is the simplest one. Because PieCrust exposes your posts sorted by year in the blog.
    Read more...

    PieCrust 1.0 RC

    The past month has been pretty busy, between my next secret project, my day job, and of course fixing PieCrust bugs. But somehow among this chaos seems to be emerging a release candidate for PieCrust 1.0. And it’s only fitting that I announce this on Pi Day! As always, for a complete list of changes, I’ll redirect you to the changelog. But for the highlights, please read on. Big thanks go to the few people who contributed patches to the PieCrust code, and to the many who reported bugs and had the patience to help me fix them.
    Read more...

    PieCrust on Heroku

    When I first decided to work on PieCrust, I settled with PHP as the language – even though it mostly sucks – in an attempt to make it broadly available. Anybody who runs a blog on Wordpress should be able to switch and enjoy the perks of plain text data without needing to install and learn a whole new environment. That doesn’t mean PieCrust can’t also be used in the nerdiest ways possible.
    Read more...

    Piecrust 0.8.0

    The 0.8.0 (and even 0.8.1!) version of PieCrust has been tagged in the stable branch. As usual: I still need to write some documentation on the new and/or changed features. I’m really not good at keeping a single release focused around a small set of consistent new features. I tend to pack different unrelated features mixed with bug fixes as they come to me, and the result is a bit messy.
    Read more...

    Why PieCrust?

    Recently I realized I’ve been working on, and talking about, PieCrust for quite a while, but I have never given any reason as to why on Earth I have written my own CMS and static site generator when there are so many already out there. Like many open-source projects, PieCrust was born out of 2 very self-centered stimuli. One: it’s fun to write new stuff! And by “new”, here, I’m of course talking about things that were new to me at the time.
    Read more...

    Announcing PieCrust For Vim

    After my Mercurial plugin for Vim, Lawrencium, here’s my second official Vim plugin! You won’t be surprised to know it’s a PieCrust plugin which adds a few commands that make it easier to work on your website. It’s of course named “vim-piecrust” and is available on BitBucket. Well, actually, at the moment it’s only got on command: Pcedit. You will need the latest PieCrust to make it work. When you do, typing :Pcedit something<tab> in Vim will bring an autocomplete list that contains any page, post or template that contains “something” in its filename.
    Read more...

    Piecrust 0.6.0

    I’ve been focusing a lot of my free time on PieCrust these days – to the point where my other projects are suffering from it – but I’m getting close to a possible 1.0 release, which is good! But in the meantime, here’s version 0.6.0, which is not very big but still has some goodness in it. You can go read the newly created CHANGELOG file for the whole list of changes, new features and bug fixes, but here are the most important ones, right after the break.
    Read more...

    Navigation menu in PieCrust

    Here’s another post in the PieCrust cookbook series, this time focusing on a classic web-design pattern: the navigation menu. It’s really just a bunch of links that you can put somewhere around each page’s content, but the trick here is to tell the user which page he’s currently on. This is pretty easy to do using Twig macros and the data exposed by PieCrust, assuming of course you’re using PieCrust’s default template engine.
    Read more...

    PieCrust 0.4.0

    The holidays have not just been a time spent with the family eating unhealthy amounts of equally unhealthy food: it was also a time of great changes for PieCrust. So much, actually, that I bumped the version number up twice. This is not just because those changes are pretty significant but also because they break things a bit. Plugins! Yes, at last, PieCrust officially supports plugins! The code was already somewhat designed as such, but there was no easy way to write, install and manage plugins before.
    Read more...