useblocks / sphinx-simplepdf

A simple PDF builder for Sphinx documentations
https://sphinx-simplepdf.readthedocs.io
MIT License
36 stars 15 forks source link

Compability with sphinx.ext.viewcode - links point to files on local harddrive #30

Open 1kastner opened 1 year ago

1kastner commented 1 year ago

When I generate the docs, there are several links called [source]. They are fine for the online docs. I guess in the PDF they should be totally dropped. In my case, there are links in the PDF pointing to html files located on my local harddrive. It is a fully-qualified path so the links easily break when the PDF is copied to other computers.

EDIT: To be more precise, the link is like the following:

file:///my/path_to/the/project/docs/_build/simplepdf/_modules/.../the_class.html#ClassName.method_name