-
-
Notifications
You must be signed in to change notification settings - Fork 526
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
The :trac: sphinx role does not work on the commandline #13116
Comments
comment:3
Does this even work in the notebook? It doesn't for me: I only see it working successfully in the reference manual. |
comment:4
Indeed, I should have said that it works in the typeset manual only. On a related note, it sucks that |
Author: John Palmieri |
comment:5
Here's a patch which fixes the problem for me, dealt with along the lines of similar issues in sage.misc.sagedoc. |
comment:6
My only fear is that this will make a lot of stuff look really long and crazy in the command line, wrapping etc. What do the examples look like in the command line now? |
comment:7
Here's a version using the shortened urls discussed in sage-devel. Typing
After the patch:
So the docstring is longer, so some lines will end up being too long. I personally think that's okay, because of the added information. |
comment:8
How about just Also, I don't really understand why we are reimplementing sphinx here. Shouldn't we make |
comment:9
Replying to @vbraun:
Sure, that sounds fine.
Okay, here's a better approach: turn on the "extlinks" Sphinx extension when doing introspection. Then in the notebook, docstrings look fine, but from the command line, |
Changed keywords from none to sd41 |
comment:11
Looks good. Two tiny nit picks, can we ellipsize the precise Python version (2.7.2) since that is conflicting with #13013 already. Also, the docstring would be perfect with
(two minus signs before "string"). |
comment:12
Done. |
Sage library |
Reviewer: Volker Braun |
comment:13
Attachment: trac_13116-trac-docstring.patch.gz Looks good! |
Merged: sage-5.1.beta6 |
#12490 introduced a :trac:
12490
role to sphinx, which is typeset into "trac ticket #". But it does not work on the command line:It should also typeset into a trac link on the command line.
To shorten the urls as much as possible, it would be nice to be able to just say
http://trac.sagemath.org/12490
. It would be easy to do withmod_rewrite
.CC: @hivert @kcrisman @jhpalmieri
Component: documentation
Keywords: sd41
Author: John Palmieri
Reviewer: Volker Braun
Merged: sage-5.1.beta6
Issue created by migration from https://trac.sagemath.org/ticket/13116
The text was updated successfully, but these errors were encountered: