|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
module Docs
|
|
|
|
|
class Python < FileScraper
|
|
|
|
|
class Python < UrlScraper
|
|
|
|
|
self.type = 'python'
|
|
|
|
|
self.root_path = 'index.html'
|
|
|
|
|
self.links = {
|
|
|
|
@ -23,12 +23,12 @@ module Docs
|
|
|
|
|
library/sunau.html)
|
|
|
|
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
|
|
© 2001–2023 Python Software Foundation<br>
|
|
|
|
|
© 2001–2024 Python Software Foundation<br>
|
|
|
|
|
Licensed under the PSF License.
|
|
|
|
|
HTML
|
|
|
|
|
|
|
|
|
|
version '3.12' do
|
|
|
|
|
self.release = '3.12.1'
|
|
|
|
|
self.release = '3.12.4'
|
|
|
|
|
self.base_url = "https://docs.python.org/#{self.version}/"
|
|
|
|
|
|
|
|
|
|
html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html'
|
|
|
|
|