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

Method page

Lib/pydoc.py:2497–2510  ·  view source on GitHub ↗

Format an HTML page.

(self, title, contents)

Source from the content-addressed store, hash-verified

2495 class _HTMLDoc(HTMLDoc):
2496
2497 def page(self, title, contents):
2498 """Format an HTML page."""
2499 css_path = "pydoc_data/_pydoc.css"
2500 css_link = (
2501 '<link rel="stylesheet" type="text/css" href="%s">' %
2502 css_path)
2503 return ''&#x27;\
2504<!DOCTYPE>
2505<html lang="en">
2506<head>
2507<meta charset="utf-8">
2508<title>Pydoc: %s</title>
2509%s</head><body>%s<div style="clear:both;padding-top:.5em;">%s</div>
2510</body></html>''&#x27; % (title, css_link, html_navbar(), contents)
2511
2512
2513 html = _HTMLDoc()

Callers

nothing calls this directly

Calls 1

html_navbarFunction · 0.85

Tested by

no test coverage detected