emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Org-Mode Homepage error


From: Achim Gratz
Subject: Re: [O] Org-Mode Homepage error
Date: Sun, 31 Jul 2011 19:42:16 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Bastien <address@hidden> writes:
> Mhh...  I tried to patch org-info-src.js with this fix, to recompile 
> it (and get org-info.js).  I copied the result here:
>
>   http://orgmode.org/org-info2.js 

That is the same file I have produced myself now.

> Then setting this path in `org-infojs-options', I tried various ways 
> of getting a working HTML file, with the new div structure, but with 
> no good result.

Could you be more specific what is a "no good result"?  I've been
generating the index.html in org-info-js and it now works without error
for me.  I've even found a simpler patch that is based on the class
of the title heading so that it is found regardless of its position in
preamble or content:

--8<---------------cut here---------------start------------->8---
Diff --git a/code/org-info-js/org-info-src.js b/code/org-info-js/org-info-src.js
index 2e49e9c..b521c50 100644
--- a/code/org-info-js/org-info-src.js
+++ b/code/org-info-js/org-info-src.js
@@ -738,7 +738,7 @@ var org_html_manager = {
 
     // Move the title into the first visible section.
     // TODO: show title above everything if FIXED_TOC !!!
-    t.TITLE = t.BODY.getElementsByTagName("h1")[0];
+    t.TITLE = document.getElementsByClassName("title")[0];
     if(t.INNER_TITLE && !t.FIXED_TOC && t.VIEW != t.SLIDE_VIEW) {
       t.INNER_TITLE = t.TITLE.cloneNode(true);
       /* TODO: this is still based on wrong behaviour of browsers (same id for 
two elements)
--8<---------------cut here---------------end--------------->8---

It seems that there may be an implicit assumption that the title is in
the same DIV as the content.  This seems to work OK in FF5 and
Konqueror 4.6.5 (WebKit), however it may break in other browsers.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf Blofeld V1.15B11:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada




reply via email to

[Prev in Thread] Current Thread [Next in Thread]