Show warnings if no domains match with primary_domain (ref: #2001)

This commit is contained in:
Takeshi KOMIYA 2016-06-11 15:36:30 +09:00
parent 4927a6d2a3
commit ea778e7633
2 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,7 @@ Features added
* ``:maxdepth:`` option of toctree affects ``secnumdepth`` (ref: #2547)
* #2575: Now ``sphinx.ext.graphviz`` allows ``:align:`` option
* Show warnings if unknown key is specified to `latex_elements`
* Show warnings if no domains match with `primary_domain` (ref: #2001)
Bugs fixed
----------

View File

@ -192,6 +192,10 @@ class Sphinx(object):
'version %s and therefore cannot be built with the '
'loaded version (%s).' % (extname, needs_ver, has_ver))
# check primary_domain if requested
if self.config.primary_domain and self.config.primary_domain not in self.domains:
self.warn('primary_domain %r not found, ignored.' % self.config.primary_domain)
# set up translation infrastructure
self._init_i18n()
# check all configuration values for permissible types