docs: def build_chart(name, version=None, paths=None):
      """Update chart with specified version or last-modified commit in path(s)"""
      chart_file = os.path.join(name, 'Chart.yaml')
      with open(chart_file) as f:
          chart = yaml.load(f)
  
      if version is None:
          if paths is None:
              paths = ['.']
          commit = last_modified_commit(*paths)
          version = chart['version'].split('-')[0] + '-' + commit
  
      chart['version'] = version
  
      with open(chart_file, 'w') as f:
          yaml.dump(chart, f)
  
      return version