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

qthelp: keywords entries are wrong #791

Closed
shimizukawa opened this issue Jan 2, 2015 · 3 comments
Closed

qthelp: keywords entries are wrong #791

shimizukawa opened this issue Jan 2, 2015 · 3 comments
Labels

Comments

@shimizukawa
Copy link
Member

Generating qthelp with index entries doesn't work with sphinx 1.1

Whereas sphinx < 1.1 created for example

<keywords>
    <keyword name="eins" ref="tcl.html#index-0"/>
    <keyword name="zwei" ref="tcl.html#index-1"/>
</keywords> 

Sphinx >=1.1 creates

<keywords>
    <keyword name="eins" ref="('', 'tcl.html#index-0')"/>
    <keyword name="zwei" ref="('', 'tcl.html#index-1')"/>
</keywords>    

which results in non-functional links...


@shimizukawa
Copy link
Member Author

From Broder1977 on 2011-10-13 14:49:35+00:00

I was able to fix this for my needs by changing line 266 in builders/qthelp.py as given below, but may be this needs more work...

Greetings Björn

{{{
#!python

    # TEMPORARY FIX #
    ref_ = ref[-1]

    if id:
        item = ' '*12 + '<keyword name="%s" id="%s" ref="%s"/>' % (
                                                            name, id, ref_)
    else:
        item = ' '*12 + '<keyword name="%s" ref="%s"/>' % (name, ref_)  

}}}

@shimizukawa
Copy link
Member Author

From Georg Brandl on 2011-11-01 08:26:46+00:00

Closes #791: Fix QtHelp and HtmlHelp index entry links.

→ <<cset 8fdeaec>>

@shimizukawa
Copy link
Member Author

From Georg Brandl on 2014-10-18 07:33:11+00:00

Removing version: 1.1 (automated comment)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant