3 ms·
I think it'd be a great fit to introduce some kind of 'git' hooks that could work just like github actions. Currently, I have a static blog served @ [0] and it
by trevcanhuman 5y ago
I think it'd be a great fit to introduce some kind of 'git' hooks that could work just like github actions.
Currently, I have a static blog served @ [0] and it is literally a git repo that runs git hooks. I think the project you're doing is awesome, but it would be nice if it could be tuned, e.g. choose my markdown processor of preference, etc.
the git repo for the blog is here: [1]
My blog uses a forked tool called blogit (made by pedantic.software) and it's makefiles and a standard markdown processor with raw html templates for headers, footers, etc.
I haven't actually used this but I think it's promising: (mkws.sh) [2]
just spitballing some ideas here and there. Nice project.
references
[0] https://trevcan.duckdns.org/blog/ https://trevcan.duckdns.org/blog/
[1] https://git-trevcan.duckdns.org/trevcan.github.io.git/ https://git-trevcan.duckdns.org/trevcan.github.io.git/
[2] https://mkws.sh/ https://mkws.sh/
- symkat 5y agoHi! Thanks for the feedback! There is some support in there for build-time changing of things. A file, .markdownsite.yml, can be read in and do things like change where the directory containing markdown files, or the webroot is, and will switch branches. Definitely a place that could be expanded — if you take a look at Manager/lib/MarkdownSite/Manager/Plugin/Maker.pm you’ll see how it builds. So maybe some of that can fit in, and alternative builders are certainly something to think about. As far as git hooks, right now, you could add one to make your site import with the following: A githook could trigger an import with curl, for example: curl -XPOST -d'repo=git@github.com:symkat/mds-example.markdownsite.net.git' https://markdownsite.com/import https://markdownsite.com/import The first run will make the site and assign a domain, subsequent runs update the same domain. Thanks for checking it out and your feedback, definitionally given me some things to think about!