Skip to content

Commit

Permalink
Ensure @bsipocz name is handled
Browse files Browse the repository at this point in the history
Co-authored-by: Brigitta Sipőcz <b.sipocz@gmail.com>
  • Loading branch information
m-rossi and bsipocz committed Feb 15, 2024
1 parent 4d78a2c commit 5cb1818
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
@@ -1,17 +1,17 @@
NonAsciiÄöüß
============
NonAsciiÄöüßő
=============

.. currentmodule:: sphinx_automodapi.tests.example_module.nonascii

.. autoclass:: NonAsciiÄöüß
.. autoclass:: NonAsciiÄöüßő
:show-inheritance:

.. rubric:: Methods Summary

.. autosummary::

~NonAsciiÄöüß.get_ß
~NonAsciiÄöüß.get_äöü
~NonAsciiÄöüßő.get_ß
~NonAsciiÄöüßő.get_äöü

.. rubric:: Methods Documentation

Expand Down
Expand Up @@ -11,5 +11,5 @@
.. autosummary::
:toctree: api

NonAsciiÄöüß
NonAsciiÄöüßő

4 changes: 2 additions & 2 deletions sphinx_automodapi/tests/example_module/nonascii.py
@@ -1,7 +1,7 @@
__all__ = ['NonAsciiÄöüß']
__all__ = ['NonAsciiÄöüßő']


class NonAsciiÄöüß(object):
class NonAsciiÄöüßő(object):
def get_äöü(self):
"""
Return a string with common umlauts like äöüß
Expand Down
6 changes: 3 additions & 3 deletions sphinx_automodapi/utils.py
Expand Up @@ -125,10 +125,10 @@ def find_autosummary_in_lines_for_automodsumm(lines, module=None, filename=None)
"""
autosummary_re = re.compile(r'^(\s*)\.\.\s+autosummary::\s*')
automodule_re = re.compile(
r'^\s*\.\.\s+automodule::\s*([A-Za-zäüöÄÜÖß0-9_.]+)\s*$')
r'^\s*\.\.\s+automodule::\s*([A-Za-zäüöÄÜÖßő0-9_.]+)\s*$')
module_re = re.compile(
r'^\s*\.\.\s+(current)?module::\s*([a-zA-ZäüöÄÜÖß0-9_.]+)\s*$')
autosummary_item_re = re.compile(r'^\s+(~?[_a-zA-ZäüöÄÜÖß][a-zA-ZäüöÄÜÖß0-9_.]*)\s*.*?')
r'^\s*\.\.\s+(current)?module::\s*([a-zA-ZäüöÄÜÖßő0-9_.]+)\s*$')
autosummary_item_re = re.compile(r'^\s+(~?[_a-zA-ZäüöÄÜÖßő][a-zA-ZäüöÄÜÖßő0-9_.]*)\s*.*?')
toctree_arg_re = re.compile(r'^\s+:toctree:\s*(.*?)\s*$')
template_arg_re = re.compile(r'^\s+:template:\s*(.*?)\s*$')
inherited_members_arg_re = re.compile(r'^\s+:inherited-members:\s*$')
Expand Down

0 comments on commit 5cb1818

Please sign in to comment.