> ox Hugo be used to create the md files directly on Netify?
Yes, that's how the #oxHugo doc site is updated every night.
> That requires ( I think) for ox Hugo to work from inside Netify?
Netlify servers have emacs installed. So you only need to run a script or Makefile that runs emacs in batch mode that does the following:
1. Installs ox-hugo from Melpa
2. Runs the org-hugo-export-wim-to-md on all the *.org files you need to export.
1/2
Replying to https://mastodon.technology/@jtr/107836246875598113 here :)
Yep, Netlify is just a remote server with basic stuff like emacs, etc. already installed.
So you can run anything using emacs remotely that you already do on your local machine.
If you can come up with a scripted flow to export Org to md and then run hugo on that locally, you can call that script on Netlify too.
@kaushalmodi that opens a world of options (having emacs running remote like this).
I don't yet have the knowledge of scripting it, but I can look into this.
For instance, gitlab has a built in support for org files so I can present my documents directly to co-worker without emacs and without exporting to HTML etc. In a way, gitlab creates the html for me and it looks good.
I know emacs has support for export to different CSS and html built in, used to look into that a while back. But online? mmm
> that opens a world of options (having emacs running remote like this).
Yep, I remember that feeling when I realized that for the first time as well. 😃
@jtr
The #oxHugo doc site is generated using `make doc`. Makefile: https://github.com/kaushalmodi/ox-hugo/blob/main/Makefile
2/2