MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / html_index

Function html_index

tools/python-3.11.9-amd64/Lib/pydoc.py:2590–2612  ·  view source on GitHub ↗

Module Index page.

()

Source from the content-addressed store, hash-verified

2588 """ % (version, html.escape(platform.platform(terse=True)))
2589
2590 def html_index():
2591 """Module Index page."""
2592
2593 def bltinlink(name):
2594 return '<a href="%s.html">%s</a>' % (name, name)
2595
2596 heading = html.heading(
2597 '<strong class="title">Index of Modules</strong>'
2598 )
2599 names = [name for name in sys.builtin_module_names
2600 if name != '__main__']
2601 contents = html.multicolumn(names, bltinlink)
2602 contents = [heading, '<p>' + html.bigsection(
2603 'Built-in Modules', 'index', contents)]
2604
2605 seen = {}
2606 for dir in sys.path:
2607 contents.append(html.index(dir, seen))
2608
2609 contents.append(
2610 '<p align=right class="heading-text grey"><strong>pydoc</strong> by Ka-Ping Yee'
2611 '&lt;ping@lfw.org&gt;</p>')
2612 return 'Index of Modules', ''.join(contents)
2613
2614 def html_search(key):
2615 """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