Hello Jan, you can use relative URI reference like `Some_file <../some_file.txt>`_. Important is only to keep in mind that it is not relative to the RST source file (docs/documentation.rst), but to the public URL where RST source will be published.
For example, if docs/tutorial.rst ends up as mysite.com/docs/tutorial.html, a reference `Some_file <../some_file.txt>`_ will point to mysite.com/some_file.txt. Matt https://blog.documatt.com On Tue, Jul 7, 2020 at 9:15 AM Jan Valošek <valosek...@seznam.cz> wrote: > I would like to create symbolic link inside sphinx doc (inside > https://github.com/my_repo/docs/documentation.rst file) pointing to file > in same GitHub repo (e.g. https://github.com/my_repo/some_file.txt). > Something like this: > > `Some_file <https://github.com/my_repo/some_file.txt>`_ > > However, example above is absolute link. I would like to create relative > link; something like this: > > `Some_file <../some_file.txt>`_ > > Is it possible? > > Thank you, > JV > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sphinx-users/51373cde-a797-4595-9436-6260e0c25d78o%40googlegroups.com > <https://groups.google.com/d/msgid/sphinx-users/51373cde-a797-4595-9436-6260e0c25d78o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/CAOGNDW8bDM-mZxaB_zJWZLwnbDwQDQG9b6k82bb4ci0Ty8u4dg%40mail.gmail.com.