You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.4 KiB

3 years ago
# ssg-for-sdf
I just started messing around as part of looking for a way to make
contributing to tutorials easier, and got as far as using 'ssg', from [[]], which was recommended as a markdown-converting static site generator on another board
3 years ago
I had problems with not working (I posted to REQUESTS, somehow
the perl Text:Markdown isn't working), but I used cpanm and installed that
3 years ago
library locally*, and then ssg worked!
Because I didn't like how it silently would fail on the markdown problem,
3 years ago
so I added a little pipeline-tracing with the bash 'caller' command (I
looked it up), and so with that it becomes a bash script instead of a plain
3 years ago
sh script, but I think it's better. I posted it here on the sdf git if anyone
wants to try it out.
\*Hopefully the admins fix it before it matters, but here's what I used to [install the perl module I needed with cpanm]( you can ignore installing cpanm because it's already installed on SDF. It's just:
eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`
echo 'eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`' >> ~/.profile
echo 'export MANPATH=$HOME/perl5/man:$MANPATH' >> ~/.profile
3 years ago
cpanm Text::Markdown
It's cool, it processes markdown first then HTML, so existing HTML files are untouched until you delete them from src folder.