Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inside *currentmodule* some links is disabled #49953

Closed
ocean-city mannequin opened this issue Apr 5, 2009 · 7 comments
Closed

inside *currentmodule* some links is disabled #49953

ocean-city mannequin opened this issue Apr 5, 2009 · 7 comments
Assignees
Labels
docs Documentation in the Doc dir

Comments

@ocean-city
Copy link
Mannequin

ocean-city mannequin commented Apr 5, 2009

BPO 5703
Nosy @birkenfeld

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/birkenfeld'
closed_at = <Date 2009-04-07.22:54:52.775>
created_at = <Date 2009-04-05.22:23:59.289>
labels = ['docs']
title = 'inside *currentmodule* some links is disabled'
updated_at = <Date 2009-04-13.07:11:13.212>
user = 'https://bugs.python.org/ocean-city'

bugs.python.org fields:

activity = <Date 2009-04-13.07:11:13.212>
actor = 'georg.brandl'
assignee = 'georg.brandl'
closed = True
closed_date = <Date 2009-04-07.22:54:52.775>
closer = 'georg.brandl'
components = ['Documentation']
creation = <Date 2009-04-05.22:23:59.289>
creator = 'ocean-city'
dependencies = []
files = []
hgrepos = []
issue_num = 5703
keywords = []
message_count = 7.0
messages = ['85579', '85755', '85758', '85918', '85929', '85930', '85937']
nosy_count = 2.0
nosy_names = ['georg.brandl', 'ocean-city']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue5703'
versions = ['Python 2.6', 'Python 3.0', 'Python 3.1', 'Python 2.7']

@ocean-city
Copy link
Mannequin Author

ocean-city mannequin commented Apr 5, 2009

See http://docs.python.org/library/email.mime.html

Inside MIMEApplication documentation, link to MIMEApplication is enabled
but link to MIMENonMultipart is disabled. This happens because
MIMENonMultipart is not in email.mime.application (specified by
currentmodule directive). Is this sphinx bug? Or should MIMENonMultipart
be written in full name like email.mime.nonmultipart.MIMENonMultipart?

@ocean-city ocean-city mannequin assigned birkenfeld Apr 5, 2009
@ocean-city ocean-city mannequin added the docs Documentation in the Doc dir label Apr 5, 2009
@birkenfeld
Copy link
Member

Since NonMultipart is in another module, it is not found automatically
by unqualified name. This is working as expected.

@ocean-city
Copy link
Mannequin Author

ocean-city mannequin commented Apr 7, 2009

Sorry, I shouldn't call this a bug. Rather I should use the word
"proposal". I think a link to MIMENonMultipart is also useful. What I
can imagine how to achieve this is...

  1. Rewrite MIMENonMultipart to email.mime.MIMENonMultipart
  2. Introduce something new directive to sphinx? Like :class<email.mime>:
  3. When class is not found in current module, search in document global
    module.

How do you think?

@birkenfeld
Copy link
Member

You can write :class:`~email.mime.MIMENonMultipart`; this will link to
the correct class but only display the thing after the last dot, in this
case "MIMENonMultipart".

@ocean-city
Copy link
Mannequin Author

ocean-city mannequin commented Apr 12, 2009

Thanks, I'll create the patch using this.

@ocean-city
Copy link
Mannequin Author

ocean-city mannequin commented Apr 13, 2009

I noticed :meth:`~email.message.Message.add_header` renders "add_header"
but maybe "Message.add_header" is better? (Maybe sphinx tracker is
suitable for now....)

@birkenfeld
Copy link
Member

If you want that level of control, it may be better to just write
:meth:`Message.add_header() <email.message.Message.add_header>`.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

1 participant