emacs-love / weblorg

Static Site Generator for Emacs
https://emacs.love/weblorg
GNU General Public License v3.0
280 stars 21 forks source link

Update example with companion docker image usage #40

Closed nanzhong closed 3 years ago

nanzhong commented 3 years ago

This follows from https://github.com/emacs-love/weblorg/issues/31.

I've cleaned up my container based workflow for weblorg and pushed it to https://github.com/nanzhong/weblorg-docker. It's very much in a proof of concept state, but if this is something people find useful, I'm happy to donate this to the emacs-love org. Depending on the use case some of the file watching logic could be rewritten and supported directly in weblorg, or weblorg could support incremental builds of only what needs to be rebuilt and this tooling could be used to drive the notification/rebuild loop.

This updates the simpleblog example with a Makefile with a phony dev target to demonstrate how it could be used. I'm not sure if there's a better way to demonstrate the use case.

clarete commented 3 years ago

Hi @nanzhong. Thank you for the time you put into this, I tried it locally and it was very cool to see the notifier picking up changes! the build itself has failed for me with something that could be a local issue? this is what I get:

==> /workspace/posts/ MODIFY full-example.org
=> Kicking off build...
=> Exporting via weblorg...
emacs [stderr] > Symbol's function definition is void: make-closure

Do you think it could be related to any artifacts left by my local Emacs (that runs the master branch I compile ~weekly)? I bashed into the container and tried to run emacs --script publish.el manually but it fails the same way. And weirdly enough, even adding (setq debug-on-error) to publish.el I didn't really get a traceback. I'll continue to debug this on my side, but let me know if you have any ideas of what I could do differently.

This is very exciting and it will accelerate the development of themes. I think once we craft a nice little standard here, we should use this to build weblorgs documentation as well 😄 Thank you! 🙇🏾

nanzhong commented 3 years ago

@clarete Interesting error. I haven't been able to reproduce it. I also run emacs built off master (from a few days ago) and can't reproduce it. The emacs version that's included in the container is 27.1 so it's weird that it fails as well.

In your case were you running this against the simpleblog example?

guilhermecomum commented 3 years ago

Sorry about the delay and thanks for your contribution @nanzhong !!

clarete commented 3 years ago

Sorry I dropped the ball here @nanzhong, thanks for all the work here. And thanks @guilhermecomum for testing and merging the PR!! 😄 🙇🏾