Format an HTML page.
(self, title, contents)
| 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 '''\ |
| 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>''' % (title, css_link, html_navbar(), contents) |
| 2511 | |
| 2512 | |
| 2513 | html = _HTMLDoc() |
nothing calls this directly
no test coverage detected