|
|
@ -31,6 +31,7 @@ module Docs
|
|
|
|
return 'Tutorial' if slug.start_with? 'tutorial'
|
|
|
|
return 'Tutorial' if slug.start_with? 'tutorial'
|
|
|
|
return 'Software Packaging & Distribution' if slug.start_with? 'distributing'
|
|
|
|
return 'Software Packaging & Distribution' if slug.start_with? 'distributing'
|
|
|
|
return 'Software Packaging & Distribution' if slug.start_with? 'distutils'
|
|
|
|
return 'Software Packaging & Distribution' if slug.start_with? 'distutils'
|
|
|
|
|
|
|
|
return 'Glossary' if slug.start_with? 'glossary'
|
|
|
|
|
|
|
|
|
|
|
|
return 'Basics' unless slug.start_with? 'library/'
|
|
|
|
return 'Basics' unless slug.start_with? 'library/'
|
|
|
|
return 'Basics' if slug.start_with? 'library/index'
|
|
|
|
return 'Basics' if slug.start_with? 'library/index'
|
|
|
@ -76,6 +77,10 @@ module Docs
|
|
|
|
entries << [node['id'], node['id']]
|
|
|
|
entries << [node['id'], node['id']]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
css('.glossary > dt[id]').each do |node|
|
|
|
|
|
|
|
|
entries << [node.content, node['id']]
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
css('.function > dt[id]', '.method > dt[id]', '.staticmethod > dt[id]', '.classmethod > dt[id]').each do |node|
|
|
|
|
css('.function > dt[id]', '.method > dt[id]', '.staticmethod > dt[id]', '.classmethod > dt[id]').each do |node|
|
|
|
|
entries << [node['id'] + '()', node['id']]
|
|
|
|
entries << [node['id'] + '()', node['id']]
|
|
|
|
end
|
|
|
|
end
|
|
|
|