Linux Documentation
 help / color / mirror / Atom feed
* confusing ReST/html
@ 2025-11-12  4:59 Randy Dunlap
  2025-11-12  9:35 ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 4+ messages in thread
From: Randy Dunlap @ 2025-11-12  4:59 UTC (permalink / raw)
  To: Linux Documentation

I'm comparing Documentation/core-api/index.{rst,html} and
Documentation/driver-api/index.{rst,html}.

Lots (but not all) .rst files end with something like

.. only:: subproject and html

   Indices
   =======

   * :ref:`genindex`

Both of the core-api & driver-api index.rst files do...
with the difference being that core-api/index.rst has
one space following ".. only::" while driver-api/index.rst
has 2 spaces following ".. only::".

Does that make a difference?

When looking at the end/bottom of core-api/index.html,
there is *NO* heading "Indices" and *NO* link "Index" as there
is in driver-api/index.html.
Why? 

There are other cases like this one:

$ cd Documentation; git grep "^\.\. only:: [^ ]"

RCU/index.rst:.. only:: subproject and html
core-api/index.rst:.. only:: subproject and html
rust/index.rst:.. only:: rustdoc and html
rust/index.rst:.. only:: not rustdoc and html
trace/index.rst:.. only:: subproject and html
virt/index.rst:.. only:: html and subproject
wmi/devices/index.rst:.. only:: subproject and html


thanks.
-- 
~Randy


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

end of thread, other threads:[~2025-11-12 13:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-12  4:59 confusing ReST/html Randy Dunlap
2025-11-12  9:35 ` Mauro Carvalho Chehab
2025-11-12 12:08   ` Jani Nikula
2025-11-12 13:11     ` Mauro Carvalho Chehab

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