Include full documentation (instead of library reference only). Fixes #696.
Showing the changes to lib/docs/filters/python (2 of 3 files). Show all
Unified · Split
| @@ -2,7 +2,7 @@ module Docs · 1 unmodified line | |||
| 2 | class Python | 2 | class Python |
| 3 | class CleanHtmlFilter < Filter | 3 | class CleanHtmlFilter < Filter |
| 4 | def call | 4 | def call |
| 5 | @doc = at_css '.body' | 5 | @doc = at_css('.body > section[id]') || at_css('.body') |
| 6 | 6 | ||
| 7 | root_page? ? root : other | 7 | root_page? ? root : other |
| 8 | 8 | ||
| @@ -29,6 +29,8 @@ module Docs · 28 unmodified lines | |||
| 29 | return 'Language Reference' if slug.start_with? 'reference' | 29 | return 'Language Reference' if slug.start_with? 'reference' |
| 30 | return 'Python/C API' if slug.start_with? 'c-api' | 30 | return 'Python/C API' if slug.start_with? 'c-api' |
| 31 | return 'Tutorial' if slug.start_with? 'tutorial' | 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 | return 'Basics' unless slug.start_with? 'library/' | 35 | return 'Basics' unless slug.start_with? 'library/' |
| 34 | return 'Basics' if slug.start_with? 'library/index' | 36 | return 'Basics' if slug.start_with? 'library/index' |