code: def vhasdoc(self, other_version):
          
          if self.context['current_version'] == other_version:
              return True
          return self.context['pagename'] in self[other_version]['found_docs']
docs: Return True if the other version has the current document. Like Sphinx's hasdoc().
  
          :raise KeyError: If other_version doesn't exist.
  
          :param str other_version: Version to link to.
  
          :return: If current document is in the other version.
          :rtype: bool