Commits

Georg Brandl committed d53286f

Add viewcode to quickstart.

  • Participants
  • Parent commits 2e5a46f

Comments (0)

Files changed (2)

sphinx/quickstart.py

 pngmath has been deselected.'''
     do_prompt(d, 'ext_ifconfig', 'ifconfig: conditional inclusion of '
               'content based on config values (y/N)', 'n', boolean)
+    do_prompt(d, 'ext_viewcode', 'viewcode: include links to the source code '
+              'of documented Python objects (y/N)', 'n', boolean)
     print '''
 A Makefile and a Windows command file can be generated for you so that you
 only have to run e.g. `make html' instead of invoking sphinx-build
     d['extensions'] = ', '.join(
         repr('sphinx.ext.' + name)
         for name in ('autodoc', 'doctest', 'intersphinx', 'todo', 'coverage',
-                     'pngmath', 'jsmath', 'ifconfig')
+                     'pngmath', 'jsmath', 'ifconfig', 'viewcode')
         if d['ext_' + name])
     d['copyright'] = time.strftime('%Y') + ', ' + d['author']
     d['author_texescaped'] = unicode(d['author']).\

tests/test_quickstart.py

         'pngmath': 'N',
         'jsmath': 'no',
         'ifconfig': 'no',
+        'viewcode': 'no',
         'Create Makefile': 'no',
         'Create Windows command file': 'no',
     }