It would be really helpful if eclass references included stable identifiers permitting us to link to individual functions/variables defined in an eclass. For example, I'd use something like: https://devmanual.gentoo.org/eclass-reference/multibuild.eclass/#run_in_build_dir
I don't think this can be done with our current tooling using eclass-to-manpage followed by man2html. I think the way to go is to get rid of man2html and convert eclass documentation to DevBook XML directly.