Showing the changes to lib/docs/scrapers/python.rb (1 of 54 files). Show all
Unified · Split
| @@ -50,5 +50,11 @@ module Docs · 49 unmodified lines | |||
| 50 | 50 | ||
| 51 | html_filters.push 'python/entries_v2', 'sphinx/clean_html', 'python/clean_html' | 51 | html_filters.push 'python/entries_v2', 'sphinx/clean_html', 'python/clean_html' |
| 52 | end | 52 | end |
| 53 | |||
| 54 | def get_latest_version(options, &block) | ||
| 55 | fetch_doc('https://docs.python.org/', options) do |doc| | ||
| 56 | block.call doc.at_css('.version_switcher_placeholder').content | ||
| 57 | end | ||
| 58 | end | ||
| 53 | end | 59 | end |
| 54 | end | 60 | end |