Include full documentation (instead of library reference only). Fixes #696.
Unified · Split
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | ||
| 2 | 2 | class Python |
| 3 | 3 | class CleanHtmlFilter < Filter |
| 4 | 4 | def call |
| 5 | − @doc = at_css '.body' | |
| 5 | + @doc = at_css('.body > section[id]') || at_css('.body') | |
| 6 | 6 | |
| 7 | 7 | root_page? ? root : other |
| 8 | 8 | |
| @@ -29,6 +29,8 @@ module Docs · 28 unmodified lines | ||
| 29 | 29 | return 'Language Reference' if slug.start_with? 'reference' |
| 30 | 30 | return 'Python/C API' if slug.start_with? 'c-api' |
| 31 | 31 | return 'Tutorial' if slug.start_with? 'tutorial' |
| 32 | + return 'Distributing' if slug.start_with? 'distributing' | |
| 33 | + return 'Distributing' if slug.start_with? 'distutils' | |
| 32 | 34 | |
| 33 | 35 | return 'Basics' unless slug.start_with? 'library/' |
| 34 | 36 | return 'Basics' if slug.start_with? 'library/index' |
| @@ -7,22 +7,7 @@ module Docs · 6 unmodified lines | ||
| 7 | 7 | code: 'https://github.com/python/cpython' |
| 8 | 8 | } |
| 9 | 9 | |
| 10 | − options[:only_patterns] = [ | |
| 11 | − # /\Ac-api/, | |
| 12 | − /\Adistributing/, | |
| 13 | − # /\Adistutils/, | |
| 14 | − /\Aextending/, | |
| 15 | − /\Afaq/, | |
| 16 | − /\Ahowto/, | |
| 17 | − /\Aindex.html/, | |
| 18 | − # /\Ainstall/, | |
| 19 | − /\Ainstalling/, | |
| 20 | − /\Alibrary/, | |
| 21 | − /\Areference/, | |
| 22 | − /\Atutorial/, | |
| 23 | − /\Ausing/, | |
| 24 | − ] | |
| 25 | − | |
| 10 | + options[:skip_patterns] = [/genindex/, /whatsnew/] | |
| 26 | 11 | options[:skip] = %w( |
| 27 | 12 | library/2to3.html |
| 28 | 13 | library/formatter.html |
| @@ -37,7 +22,7 @@ module Docs · 8 unmodified lines | ||
| 37 | 22 | HTML |
| 38 | 23 | |
| 39 | 24 | version '3.10' do |
| 40 | − self.release = '3.10.4' | |
| 25 | + self.release = '3.10.6' | |
| 41 | 26 | self.base_url = "https://docs.python.org/#{self.version}/" |
| 42 | 27 | |
| 43 | 28 | html_filters.push 'python/entries_v3', 'sphinx/clean_html', 'python/clean_html' |