MCPcopy Index your code
hub / github.com/python/cpython / html_index

Function html_index

Lib/pydoc.py:2494–2516  ·  view source on GitHub ↗

Module Index page.

()

Source from the content-addressed store, hash-verified

2492 """ % (version, html.escape(platform.platform(terse=True)))
2493
2494 def html_index():
2495 """Module Index page."""
2496
2497 def bltinlink(name):
2498 return '<a href="%s.html">%s</a>' % (name, name)
2499
2500 heading = html.heading(
2501 '<strong class="title">Index of Modules</strong>'
2502 )
2503 names = [name for name in sys.builtin_module_names
2504 if name != '__main__']
2505 contents = html.multicolumn(names, bltinlink)
2506 contents = [heading, '<p>' + html.bigsection(
2507 'Built-in Modules', 'index', contents)]
2508
2509 seen = {}
2510 for dir in sys.path:
2511 contents.append(html.index(dir, seen))
2512
2513 contents.append(
2514 '<p align=right class="heading-text grey"><strong>pydoc</strong> by Ka-Ping Yee'
2515 '&lt;ping@lfw.org&gt;</p>')
2516 return 'Index of Modules', ''.join(contents)
2517
2518 def html_search(key):
2519 """Search results page."""

Callers 1

get_html_pageFunction · 0.85

Calls 6

multicolumnMethod · 0.80
bigsectionMethod · 0.80
headingMethod · 0.45
appendMethod · 0.45
indexMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…