Search & Index

40 views
Skip to first unread message

Patrick Hamill

unread,
Jul 20, 2021, 6:12:59 AMJul 20
to sphinx-users
Hi everyone, 

I'm very new to Sphinx. I'm wondering if anyone can help me resolve an issue regarding the generation of my Index page. I am operating on MacOS.

I have, at the top of my index.rst file: 

.. _search: 
.. _genindex: 

And, at the bottom: 

Indices and Tables 
=================

* :ref:`search`

* :ref:`genindex`


However, my terminal issues me with the error message: 

'Failed to create a cross reference. A title or caption not found: genindex'

and the same for 'search' 

Darren Ng

unread,
Jul 29, 2021, 9:25:20 PMJul 29
to sphinx-users
Hi hamillp...,

If you reference target is not title/sectiontitle/... you might want to use
"Internal hyperlink targets with empty link blocks" [1]_

Here is an example (contact me if it is expired)
https://paste.rs/3VZ.rst

.. [1] https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#internal-hyperlink-targets

2021-07-30
Darren Ng
 
Reply all
Reply to author
Forward
0 new messages