local referencing with sphinx.ext.autosectionlabel

131 views
Skip to first unread message

Andy Cheesman

unread,
Oct 29, 2019, 9:31:14 AM10/29/19
to sphinx-users
Hi people

I'm using  sphinx.ext.autosectionlabel and would like to reference a section heading inside the document.
Is there a way to do this without typing in the fully qualified path of the document?

Thanks

Andy 

Komiya Takeshi

unread,
Nov 1, 2019, 9:40:59 AM11/1/19
to sphinx...@googlegroups.com
Hi,

What "fully qualified path" mean? Do you enable
autosectionlabel_prefix_document?

FWIW, you can refer it with hyperlink references notation (like
`section title`_) if they are in same source file.
I guess you don't need to use autosectionlabel extension in this case.
http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#hyperlink-references

Thanks,
Takeshi KOMIYA

2019年10月29日(火) 22:31 Andy Cheesman <vanc...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups "sphinx-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/90f3a4f4-7e8a-416c-b651-39f2dc495512%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages