nroam icon indicating copy to clipboard operation
nroam copied to clipboard

support for exporting to the html project

Open HumHongeKamyaab opened this issue 3 years ago • 7 comments

I use org-publish-current-project to export my org-roam folder files into a html project.

After using nroam, I am not able to export my files. I am getting Text is read-only message when I am trying to do it.

I use following config to do exporting by using .dir-locals.el

((nil . ((eval .
;; (require 'ox-publish)
(setq org-publish-project-alist
      '(
("org-notes"
 :base-directory "~/.org-roam/"
 :base-extension "org"
 :publishing-directory "~/.org-roam/public_html/"
 :recursive t
 :publishing-function org-html-publish-to-html
 :headline-levels 4             ; Just the default for this project.
 :auto-preamble t
 )
("org-static"
 :base-directory "~/.org-roam/"
 :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
 :publishing-directory "~/.org-roam/public_html/"
 :recursive t
 :publishing-function org-publish-attachment
 )
("org" :components ("org-notes" "org-static"))
      ))
))))

HumHongeKamyaab avatar Mar 12 '21 04:03 HumHongeKamyaab

May be it will be better, if this simple export can export links to the backlinks also in the html files. This feature is missing in org-roam as they have seperate buffer for backlinks.

HumHongeKamyaab avatar Mar 12 '21 13:03 HumHongeKamyaab

@HumHongeKamyaab can you try now that https://github.com/NicolasPetton/nroam/pull/12 has been merged?

The backlink sections won't be exported, but I hope that at least it will resolve your issue. I'll see if it makes sense to make that configurable so that you can choose to include backlinks in your exports.

NicolasPetton avatar Mar 12 '21 13:03 NicolasPetton

No, I am still getting "Text is read-only" message

HumHongeKamyaab avatar Mar 12 '21 14:03 HumHongeKamyaab

Commit 7ae549a should fix the bug, closing.

NicolasPetton avatar Mar 13 '21 13:03 NicolasPetton

I still getting same error.

HumHongeKamyaab avatar Mar 14 '21 04:03 HumHongeKamyaab

Ok, reopening :)

NicolasPetton avatar Mar 14 '21 08:03 NicolasPetton

I'm also think that ability to export backlinks to HTML with org-publish will be very great feature.

smeagol74 avatar Jul 07 '21 06:07 smeagol74