AttributeError: 'Values' object has no attribute 'link_base'

I have a Django 5.0 project and I am running Sphinx to generate the docs where Iam getting an error as follows

Exception occurred:
File “D:\ENV\Lib\site-packages\django\contrib\admindocs\utils.py”, line 116, in _role
inliner.document.settings.link_base,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: ‘Values’ object has no attribute ‘link_base’

Is there any solution for this Error

I haven’t come across it myself but this article might provide a way out for you? It looks fairly recent as well which helps.