-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Reference not rendered correctly in sphinx 2.2.0 #6705
Comments
Which html theme are you using? Is there any Sphinx extension involved? Any kind of CSS customization? I do not reproduce the problem with either alabaster or classic. I also tried RTD theme. However the output does show some strange problem with lack of space in output, as we see comparing with 1.8.5 output: Strange nobody reported this so far (I will check later if this is existing issue; it might also depend on my Firefox settings regarding fonts). |
Yes I see - with the I am not an expert with I will check with that internal theme... |
With Sphinx 1.8.5 I see each reference uses a
but with 2.0 or later one sees a global |
Regarding the lack of space, it is simply an insufficient CSS. For example Alabaster contains only
and basic.css seems not having either special configuration. Thus I "fixed" it using a
and I added to conf.py
here is out it comes out with Alabaster then In such circumstances the latexpdf has some means to compute an automatic label width, one wonders if something to this effect should be added to html. Anyway, this still does not address your original issue, which as you reported might be related to some custom theme. The important point is that probably existing themes do not style enough the References section since Sphinx 2.0 release which has modified the HTML tags used. New mark-up seems much better but it may require additional CSS styling be added to the themes. Perhaps basic.css should get enhanced for some reasonable default. Ping @tk0miya if you have idea about this? |
As described by @jfbu, Sphinx moves to HTML5 by default. And it uses |
The design/element change for footnotes made them look ugly and they did not render correctly on RTD. Using the "old" writer should fix this until a better solution comes up. Ref: sphinx-doc/sphinx#6705 [skip ci]
Describe the bug
References are not rendered correctly in the references section. See the screenshot below.
To Reproduce
Content of the file
source/index.rst
:compiled with
Expected behavior
I expected to see the text
Sterratt2015
in blue above the phrase 'Reference3' like the other two references. Instead, you see only the indices '1' and '2', but no indication of the actual reference.Screenshots
Environment info
The text was updated successfully, but these errors were encountered: