Unified · Split
| @@ -27,6 +27,7 @@ module Docs · 26 unmodified lines | |||
| 27 | 27 | ||
| 28 | def get_type | 28 | def get_type |
| 29 | return 'Logging' if slug.start_with? 'library/logging' | 29 | return 'Logging' if slug.start_with? 'library/logging' |
| 30 | return 'Asynchronous I/O' if slug.start_with? 'library/asyncio' | ||
| 30 | 31 | ||
| 31 | type = at_css('.related a[accesskey="U"]').content | 32 | type = at_css('.related a[accesskey="U"]').content |
| 32 | 33 | ||
| @@ -47,6 +48,7 @@ module Docs · 14 unmodified lines | |||
| 47 | end | 48 | end |
| 48 | 49 | ||
| 49 | def include_default_entry? | 50 | def include_default_entry? |
| 51 | return true if slug == 'library/asyncio' | ||
| 50 | !at_css('.body > .section:only-child > .toctree-wrapper:last-child') && !type.in?(%w(Superseded)) | 52 | !at_css('.body > .section:only-child > .toctree-wrapper:last-child') && !type.in?(%w(Superseded)) |
| 51 | end | 53 | end |
| 52 | 54 | ||