MCPcopy Index your code
hub / github.com/RustPython/RustPython / html_index

Function html_index

Lib/pydoc.py:2542–2564  ·  view source on GitHub ↗

Module Index page.

()

Source from the content-addressed store, hash-verified

2540 """ % (version, html.escape(platform.platform(terse=True)))
2541
2542 def html_index():
2543 """Module Index page."""
2544
2545 def bltinlink(name):
2546 return '<a href="%s.html">%s</a>' % (name, name)
2547
2548 heading = html.heading(
2549 '<strong class="title">Index of Modules</strong>'
2550 )
2551 names = [name for name in sys.builtin_module_names
2552 if name != '__main__']
2553 contents = html.multicolumn(names, bltinlink)
2554 contents = [heading, '<p>' + html.bigsection(
2555 'Built-in Modules', 'index', contents)]
2556
2557 seen = {}
2558 for dir in sys.path:
2559 contents.append(html.index(dir, seen))
2560
2561 contents.append(
2562 '<p align=right class="heading-text grey"><strong>pydoc</strong> by Ka-Ping Yee'
2563 '&lt;ping@lfw.org&gt;</p>')
2564 return 'Index of Modules', ''.join(contents)
2565
2566 def html_search(key):
2567 """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