Closed oprypin closed 3 years ago
So, we could specify multiple URLs to try and fetch the inventory file, but there's no way to specify the base URL, which could be different, or hard to resolve from the inventory URL for the handler?
we could specify multiple URLs to try and fetch the inventory file,
Oh, no, this is just individual URLs of different inventories. There's no support for fallbacks or different base url, indeed.
That'd need to be designed. But I think it can be just an extension of this. Say, instead of a string you just pass a list or a dict with those values
We decided to do inventory handling in mkdocstrings after all, not in autorefs
I just wanted to rebase this to get the smaller diff. Still don't intend to merge this though :>
These identifiers are then possible to refer to, they're checked against and substituted (as absolute URLs) in case there's no such identifier on the current site.
Example of how an external handler can be registered:
https://github.com/mkdocstrings/crystal/compare/inv#commit_comments_bucket