Thank you for this release. I wondered about this incompatible change:

"Sphinx.add_lexer() now takes a Lexer class instead of instance. An 
instance of lexers are still supported until Sphinx-3.x."

What's the rationale for taking a class rather than an instance? It seems 
that one might have a lexer class with options and one might want to 
instantiate it with specific options before handing it to Sphinx. From 3.0, 
that would not be possible and you would need to create a subclass which 
embodies the specific options you want. Or have I misunderstood what you 
are saying?

Regards,

Vinay Sajip

On Sunday, 2 June 2019 13:29:44 UTC+1, Komiya Takeshi wrote:
>
> Hi all, 
>
> I'm delighted to announce the release of Sphinx 2.1.0 final, now available 
> on 
> the Python package index at <https://pypi.org/project/Sphinx/>. 
>
> It includes about 25 new features, 21 bug fixes and 5 incompatible 
> changes. Especially, autodoc and autosummary are much improved. 
>
> For the full changelog, go to 
> <http://www.sphinx-doc.org/en/master/changes.html>. 
> Thanks to all collaborators and contributers! 
>
> What is it? 
> =========== 
>
> Sphinx is a tool that makes it easy to create intelligent and beautiful 
> documentation for Python projects (or other documents consisting of 
> multiple reStructuredText source files). 
>
> Website: http://sphinx-doc.org/ 
> IRC: #sphinx-doc on irc.freenode.net 
>
> Enjoy! 
>
> Takeshi KOMIYA: [email protected] <javascript:> 
> `patreon <https://www.patreon.com/tk0miya>`_ 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/5a28c751-b7fb-4d3e-8ea8-3fc7f0ac306d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to