playwright.rb 758 B

123456789101112131415161718192021222324252627
  1. module Docs
  2. class Playwright < UrlScraper
  3. self.name = 'Playwright'
  4. self.type = 'simple'
  5. self.release = '1.53.2'
  6. self.base_url = 'https://playwright.dev/docs/'
  7. self.root_path = 'intro'
  8. self.links = {
  9. home: 'https://playwright.dev/',
  10. code: 'https://github.com/microsoft/playwright'
  11. }
  12. # Docusaurus like react_native
  13. html_filters.push 'playwright/entries', 'playwright/clean_html'
  14. options[:download_images] = false
  15. # https://github.com/microsoft/playwright/blob/main/LICENSE
  16. options[:attribution] = <<-HTML
  17. &copy; 2025 Microsoft<br>
  18. Licensed under the Apache License, Version 2.0.
  19. HTML
  20. def get_latest_version(opts)
  21. get_npm_version('@playwright/test', opts)
  22. end
  23. end
  24. end