Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export generate wrong link #2395

Open
spavlovich001 opened this issue Oct 9, 2023 · 0 comments
Open

export generate wrong link #2395

spavlovich001 opened this issue Oct 9, 2023 · 0 comments

Comments

@spavlovich001
Copy link

spavlovich001 commented Oct 9, 2023

(setq org-publish-project-alist
        '(("org-documentation"
           :base-directory "~/.emacs.d/org/documentation"
           :publishing-directory "~/.emacs.d/org_html"
           :recursive t
           :publishing-function org-html-publish-to-html
           ;; :auto-preamble t
           )

          ("org-static"
           :base-directory "~/.emacs.d/org/documentation"
           :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|php\\|svg"
           :publishing-directory "~/.emacs.d/org_html"
           :recursive t
           :publishing-function org-publish-attachment)

          ("org-roam-static"
           :base-directory "~/.emacs.d/org/org-roam-notes"
           :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|php\\|svg"
           :publishing-directory "~/.emacs.d/org_roam_notes_html"
           :recursive t
           :publishing-function org-publish-attachment)

          ("org-roam-notes"
           :base-directory "~/.emacs.d/org/org-roam-notes"
           :publishing-directory "~/.emacs.d/org_roam_notes_html"
           :recursive t
           :publishing-function org-html-publish-to-html
           ;; :auto-preamble t
           )

          ("org-roam-all" :components ("org-roam-notes" "org-roam-static"))
          ;; ("org-all" :components ("org-documentation" "org-static" "org-roam-notes" "org-roam-static"))))

M-x:org-publish

1st level link generate correctly, but 2-nd and other link generate wrong:

;; generate link like this:
file:///dev/shm/emacs-.emacs.d-user/org/org-roam-notes/20231009051338-some.html#ID-98b00d55-f0bf-4ea3-b7c5-caa1dc622641

;; correctly path:
file:///dev/shm/emacs-.emacs.d-user/org_roam_notes_html/20231009051338-some.html#ID-98b00d55-f0bf-4ea3-b7c5-caa1dc622641

file ~/.emacs.d

/home/user/.emacs.d: symbolic link to /dev/shm/emacs-.emacs.d-user

How to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant