public inbox for linux-doc@vger.kernel.org
 help / color / mirror / Atom feed
* Invalid link generation for equations
@ 2026-03-18 12:56 Kevin Brodsky
  2026-03-20  0:06 ` Bagas Sanjaya
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Kevin Brodsky @ 2026-03-18 12:56 UTC (permalink / raw)
  To: linux-doc; +Cc: Jonathan Corbet, Shuah Khan

Hi,

I have noticed that links to equation images are not generated correctly
on docs.kernel.org. For instance, Documentation/mm/memory-model.rst has:

    .. math::
    
       NR\_MEM\_SECTIONS = 2 ^ {(MAX\_PHYSMEM\_BITS - SECTION\_SIZE\_BITS)}

The generated HTML [1] shows the source code instead of the rendered
equation because the link to the image [2] is broken. [3] does however
exist. The issue seems to be that the link is relative to the root, even
though we are in a subfolder (mm/ here).

Given my non-existent knowledge of Sphinx I have no idea what the fix
might be, but I thought I'd report this at least :)

- Kevin

[1] https://docs.kernel.org/mm/memory-model.html#sparsemem
[2]
https://docs.kernel.org/mm/_images/math/d99368220bfdedf1a888b1c09eb7236a8c87d079.png
[3]
https://docs.kernel.org/_images/math/d99368220bfdedf1a888b1c09eb7236a8c87d079.png


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

end of thread, other threads:[~2026-03-26  9:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-18 12:56 Invalid link generation for equations Kevin Brodsky
2026-03-20  0:06 ` Bagas Sanjaya
2026-03-20  3:10   ` Randy Dunlap
2026-03-21  1:49     ` Bagas Sanjaya
2026-03-22 21:05 ` Jonathan Corbet
2026-03-25 20:23 ` Jonathan Corbet
2026-03-25 20:40   ` Shuah Khan
2026-03-25 21:11     ` Jonathan Corbet
2026-03-25 21:40       ` Mauro Carvalho Chehab
2026-03-26  9:30         ` Akira Yokosawa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox