class_docstr: Render a Page object (layout.Page)
class_docstr_tok: ["Render","a","Page","object","(","layout.Page",")"]
docstr: Render the title/header of a docstring, including any anchors
docstr_tok: ["Render","the","title\/header","of","a","docstring",",","including","any","anchors"]
code: def render_title(self) -> Block:
      """
      Render the title/header of a docstring, including any anchors
      """
      title = ""
      # If a page documents a single object, lift-up the title of
      # that object to be the quarto-title of the page.
      if self._has_one_object:
          body = cast(Blocks, self.body)
          if body.elements:
              from . import RenderDoc
  
              rendered_obj = cast(RenderDoc, body.elements[0])
              rendered_obj.show_title = False
              title = cast(Header, copy(rendered_obj.title))
      elif self.page.summary:
          title = Header(
              self.level, markdown_escape(self.page.summary.name)
          )
  
      header = RawHTMLBlockTag(
          "header",
          Div(title, Attr(classes=["quarto-title"])),
          Attr(
              "title-block-header",
              classes=["quarto-title-block", "default"],
          ),
      )
      return header
  
imports: from __future__ import annotations
  from copy import copy
  from dataclasses import dataclass
  from functools import cached_property
  from typing import cast
  from quartodoc import layout
  from quartodoc.pandoc.blocks import Block, BlockContent, Blocks, Div, Header
  from quartodoc.pandoc.components import Attr
  from quartodoc.pandoc.inlines import Link
  from ..format import markdown_escape
  from ..pandoc.blocks import RawHTMLBlockTag
  from .base import RenderBase
label_desc: Use image node_id 5 for calling the __RenderPage obj's underlying member method code with example usage: obj.render_title() and returns: header