The issue is that the header for methods doesn't repeat the class name. The anchor is p_norm, not TransactionBudget.p_norm. Note the original Sphinx is set to qiskit_addon_obp.utils.truncating.TruncationErrorBudget.p_norm, which we do preserve via the MDX component's ID.
Add a span to the heading with the id set to what's expected
Have updateLinks.ts realize it's an inlined class and remove the class
Don't have updateLinks.ts remove the prefix qiskit_addon_obp.utils.truncating.. Ensure the link checker correctly loads id="qiskit_addon_obp.utils.truncating.TruncationErrorBudget.p_norm" from the <Function> component.
https://github.com/Qiskit/documentation/blob/8b17877094259e36dff221c919781ce38fa9d636/scripts/js/lib/links/ignores.ts#L335-L342
The issue is that the header for methods doesn't repeat the class name. The anchor is
p_norm
, notTransactionBudget.p_norm
. Note the original Sphinx is set toqiskit_addon_obp.utils.truncating.TruncationErrorBudget.p_norm
, which we do preserve via the MDX component's ID.This happens because:
https://github.com/Qiskit/documentation/blob/8b17877094259e36dff221c919781ce38fa9d636/scripts/js/lib/api/updateLinks.ts#L95-L99
Three ways to fix this:
id
set to what's expectedqiskit_addon_obp.utils.truncating.
. Ensure the link checker correctly loadsid="qiskit_addon_obp.utils.truncating.TruncationErrorBudget.p_norm"
from the<Function>
component.