-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Expand file tree
/
Copy pathpowershell.rb
More file actions
22 lines (21 loc) · 718 Bytes
/
powershell.rb
File metadata and controls
22 lines (21 loc) · 718 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module Docs
class Powershell < FileScraper
self.name = 'PowerShell'
self.type = 'simple'
self.release = '7.5'
self.base_url = 'https://learn.microsoft.com/en-us/powershell'
self.root_path = 'docs-conceptual/overview.html'
self.initial_paths = [
'module/index.html',
]
self.links = {
home: 'https://learn.microsoft.com/powershell',
code: 'https://github.com/MicrosoftDocs/PowerShell-Docs'
}
html_filters.push 'powershell/clean_html', 'powershell/entries'
options[:skip_patterns] = [/\/\//] # otherwise infinately adding the same pages
options[:attribution] = <<-HTML
The MIT License (MIT) Copyright (c) Microsoft Corporation
HTML
end
end