wrong generation of index

52 views
Skip to first unread message

Stefano David

unread,
Nov 13, 2012, 9:59:06 AM11/13/12
to sphinx...@googlegroups.com

Hi there,
It seem I can't create a working index in HTML, though it in latex/pdf. As an example, in the file first.rst i have the line:

.. index:: Firewall rules, network interface, IP address

which creates, in the latex source, the correct line:

\index{Firewall rules}\index{network interface}\index{IP address}

Also in the first.html there is a <p id="index-6"> anchor, but in the genindex.html page I can find:

<h2 id="F">F</h2>
<table width="100%" class="indextable"><tr><td width="33%" valign="top">
<dl>

<dt><a href="('', 'first.html#index-6')">Firewall rules</a></dt></dl></td><td width="33%" valign="top"><dl>
</dl></td></tr></table>

As you see, the href can not work (perhaps there should be some .js file that translates that href into an URL that I am missing). it seems that some method fails in creating the correct full (relative) hyperlink.

My guess is that the sphinx builders/writers are doing their job correctly, but the HTML index-generating class/method is not. I have no idea where to look for it... Any idea?

Thank you in advance,
Stefano

gilberto dos santos alves

unread,
Nov 13, 2012, 12:52:25 PM11/13/12
to sphinx...@googlegroups.com
please what is your sphinx version?

2012/11/13 Stefano David <ste...@gmail.com>


--
You received this message because you are subscribed to the Google Groups "sphinx-users" group.
To post to this group, send email to sphinx...@googlegroups.com.
To unsubscribe from this group, send email to sphinx-users...@googlegroups.com.
Visit this group at http://groups.google.com/group/sphinx-users?hl=en.
 
 



--
gilberto dos santos alves
+55.11.98646-5049
são paulo - sp - brasil





Stefano David

unread,
Nov 14, 2012, 4:23:45 AM11/14/12
to sphinx...@googlegroups.com
Hi


On Tuesday, 13 November 2012 18:52:28 UTC+1, gsavix wrote:
please what is your sphinx version?
Sorry, forgot to mention it:

Version: 1.1.3+dfsg-4 (on Debian Wheezy with Python 2.7.3rc2 and docutils 0.8.1).

Cheers,
Stefano

gilberto dos santos alves

unread,
Nov 14, 2012, 8:14:53 AM11/14/12
to sphinx...@googlegroups.com
i have using for my tests sphinx 1.2 (pre) see  in http://auvix.com.br/usradm/_build/
i have generations in pdflatex, html, single html, epub, htmlhelp of aria2 command for portuguese brasil (pt_br) and in source of http://auvix.com.br/usradm/_build/html/genindex.html i see all things work (what i missed?) is my index similar of your question?

2012/11/14 Stefano David <ste...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "sphinx-users" group.
To post to this group, send email to sphinx...@googlegroups.com.
To unsubscribe from this group, send email to sphinx-users...@googlegroups.com.
Visit this group at http://groups.google.com/group/sphinx-users?hl=en.
 
 

Stefano David

unread,
Nov 14, 2012, 9:50:03 AM11/14/12
to sphinx...@googlegroups.com
Hi Gilberto,
First of all, thanks for your answer.


On Wednesday, 14 November 2012 14:14:59 UTC+1, gsavix wrote:
i have using for my tests sphinx 1.2 (pre) see  in http://auvix.com.br/usradm/_build/
i have generations in pdflatex, html, single html, epub, htmlhelp of aria2 command for portuguese brasil (pt_br) and in source of http://auvix.com.br/usradm/_build/html/genindex.html i see all things work (what i missed?) is my index similar of your question?
No, unfortunately not. :(

As as far as I can see, you do not make use of explicit .. index:: markups like I do, your index seems to be generated automatically out of functions and command line options.
In my document, I have also RFC entries (like you have) and they are created correctly in my index.

Cheers!
Stefano

Stefano David

unread,
Nov 14, 2012, 10:04:05 AM11/14/12
to sphinx...@googlegroups.com

On Wednesday, 14 November 2012 15:50:03 UTC+1, Stefano David wrote:
In my document, I have also RFC entries (like you have) and they are created correctly in my index.
No, this is not true. Also these RCF entries are wrong as well. I must becoming blind...

There's something more, however. All terms that are listed in the glossary (which is a separated file, glossary,rst) instead of

<a href="('', 'first.html#index-6')">

are generated as

<a href="('main', 'glossary.html#term-user-agent')">

So I think there's something wrong with the builder/writer. Perhaps this additional info can help someone pointing me in the right direction?

Thanks,
Stefano

gilberto dos santos alves

unread,
Nov 14, 2012, 10:18:35 AM11/14/12
to sphinx...@googlegroups.com
if is possible, please, put your results where we can see.
regards.

2012/11/14 Stefano David <ste...@gmail.com>

Stefano

--
You received this message because you are subscribed to the Google Groups "sphinx-users" group.
To post to this group, send email to sphinx...@googlegroups.com.
To unsubscribe from this group, send email to sphinx-users...@googlegroups.com.
Visit this group at http://groups.google.com/group/sphinx-users?hl=en.
 
 

Stefano David

unread,
Nov 20, 2012, 6:36:42 AM11/20/12
to sphinx...@googlegroups.com
Hi Gilberto,

Sorry for taking so much, I've been busy with other commitments. But I found the problem...

In short, there was a wrong template genindex.html left behind by someone before I took charge of the project... Nice, uh?

Anyway., let me thank for your efforts and sorry for bugging!

Cheers,
Stefano


Stefano David

unread,
Dec 6, 2012, 4:45:01 AM12/6/12
to sphinx...@googlegroups.com
Hi,

On Wednesday, 21 November 2012 07:21:47 UTC+1, Reto Grolimund wrote:
thanks for your SOLVED -- but where do I found this commitment ?
isnt' it in::


I'm new to VCS but using sphinx much. this is maybe well useful for others.
Sorry, perhaps I  haven't been clear enough, but I wasn't referring to *commits*  but to other *commitments* (i.e., duties, tasks) related to my job.
The problem was on my side, not on sphinx's, so I had nothing to commit or submit...

Hope it's clearer now. :-)

Cheers,
Stefano

Reply all
Reply to author
Forward
0 new messages