~nipy-developers/nipy/fff2

« back to all changes in this revision

Viewing changes to doc/sphinxext/plot_directive.py

  • Committer: Gael Varoquaux
  • Date: 2009-02-15 18:04:59 UTC
  • mto: This revision was merged to the branch mainline in revision 225.
  • Revision ID: gael.varoquaux@normalesup.org-20090215180459-j81siu4g5td03cza
DOC: Document the enn. Fix the custom sphinx directive to work with trunk sphinx

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
    # not sure we want to corrupt that dir with autogenerated files
104
104
    # since it also has permanent files in it which makes it difficult
105
105
    # to clean (save an rm -rf followed by and svn up)
106
 
    srcdir = 'pyplots'
 
106
    srcdir = 'doc/pyplots'
107
107
 
108
108
    makefig(os.path.join(srcdir, reference), srcdir)
109
109
 
111
111
    # the figs into the right place, so we may want to do that here instead.
112
112
 
113
113
    if options.has_key('include-source'):
114
 
        lines = ['.. literalinclude:: ../pyplots/%(reference)s' % locals()]
 
114
        lines = ['.. literalinclude:: ../doc/pyplots/%(reference)s' % locals()]
115
115
        del options['include-source']
116
116
    else:
117
117
        lines = []