On Monday, September 26, 2011 12:23:24 PM UTC-7, Andrea Crotti wrote:
>
> On 09/26/2011 06:47 PM, John H Palmieri wrote:
> > The Sage project has something like this.  See
> >
> > <http://trac.sagemath.org/sage_trac/browser/doc/common/builder.py>
> >
> > and search for the method "print_modified_modules".
> >
> > -- 
> > John
>
> What that does if I understand correctly is to
> - unpickle a previosly saved sphinx environment
> - check if some files are changed and print them in case.
>
> From what I see it doesn't really correlate code included with autodoc
> to the original sources, but maybe I'm missing something...
>
I just tested it: I changed the code in one file (added a "print" statement, 
did not change any documentation), and it was detected by 
"print_modified_modules".  I think that the sphinx environment pickle saves 
more than just the documentation produced by autodoc, so if you change any 
part of a file, it recognizes this.  I thought that this is what you were 
asking about originally, but maybe I'm misunderstanding what you're saying.

-- 
John

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sphinx-dev/-/ZJDex-EfqGAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to