ssg-for-sdf/README.md

23 lines
1.5 KiB
Markdown
Raw Normal View History

2020-06-28 18:19:17 -04:00
# ssg-for-sdf
2020-06-30 03:46:58 -04:00
I just started messing around as part of looking for a way to make
contributing to tutorials easier, and got as far as using 'ssg5', from [[https://rgz.ee/ssg.html]], which was recommended as a markdown-converting static site generator on another board here.
2020-06-28 18:19:17 -04:00
I had problems with Markdown.pl not working but I posted to REQUESTS, and they added it (but at the time I used cpanm and installed that library locally*, and then ssg worked!)
2020-06-30 03:46:58 -04:00
Because I didn't like how it silently would fail on the markdown problem,
2020-06-30 03:51:22 -04:00
so I added a little pipeline-tracing with the bash 'caller' command (I
2020-06-30 03:46:58 -04:00
looked it up), and so with that it becomes a bash script instead of a plain
2020-06-30 03:51:22 -04:00
sh script, but I think it's better. I posted it here on the sdf git if anyone
wants to try it out.
2020-06-30 03:46:58 -04:00
2020-06-30 04:04:30 -04:00
It's cool, it processes markdown first then HTML, so existing HTML files are untouched until you delete them from src folder.
\*Hopefully the admins fix it before it matters, but here's what I used to [install the perl module I needed with cpanm](https://stackoverflow.com/questions/2980297/how-can-i-use-cpan-as-a-non-root-user)--Text::Markdown--which you can ignore installing cpanm because it's already installed on SDF. It's just:
2020-06-30 03:58:20 -04:00
curl http://cpanmin.us | perl - -l ~/perl5 App::cpanminus local::lib
2020-06-30 03:55:07 -04:00
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
2020-06-30 03:57:35 -04:00
cpanm Text::Markdown