so much for lightweight markup
This is for a static website, BTW.
I'm done with fast-changing dynamic frameworks & CMS all-in-ones with even half the dependencies of "Hello World" in Ruby on Rails.
so much for lightweight markup
Rendering the same 6-paragraph, 65-line source markup file (reStructuredText or pandoc's Markdown flavor) into a 154-line HTML 5 target file:
py36-rst2html5: 1.05 seconds
py36-docutils: 0.65 seconds
hs-pandoc: 2.50 seconds
Rendering the same source file content through Jamal, "Just Another Macro Language," a perl script from 1997 & last updated 2010:
jamal: 0.05 seconds
These look tiny now, but what happens when I go over 100 pages then tweak the template?
docutils documentation [ - ]
I can't use either docutils or rst2html5 to generate a complete HTML page with my template, because there's no way I can find to specify the page title in the page head from within the .rst source file, with or without a custom template.
ed(1) tricks & tips
Sometimes when you do a substitution, you don't want the first match in the line but a subsequent one. With ed(1), you can specify which you want:
$ ed
a
#!/bin/sh
echo xxxxx echo zzzzz
.
s/x/X/4p
echo xxxXx echo zzzzz
s/echo/yyyyy/2p
echo xxxXx yyyyy zzzzz
This also works with sed(1)
$ echo xxxxx | sed s/x/X/3
xxXxx
If you want to take out a mortgage and hold down a steady job, then I support you. I just think that if you're born a baby, you're always going to be a baby and can't change that. https://redd.it/9s6xci
filking, copied from birdsite
*tmbg voice*
article bad, article bad
reading the thing is making me sad
what's it about?
i don't care
article bad
is the take hot?
does the tone lack respect?
are we blaming millennials or Gen X?
what's it say?
it's not important
article bad
(sources https://twitter.com/Lubchansky/status/628661854324326400 - https://twitter.com/lycrashampoo/status/754548732851466240 )
docutils documentation [ - ]
How do I use a per-page title 2x in an rst2html5 template file without:
* using sed, awk, or any other text/macro processing system on the command line, or
* typing more than 1 line of boilerplate giving the title in the .rst source file?
None of the docs I can find say.
docutils documentation [ - ]
I like that docutils will produce a complete html file from reStructuredText input.
I like that the default html template can be overridden or extended & that basic examples are given.
But who thought it a good idea to a) not *document* the template format(s), & b) use a default template that doesn't even match the basic examples' formatting language?
US pol
Ok, so radicals are right in most or all of their critiques of voting. But! Imagine the US is a fossil-fuel car. We really need to replace it with a train running on sustainable energy. Voting for a new driver won't do any of that.
However! That car is currently speeding down a steep hill towards a bunch of school kids who are all holding puppies and kittens while meeting Tony the Tiger. The driver is hitting the gas.
Changing the driver actually is a really good thing to do right now.
✨ Kind 'Net Help Desk fairy by day. ✨
✨ Weird & furry Unix fairy by night. ✨
✨ Sometimes a retrocomputer fairy. ✨
✨ Pays the ComputerFairi.es bills. ✨
✨ Sparkly✨shellscript✨princess. ✨
✨ Age: Mere days younger than ✨
✨ the Intel 4004 & Unix 1st Edition. ✨
✨ Follow requests welcome. ✨
✨
✨