msnoigrs / ox-rst

reStructuredText Back-End for Org-Mode Export Engine
116 stars 18 forks source link

Support sphinx refs for project local links #50

Closed dajva closed 5 years ago

dajva commented 5 years ago

Sphinx is using refs to project internal targets in other files. This patch convert org mode file links to such refs. Enabled via setting.

I don't know how much sphinx specific constructs you support, iow how willing you are to accept patches like this. This seems to be the single most important missing feature in this package for using org mode to write docs for readthedocs.io though.

This patch could probably be improved a bit if you think it's a good idea to include it. For instance, this might not need a separate setting but could be merged into org-rst-link-use-ref-role possibly. Might also want some sanity checks on the file links to make sure the file is reachable from the project.

msnoigrs commented 5 years ago

Thanx.