El 30/07/2014 17:25, "Takayuki Shimizukawa" <shimi...@gmail.com> va escriure:
>
> Hi Guillem,
>
> If the patch doesn't affect to current sphinx behavior and it doesn't
> introduce large complexity, I think it will be accepted.
>
> I think introducing a new event will resolve the issue.
>
> https://bitbucket.org/birkenfeld/sphinx/src/d2537dee/sphinx/environment.py#cl-471:
>
> # read all new and changed files
> docnames = sorted(added | changed)
> if app:
> docnames = app.emit('env-read-docs', self, docnames)
> for docname in docnames:
> yield docname
> self.read_doc(docname, app=app)
>
> The event allow extension author modify docnames list before
> processing; reordering, append and remove.
> I think this change is reasonable.
Pretty nice!! The event is the way, of course.
I will prepare a PR with your proposal and changes in documentation.
I hope it will be done tomorrow.
Thanks!
Guillem
El 01/08/2014 15:52, "Takayuki Shimizukawa" <shimi...@gmail.com> va escriure:
>
> Hi Guillem,
>
> Thanks for the PR!
>
> 2014-08-01 1:30 GMT+09:00 Guillem Barba Domingo <guille...@gmail.com>:
> > I did the PR [1]. I did it over 'default' branch because as it is a new
> > feature I suposed it should be in the next release.
>
> Right.
>
> > Is there any prevision about when it will be released?
>
> I'm going to release Sphinx-1.3b1 in a month.
> Can you write test cases for the PR? It makes a effort to the progress.
I will try.
I can't found any test for an event. Do you know if there is anyone that I can take as example. If not, don't worry.