emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ox-publish: no HTML output but no errors
@ 2022-02-25 14:14 c.buhtz
  2022-02-25 16:02 ` Max Nikulin
  0 siblings, 1 reply; 4+ messages in thread
From: c.buhtz @ 2022-02-25 14:14 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

I tried to use ox-publish to create HTML files out of my org files 
(created via org-roam v2) using the Tutorial 
https://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html .

The output directory is empty but I also do not have a valuable error 
output. On that point I did not know where to go.
I evaluatet the code (below) via C-x C-e and then did M-x 
org-publish-project RET org RET.

The message buffers looks like this

20 (("org-notes" :base-directory "~/tab-cloud/my.org-roam/" 
:base-extension "org" :publishing-directory "~/tab-cloud/_transfer/html" 
:recursive t :publishing-function org-html-publish-to-html :\
     headline-levels ...) ("org-static" :base-directory 
"~/tab-cloud/my.org-roam/" :base-extension 
"css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf" 
:publishing-directory "~/tab-cloud/_transfe\
     r/html" :recursive t :publishing-function org-publish-attachment) 
("org" :components ("org-notes" "org-static")))
  21 Loading /home/user/.org-timestamps/org-notes.cache...done
  22 Publishing file 
/home/user/tab-cloud/my.org-roam/20211109001227-programming_languages.org 
using ‘org-html-publish-to-html’
  23 48 files scanned, 45 files contains IDs, and 47 IDs found.
  24 45 files scanned, 45 files contains IDs, and 47 IDs found. [6 times]
  25 user-error: Unable to resolve link: 
"c6693020-d065-4d4f-8be8-650c66eee3e6"
  37 Publishing file 
/home/user/tab-cloud/my.org-roam/20211109001227-programming_languages.org 
using ‘org-html-publish-to-html’
  38 45 files scanned, 45 files contains IDs, and 47 IDs found. [7 times]
  39 user-error: Unable to resolve link: 
"c6693020-d065-4d4f-8be8-650c66eee3e6"

This is the piece of code (in scratch buffer) IMHO very near to the 
tutorials example

;https://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html
(require 'ox-publish)
(setq org-publish-project-alist
       '(
        ("org-notes"
        :base-directory "~/tab-cloud/my.org-roam/"
        :base-extension "org"
        :publishing-directory "~/tab-cloud/_transfer/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 "~/tab-cloud/my.org-roam/"
        :base-extension 
"css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
        :publishing-directory "~/tab-cloud/_transfer/html"
        :recursive t
        :publishing-function org-publish-attachment
       )
       ("org" :components ("org-notes" "org-static"))
       )
)

I have round about 50 org files in my archive. There is one error about 
a dead link. But this should be no problem. Dead links are OK for me and 
also a "valid content" in the context of a Zettelkasten. A dead link is 
not a reason to stop the whole process.

The "html" folder is absolute empty. Nothing in there.

How can I go on with diagnosis?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ox-publish: no HTML output but no errors
  2022-02-25 14:14 ox-publish: no HTML output but no errors c.buhtz
@ 2022-02-25 16:02 ` Max Nikulin
  2022-03-06  9:05   ` c.buhtz
  0 siblings, 1 reply; 4+ messages in thread
From: Max Nikulin @ 2022-02-25 16:02 UTC (permalink / raw)
  To: emacs-orgmode

On 25/02/2022 21:14, c.buhtz@posteo.jp wrote:
> 
> I tried to use ox-publish to create HTML files out of my org files 
> [ ... ]
> 
> The output directory is empty but I also do not have a valuable error 
> output. On that point I did not know where to go.
> 
> [ ... ]
> 
>   39 user-error: Unable to resolve link: 
> "c6693020-d065-4d4f-8be8-650c66eee3e6"
> 
> I have round about 50 org files in my archive. There is one error about 
> a dead link. But this should be no problem. Dead links are OK for me and 
> also a "valid content" in the context of a Zettelkasten. A dead link is 
> not a reason to stop the whole process.

Some users may consider a broken link as a fatal error. If you need 
different behavior, you can get it. See info "(org) Export Settings" 
https://orgmode.org/manual/Export-Settings.html for "broken-links".



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ox-publish: no HTML output but no errors
  2022-02-25 16:02 ` Max Nikulin
@ 2022-03-06  9:05   ` c.buhtz
  2022-03-07 14:59     ` Max Nikulin
  0 siblings, 1 reply; 4+ messages in thread
From: c.buhtz @ 2022-03-06  9:05 UTC (permalink / raw)
  To: emacs-orgmode

Dear Max,

thank you for the hint.

On 2022-02-25 23:02 Max Nikulin <manikulin@gmail.com> wrote:
> Some users may consider a broken link as a fatal error. If you need 
> different behavior, you can get it. See info "(org) Export Settings" 
> https://orgmode.org/manual/Export-Settings.html for "broken-links".

From the manual it is not clear for me how to set that option.
In-buffer is not an option for me. I tried to set it like this

(require 'ox-publish)
(setq org-publish-project-alist
      '(
       ("org-notes"
       :base-directory "~/tab-cloud/my.org-roam/"
       :base-extension "org"
       :publishing-directory "~/tab-cloud/_transfer/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 "~/tab-cloud/my.org-roam/"
       :base-extension
"css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf"
:publishing-directory "~/tab-cloud/_transfer/html" :recursive t
       :publishing-function org-publish-attachment
      )
      ("org" :components ("org-notes" "org-static")
       :broken-links "mark"
       )
      )
)

But this has no effect.
I also tried to "(setq org-export-with_broken-links t)". But the
message keeps the same.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: ox-publish: no HTML output but no errors
  2022-03-06  9:05   ` c.buhtz
@ 2022-03-07 14:59     ` Max Nikulin
  0 siblings, 0 replies; 4+ messages in thread
From: Max Nikulin @ 2022-03-07 14:59 UTC (permalink / raw)
  To: emacs-orgmode

On 06/03/2022 16:05, c.buhtz wrote:
> 
> On 2022-02-25 23:02 Max Nikulin wrote:
>> Some users may consider a broken link as a fatal error. If you need
>> different behavior, you can get it. See info "(org) Export Settings"
>> https://orgmode.org/manual/Export-Settings.html for "broken-links".
> 
>  From the manual it is not clear for me how to set that option.
> In-buffer is not an option for me. I tried to set it like this
> 
> (setq org-publish-project-alist
> [...]
>        ("org" :components ("org-notes" "org-static")
>         :broken-links "mark"

See info "(org) Publishing options"
https://orgmode.org/manual/Publishing-options.html

     :with-broken-links mark

> But this has no effect.
> I also tried to "(setq org-export-with_broken-links t)". But the
> message keeps the same.

You have a typo in the variable name. Try completion when entering 
variable to minimize a chance of mistake:
     M-x customize-variable RET org-export-with-broken-links RET

You may have a look into ox.el in particular at 
`org-export-options-alist' that defines relations between options, 
export options, and global variables.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-03-07 15:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-25 14:14 ox-publish: no HTML output but no errors c.buhtz
2022-02-25 16:02 ` Max Nikulin
2022-03-06  9:05   ` c.buhtz
2022-03-07 14:59     ` Max Nikulin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).