Ir al contenido principal

Ralsina.Me — El sitio web de Roberto Alsina

Publicaciones sobre python (publicaciones antiguas, página 95)

Preview of Nikola Webapp

I ha­ve al­ready ma­de a few attemp­ts at tur­ning Niko­la, a sta­tic si­te and blog ge­ne­ra­tor in­to a we­ba­pp, wi­th va­ried suc­ce­ss. One of the bi­gger pro­ble­ms wa­s, I thi­nk, one of sca­le. I was thi­nking of so­me­thing to re­pla­ce http://wor­dpress.­com ... so­me­thing whe­re eve­r­yo­ne could host his own blog in ve­ry low cost in­fras­truc­tu­re.

But then agai­n... why not try to re­pla­ce all tho­se se­l­f-hos­ted wor­dpress ins­tan­ces out the­re? So, he­re's the we­ba­pp plu­gi­n!

It's ve­ry ear­ly sta­ges, no su­pport for pa­ges, on­ly su­ppor­ts ma­rk­do­wn, no con­fi­gu­ra­tion chan­ges, and you can't even rea­lly de­le­te things. But he­y, you can pos­t, whi­ch is 95% of the usage this wi­ll ge­t.

UP­DA­TE: if you are run­ning Niko­la from gi­thub mas­te­r, you can ins­ta­ll this using the plu­gins re­po: http://­plu­gin­s.­ge­tniko­la.­co­m/#we­ba­pp and it su­ppor­ts a lot mo­re than on the vi­deo abo­ve.

Nikola v6.1.0 is out!

I am ha­ppy to an­noun­ce ver­sion 6.1.0 of Niko­la, a sta­tic blo­g/­si­te ge­ne­ra­tor is out at the usual pla­ce in­clu­ding do­wn­loa­da­ble plu­gin­s, bu­gfixes, an­no­ta­tion­s, a new Es­pe­ran­to trans­la­tion and mo­re!

Lunchtime Nikola Feature: graphviz

Sin­ce we are in the pro­ce­ss of adding a plu­gin re­po for Niko­la, I wanted to add a sim­ple plu­gin the­re so that we can show how it wo­rks.

So he­re it is. You use this:

.. graphviz::

   digraph foo {
       "Idea" -> "tap tap tap" -> "Code";
   }

And you get (a­s­su­ming gra­ph­viz is ins­ta­lle­d, and this plu­gin is ins­ta­lle­d, etc.) this:

Leer más…

Being an Inclusive Project (and how GitHub saved my day)

I ha­ve pos­ted over 50 pos­ts he­re about Niko­la and most of them con­tain so­me­thing like "Niko­la, my sta­tic blo­g/­si­te ge­ne­ra­to­r". We­ll, tha­t's not the ca­se an­y­mo­re. From now on I wi­ll say "a sta­tic blo­g/­si­te ge­ne­ra­to­r". Wh­y? Le­t's see.

For star­ter­s, it's no lon­ger true that I wro­te it. Al­thou­gh I am sti­ll pus­hing mo­re co­de that an­yo­ne, the­re are 54 other con­tri­bu­tor­s. That num­ber is as­to­nis­hin­g. Wh­y? Be­cau­se I es­ti­ma­te the­re are around 200 Niko­la user­s. That means the ra­tio of con­tri­bu­tors to users is in­cre­di­bly hi­gh.

That is pro­ba­bly ex­plai­ned be­cau­se the way you build a si­te using Niko­la is ve­ry pro­gra­m­mer orien­te­d. You could des­cri­be a sta­tic si­te ge­ne­ra­tor as a sort of "si­te com­pi­le­r" and not be far off the ma­rk. Many of the be­ne­fi­ts, like you can host your pa­ge sour­ces in gi­thu­b! are com­ple­te­ly mis­te­rious to no­n-­pro­gra­m­mer­s. So, I ex­pec­ted that num­ber to be hi­gh, bu­t, ha­ving a 25% use­r=>­de­ve­lo­per con­ver­sion ra­te? Tha­t's bi­za­rre.

So, I sus­pect I did so­me things we­ll wi­th this pro­ject 1, and wanted to thi­nk them out lou­d, and try to fur­ther the­m.

One thing I thi­nk I did we­ll was that it's an in­clu­si­ve pro­jec­t. If you pro­po­se so­me­thing you are ge­tting heard and I am gi­ving the pro­po­sal a fair shake. I may re­ject it, but not out of han­d, but ins­tead after so­me thou­gh­t. And if I am un­su­re, it's ac­cep­te­d. I would ra­ther get so­me­thing I am not fond of than dri­ve out a con­tri­bu­tor 2 be­cau­se I may chan­ge my min­d, but a con­tri­bu­tor tha­t's go­ne is not co­ming ba­ck.

Sa­me thing about granting co­m­mit ri­gh­ts: want the­m? You get them wi­th the first suc­ce­ss­ful PR by just askin­g.

To­day the­re was ano­ther step on this di­rec­tio­n: I am not the so­le ad­min an­y­mo­re. No lon­ger is http­s://­gi­thu­b.­co­m/­ral­si­na/­niko­la the ca­no­ni­cal re­po, it's now http­s://­gi­thu­b.­co­m/­ge­tniko­la/­niko­la. The web­si­te? Not http://­niko­la.­ral­si­na.­me but http://­ge­tniko­la.­com, paid for 5 year­s. Added two ad­mins to eve­r­y­thing (the awe­so­me da­mia­na­vi­la and Kw­pol­ska). Ga­ve up so­le con­trol of a loooong list of things 3 and now I can get run over by a bus and things should not bi­tro­t.

It pro­tec­ts tho­se 54 other con­tri­bu­tors and few hun­dred users from my ever lo­sing heart or in­te­res­t, whi­ch is a real risk, and should be alle­viate­d.

I thi­nk the most im­por­tant bit about con­ver­ting users in­to con­tri­bu­tors thou­gh, is that you just need to be friend­l­y. And Niko­la is lar­ge­ly a friend­ly pro­jec­t. And tha­t's ma­de it a lot of fun for the past year or so.

I on­ce read that if you re­fu­s­ed to use co­de wri­tten by ass­ho­les you could not boot any OS. We­ll, that may be true, but that does­n't mean being an ass­ho­le is OK. This is a sma­ll pro­ject that does a sma­ll thin­g. But at least I feel con­fi­dent it's not wri­tten by ass­ho­le­s. And tha­t's a vic­to­ry in itsel­f.

OTOH the­re are so­me ma­jor de­ffi­cien­cies sti­ll. Di­ver­si­ty is good in so­me areas (geo­gra­phi­ca­ll­y, for ins­tan­ce) but AFAIK the per­cen­ta­ge of wo­men con­tri­bu­ting to the co­de­ba­se is 0% and I ha­ve no idea wh­y, and I would lo­ve to im­pro­ve tha­t.

So, lo­ts of wo­rk do­ne, lo­ts mo­re to do. Tha­t's a good po­si­tion to be in, I thi­nk.


1

Al­ter­na­ti­ve ex­pla­na­tio­n: I did so­me things so bad­ly I ha­ve dri­ven out 99% of the user ba­se.

2

Wi­thin rea­so­n.

3

Gi­thu­b's che­ck­lis­ts on Is­sues are great

4

Wi­thin rea­so­n.

5

Op­tio­na­l.

6

Not rea­ll­y.


Contents © 2000-2020 Roberto Alsina