Commits

Anonymous committed fc6df4b

Two fixes.

Comments (0)

Files changed (2)

sphinx/builder.py

                                                       filename[:-4] + '.html'))
             except:
                 targetmtime = 0
-            if path.getmtime(path.join(self.srcdir, filename)) > targetmtime:
+            if filename not in self.env.all_files:
+                yield filename
+            elif path.getmtime(path.join(self.srcdir, filename)) > targetmtime:
                 yield filename
 
 
 
 generic_docroles = {
     'command' : nodes.strong,
-    'dfn' : addnodes.emphasis,
+    'dfn' : nodes.emphasis,
     'guilabel' : nodes.strong,
     'kbd' : nodes.literal,
     'keyword' : nodes.literal,