Add links to code in documentation
https://www.sphinx-doc.org/en/master/usage/extensions/linkcode.html
See, e.g., https://github.com/matplotlib/matplotlib/blob/7506d1a3c83729be7584f6e6a4b38d97c0e757dd/doc/conf.py#L701 for inspiration (although it should be slightly easier for B-ASIC).