Publish org notes to HTML
To publish these notes, use the following:
- Use the
ox-publish
package. - Run
org-roam/generate-index.el
where code is defined for reading every note and linking it to the index. - Check the code in
org-roam/publish.el
where the project is defined. This code needs to be re-run if you ever want to change any export settings, e.g.html-header
. Remember to clear the cache if you want to change the export settings and not the content. - Check export templates in
~/.emacs.d/export_templates
- then
M-x org-publish-project
and selectorg
- may have to
(setq org-export-with-broken-links t)
1. debugging org-roam
- from this post
(org-id-update-id-locations) ;; Note: you may need `org-roam-db-clear-all' ;; followed by `org-roam-db-sync' (org-roam-db-sync) (org-roam-update-org-id-locations)
2. Sources on publishing
3. Sources for generate-index.el
- How to read a file in elisp
- How to get properties from org files programatically in elisp
- This is done using
org-element-map
which builds an AST for an org-file
- This is done using