Skip to main content

Ralsina.Me — Roberto Alsina's website

Posts about Posts about bartleblog (old posts, page 3)

Son of bartleblog XI: the highlight of the syntax

I had a few min­utes wait­ing for yum to do its thing and added a cou­ple of easy fea­tures:

bartleblog9

The Sil­verCi­ty-based code-block syn­tax high­light­ing di­rec­tive was re­placed with a ver­sion us­ing Pyg­ment which sup­ports more lan­guages and is (I think) nicer look­ing... and comes with sev­er­al styles, as you can see above in the con­fig­u­ra­tion di­a­log.

Oth­er than that, I added sup­port in the back­end to:

  • Re­­gen­er­ate HTML from RST ev­ery­where

  • Do the same on­­ly on items marked "dirty"

  • A mod­­el thingie that shows if there are posts or sto­ries with RST er­rors

  • Some GUI love

I need to make the con­fig di­a­log sup­port more than one gad­get at the same time, though ;-)

Son of BartleBog X: Lots of small things are a big thing

  • I did the tag ed­i­­tor:

bartleblog7

The "Guess Tags" but­ton in the com­pos­er us­es the "Mag­ic word­s" de­fined for each tag to give you a start­ing set, which you can ed­it lat­er. Still has a few im­ple­men­ta­tion is­sues (thus the tagless­ness of this post) but it's al­most there.

  • Us­ing HTMLTidy I made all the HTML val­i­­date (as tran­si­­tion­al, at least­­).

  • Us­ing browser­­cam I made sure this page works on ev­ery de­­cent brows­er (it looks bad on IE 4.0, and Net­s­cape 6):

bartleblog8

There is a nasty prob­lem with IE and JavaScrip­t, where if you have a <scrip­t> that does some spe­cif­ic things in­side of a <di­v> it tends to give a weird "Op­er­a­tion abort­ed" di­a­log af­ter show­ing part of the page, and then delete what you were se­ing. That is a known, con­firmed bug, and has been there for three ma­jor ver­sions al­ready.

  • Added a feed­Box wid­get that can dis­­­play as a side­bar any feed that us­es Feed­Burn­er's Buz­z­­Boost (see "Lat­est com­­ments" on the side­bar).

I am now toy­ing with us­ing Feed­Burn­er's API to (op­tion­al­ly) au­to­mat­i­cal­ly pub­lish all the RSS feeds Bartle­Blog gen­er­ates there, thus mak­ing this kind of thing more trans­par­en­t.

Son of BartleBlog IX: Eating my own dog food

Even though it's not re­al­ly ready, I am switch­ing my blog to Bartle­Blog.

The idea is that I do blog. So I should be able to fo­cus on what's need­ful for my own kind of blog. For ex­am­ple, right now, the idea of not be­ing able to tag this post is driv­ing me nut­s.

Son of bartleblog VIII: Some Qt love

Now that the back­end is still iffy but gen­er­ates a blog, I fi­nal­ly start­ed show­ing some love to the UI.

Here's the brand new post ed­i­tor:

bartleblog6

The far-right two but­tons should let you choose your flickr pho­to/openo­my file re­spec­tive­ly and add the link/thumb­nail eas­i­ly (the UI is not done yet).

The for­mat to write is Re­struc­tured Text or HTML (non wysi­wyg) but oth­er things like Tex­tile or wi­ki markup should be easy to ad­d.

The main win­dow us­es a Qt mod­el to cre­ate the tree with views (right now) by date, but with al­ter­na­tive or­ga­ni­za­tions soon.

Son of Bartleblog VI: The flickr directive

I added a Re­struc­tured Text di­rec­tive that takes as ar­gu­ment the ti­tle of one of your (my) flickr pic­tures, like this:

.. flickr:: pa120071

And pro­duces this:

Which is much nicer than my im­ages have looked for a while.

It can still be im­proved, prob­a­bly add a cap­tion, link to im­age com­ments if avail­able, etc.

The bad side is that if you don't have in­ter­net ac­cess the ren­der­ing fail­s.


Contents © 2000-2023 Roberto Alsina