Steps for building content folder from org files using org-roam
Table of Contents
Tools used
- org-mode
- org-roam
- Using ox-hugo
- Ninja
- python
Set up
- Install ninja: Ninja build tool
- Run
./convertOrgToMd.py. Do this if you see issues with python:dos2unix convertOrgToMd.py - Install hugo. https://gohugo.io/getting-started/quick-start/
Install pagefind. PageFind- Run
./build.sh. Do this if you see issues with it:dos2unix build.sh
Permission issues
bash: ./example.sh: Permission denied
To solve this issue, we need to give ourselves execution privileges: chmod u+x example.sh
Project layout
The org files are in the directory org_files
build.py exports them into markdown format using ox-hugo.
init.el has the minimal config required to export the org files using ox-hugo.
jethrow-publish.el has a couple of utility functions that build.py uses.
Other options that I tried
- I tried doing this using Rust and Java.
- But none of them are as fast as doing it with ninja build tool.