Good morning @kaushalmodi I'm wondering if you're around for a question.

I was writing about my recent experiences with ox Hugo and realized something: ox Hugo be used to create the md files directly on Netify? That requires ( I think) for ox Hugo to work from inside Netify? I'm looking for such docs.

Follow

@jtr

> ox Hugo be used to create the md files directly on Netify?

Yes, that's how the 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

· · Web · 1 · 0 · 0

@jtr

Replying to mastodon.technology/@jtr/10783 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

@jtr

> 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. 😃

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!