Skip to main content

Ralsina.Me — Roberto Alsina's website

Posts about python (old posts, page 92)

New project: Nikola Event Kit

The Python Ar­genti­na group or­ga­nizes lots of events. Like, half a dozen ev­ery year, or more. Those in­clude mul­ti­-­day events like Py­Cam­p, larg­er con­fer­ences like Py­Con, and sev­er­al Py­Days.

Py­Days are spe­cial, they are usu­al­ly sin­gle-­track, just one day (ob­vi­ous­ly), free, and or­ga­nized at uni­ver­si­ties, for stu­dents, and of­ten by stu­dents. And one stum­bling block is usu­al­ly how to set­up the web in­fra­struc­ture for one. There is a we­b2py app cre­at­ed by Mar­i­ano Rein­gart, but I feel it's overkil­l. Al­so, set­ting up host­ing, databas­es, cus­tomiza­tion­s, etc. is a lot of work!

So, I de­cid­ed, prod­ded by Juan Ro­driguez Mon­ti, to see how much can be done with­out set­ting up com­plex things. And I think it's quite a lot. Based on Niko­la my stat­ic site gen­er­a­tor, I cre­at­ed a tem­plate site for small events, like Py­Days, called Niko­la Event Kit

The goal is that you should be able to set­up ba­sic con­tent, signup for­m, sched­ule, and the ob­vi­ous need­ed things in one day. And then you can al­lo­cate an­oth­er day or more for cus­tomiz­ing the look of the site.

And then you are done, no need to de­ploy any­thing oth­er than plain HTM­L.

If you want to test-­drive it, here's a de­mo site and here is the code ready for you to fork in­to your own even­t's site.

Have fun!

New Nikola Feature: SVG Charts via Pygal

I can't sleep, so I just whipped to­geth­er a do­cu­tils di­rec­tive that wraps py­gal for Niko­la, my stat­ic site and blog gen­er­a­tor.

So, how do you use it? LIke this:

.. chart:: Bar
    :title: 'Browser usage evolution (in %)'
    :x_labels: ["2002", "2003", "2004", "2005", "2006", "2007"]

    'Firefox', [None, None, 0, 16.6, 25, 31]
    'Chrome',  [None, None, None, None, None, None]
    'IE',      [85.8, 84.6, 84.7, 74.5, 66, 58.6]
    'Others',  [14.2, 15.4, 15.3, 8.9, 9, 10.4]

Read more…

Nikola Themes Repo is Now Official

As of 1 minute ago, Niko­la github mas­ter's "in­stal­l_the­me" com­mand pulls themes from http://themes.niko­la.ralsi­na.me

So, sud­den­ly, in­stead of 2 themes for down­load, you have ~65 (although of course, most of them are bootswatch vari­a­tions in 2 themes, jin­ja-de­fault looks ex­act­ly like de­fault, and or­phan is use­less ;-)

And you can con­trib­ute themes now!

How?

  1. Give me a pull re­quest at http­s://github.­­com/get­niko­la/niko­la-themes

    All you have to do is add your theme in themes/ and pull re­quest.

  2. Send me a zip of your theme and I'll do it.

Con­tribut­ing themes will take a while be­cause the theme has to be ex­am­ined for ma­li­cious code in the tem­plates, but I will process them, slow­ly but sure­ly. If you have sent me a theme in the past and I have not done it, I am ter­ri­bly sor­ry and hope you can find it in you to try one more time :-)

The themes site it­self is not ex­act­ly awe­some, but it is func­tion­al, and you can get themes from there too, and see de­mo sites for each the­me, and even look at au­to­gen­er­at­ed screen­shots (which sad­ly don't show web­fonts)


Contents © 2000-2023 Roberto Alsina