You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
module Docs
|
|
|
|
class Playwright < UrlScraper
|
|
|
|
self.name = 'Playwright'
|
|
|
|
self.type = 'simple'
|
|
|
|
self.release = '1.46.1'
|
|
|
|
self.base_url = 'https://playwright.dev/docs/'
|
|
|
|
self.root_path = 'intro'
|
|
|
|
self.links = {
|
|
|
|
home: 'https://playwright.dev/',
|
|
|
|
code: 'https://github.com/microsoft/playwright'
|
|
|
|
}
|
|
|
|
|
|
|
|
# Docusaurus like react_native
|
|
|
|
html_filters.push 'playwright/entries', 'playwright/clean_html'
|
|
|
|
options[:download_images] = false
|
|
|
|
|
|
|
|
# https://github.com/microsoft/playwright/blob/main/LICENSE
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
© 2024 Microsoft<br>
|
|
|
|
Licensed under the Apache License, Version 2.0.
|
|
|
|
HTML
|
|
|
|
|
|
|
|
def get_latest_version(opts)
|
|
|
|
get_npm_version('@playwright/test', opts)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|