I'm using a Makefile to generate HTML for my org folder to turn into a website, but I'm just starting to use org-journal which doesn't put filename extensions on it's files. When trying to run a command on the file...
emacs -Q --batch journal/2021-05-27 -f org-html-export-to-html
Gives the output
Debugger entered--Lisp error: (void-function org-html-export-to-html) org-html-export-to-html() command-line-1(("journal/2021-05-27" "-f" "org-html-export-to-html")) command-line() normal-top-level()
I presume this is because it doesn't recognise the file as an org file, but I'm uncertain at what to do. I've thought of temporarily renaming all the files to org, but I was hoping to have a more... elegant solution just by a different emacs command.
I tried the following command but I also get a
emacs -Q --batch journal/2021-05-27 -e "(progn (org-mode) (org-html-export-to-html))"
So... the question is: How can I use emacs to convert an org-journal file to html?