Skip to content

Fix linking to class attributes with prefer_full_module#1363

Merged
larsoner merged 1 commit intosphinx-gallery:masterfrom
QuLogic:fix-attribute-link
Aug 1, 2024
Merged

Fix linking to class attributes with prefer_full_module#1363
larsoner merged 1 commit intosphinx-gallery:masterfrom
QuLogic:fix-attribute-link

Conversation

@QuLogic
Copy link
Copy Markdown
Contributor

@QuLogic QuLogic commented Aug 1, 2024

In the case of class attributes, only the short module name was attempted as fallback, instead of complying with the prefer_full_module setting.

In the case of class attributes, only the short module name is attempted
as fallback, instead of complying with the `prefer_full_module` setting.
@larsoner larsoner added the bug label Aug 1, 2024
@larsoner
Copy link
Copy Markdown
Contributor

larsoner commented Aug 1, 2024

Would be great to have a test that would have caught this. Maybe something you could easily add to #1364 when you're messing with tinybuild anyway?

@larsoner larsoner merged commit dd7eb0d into sphinx-gallery:master Aug 1, 2024
@larsoner
Copy link
Copy Markdown
Contributor

larsoner commented Aug 1, 2024

Thanks @QuLogic !

@QuLogic QuLogic deleted the fix-attribute-link branch August 1, 2024 18:50
clrpackages referenced this pull request in clearlinux-pkgs/pypi-sphinx_gallery Aug 9, 2024
… to version 0.17.1

v0.17.1
-------

**Fixed bugs:**

-  FIX: Fix stability of stored compiled regex `#1369 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1369>`__ (`larsoner <https://github.com/larsoner>`__)
-  ENH: Improve \_sanitize_rst `#1366 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1366>`__ (`timhoffm <https://github.com/timhoffm>`__)
-  Obey prefer_full_module setting when finding backreferences `#1364 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1364>`__ (`QuLogic <https://github.com/QuLogic>`__)
-  Fix linking to class attributes with prefer_full_module `#1363 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1363>`__ (`QuLogic <https://github.com/QuLogic>`__)
-  Improve minigallery directive path input resolution `#1360 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1360>`__ (`lucyleeow <https://github.com/lucyleeow>`__)
-  FIX Allow str path minigallery entries when backreferences off `#1355 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1355>`__ (`lucyleeow <https://github.com/lucyleeow>`__)
-  FIX generate zipfiles when index passed by user `#1353 <https://github.com/sphinx-gallery/sphinx-gallery/pull/1353>`__ (`lucyleeow <https://github.com/lucyleeow>`__)

**Documentation**

(NEWS truncated at 15 lines)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants