code: def get_docs_url(self, role, name):
          
  
          # Expand partial names to full names
          name = self.get_full_name(role, name)
          # Look up domain corresponding to role
          dom = IntersphinxInventory.roledomain[role]
          # Get the inventory entry tuple corresponding to the name
          # of the referenced type
          itpl = self.inv[dom][name]
          # Get the required path postfix from the inventory entry
          # tuple
          path = itpl[2]
          # Construct link url, appending the base url or note
          # depending on the addbase flag
          return self.baseurl + path if self.addbase else path
docs: Get a url for the online docs corresponding to a sphinx cross
          reference :role:`name`.