Unified · Split
| @@ -31,6 +31,7 @@ module Docs · 30 unmodified lines | |||
| 31 | return 'Tutorial' if slug.start_with? 'tutorial' | 31 | return 'Tutorial' if slug.start_with? 'tutorial' |
| 32 | return 'Software Packaging & Distribution' if slug.start_with? 'distributing' | 32 | return 'Software Packaging & Distribution' if slug.start_with? 'distributing' |
| 33 | return 'Software Packaging & Distribution' if slug.start_with? 'distutils' | 33 | return 'Software Packaging & Distribution' if slug.start_with? 'distutils' |
| 34 | return 'Glossary' if slug.start_with? 'glossary' | ||
| 34 | 35 | ||
| 35 | return 'Basics' unless slug.start_with? 'library/' | 36 | return 'Basics' unless slug.start_with? 'library/' |
| 36 | return 'Basics' if slug.start_with? 'library/index' | 37 | return 'Basics' if slug.start_with? 'library/index' |
| @@ -76,6 +77,10 @@ module Docs · 39 unmodified lines | |||
| 76 | entries << [node['id'], node['id']] | 77 | entries << [node['id'], node['id']] |
| 77 | end | 78 | end |
| 78 | 79 | ||
| 80 | css('.glossary > dt[id]').each do |node| | ||
| 81 | entries << [node.content, node['id']] | ||
| 82 | end | ||
| 83 | |||
| 79 | css('.function > dt[id]', '.method > dt[id]', '.staticmethod > dt[id]', '.classmethod > dt[id]').each do |node| | 84 | css('.function > dt[id]', '.method > dt[id]', '.staticmethod > dt[id]', '.classmethod > dt[id]').each do |node| |
| 80 | entries << [node['id'] + '()', node['id']] | 85 | entries << [node['id'] + '()', node['id']] |
| 81 | end | 86 | end |