Commits

Erik Hetzner committed 69d4897

Set title from title in main.rst

  • Participants
  • Parent commits b57b9fc

Comments (0)

Files changed (1)

sphinx/builders/epub.py

         """
         metadata = {}
         doc_md = self.env.metadata.get(self.config.master_doc)
-        metadata['title'] = self.esc(doc_md.get('title', self.config.epub_title))
+        title = self.env.titles[app.config.master_doc].astext()
+
+        metadata['title'] = self.esc(title, self.config.epub_title))
         metadata['author'] = self.esc(doc_md.get('author', self.config.epub_author))
         metadata['uid'] = self.esc(doc_md.get('uid', self.config.epub_uid))
         metadata['lang'] = self.esc(doc_md.get('lang', self.config.epub_language))