silverbulletmd / silverbullet-pub

Publish your Silver Bullet space to the Internet
https://pub.silverbullet.md
7 stars 2 forks source link

Ability to include css and other non-markdown files #6

Open justyns opened 6 months ago

justyns commented 6 months ago

Let me know if I'm overlooking a way to do this, but it'd be nice if there was an option to either have a postCommand config that runs another command/script, or maybe just the ability to also copy .css and .js files to _public automatically.

It's not a big deal, I'm doing this currently and it works fine:

SB_DB_BACKEND=memory silverbullet plug:run docs pub.publishAll && cp docs/style.css docs/_public/

It doesn't work when using the publish command from inside SB though