code: def _get_page_title(self, page):
          
          fname = os.path.join(SOURCE_PATH, '{}.rst'.format(page))
          option_parser = docutils.frontend.OptionParser(
              components=(docutils.parsers.rst.Parser,))
          doc = docutils.utils.new_document(
              '<doc>',
              option_parser.get_default_values())
          with open(fname) as f:
              data = f.read()
  
          parser = docutils.parsers.rst.Parser()
          # do not generate any warning when parsing the rst
          with open(os.devnull, 'a') as f:
              doc.reporter.stream = f
              parser.parse(data, doc)
  
          section = next(node for node in doc.children
                         if isinstance(node, docutils.nodes.section))
          title = next(node for node in section.children
                       if isinstance(node, docutils.nodes.title))
  
          return title.astext()
docs: Open the rst file `page` and extract its title.