code: def validate_files(pelican):
      
      for dirpath, _, filenames in os.walk(pelican.settings['OUTPUT_PATH']):
          for name in filenames:
              if should_validate(name):
                  filepath = os.path.join(dirpath, name)
                  validate(filepath)
docs: Validate a generated HTML file
      :param pelican: pelican object