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

Create a role :trac: to link to trac ticket in sphinx #12490

Closed
hivert opened this issue Feb 10, 2012 · 14 comments
Closed

Create a role :trac: to link to trac ticket in sphinx #12490

hivert opened this issue Feb 10, 2012 · 14 comments

Comments

@hivert
Copy link

hivert commented Feb 10, 2012

In the doc, putting :trac:`5534` adds a link to #5534.

I think its cool and useful.

I also add a :wikipedia: role.

Florent

CC: @kini @nathanncohen @novoselt

Component: doctest coverage

Keywords: Sphinx trac link Cernay2012

Author: Florent Hivert

Reviewer: Nathann Cohen, Jeroen Demeyer

Merged: sage-5.0.beta4

Issue created by migration from https://trac.sagemath.org/ticket/12490

@hivert hivert added this to the sage-5.0 milestone Feb 10, 2012
@hivert
Copy link
Author

hivert commented Feb 10, 2012

Changed keywords from Sphinx trac link to Sphinx trac link Cernay2012

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Feb 10, 2012

Reviewer: Nathann Cohen

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Feb 10, 2012

comment:4

Looks good ! Now we must remember to use this new syntax in the patches :-)

Perhaps it is worth sending a message to sage-devel to tell everybody about it ?

Nathann

@hivert

This comment has been minimized.

@hivert
Copy link
Author

hivert commented Feb 10, 2012

comment:5

I forgot to add a log message in the header of the patch. I just uploaded a new patch which just add one. I don't think this need a re-review.

@jdemeyer
Copy link

comment:6

Please write a proper commit message for your patch, use hg qrefresh -e for this.

@hivert
Copy link
Author

hivert commented Feb 11, 2012

comment:7

Replying to @jdemeyer:

Please write a proper commit message for your patch, use hg qrefresh -e for this.

That's precisely why I uploaded a new patch 1 hour ago. Is there any problem with my message ?

@jdemeyer
Copy link

comment:8

Excellent! There was a race condition between me checking patches and you uploading a new patch.

@jdemeyer
Copy link

comment:9

If you copy a doctest, you should copy it completely:

sage -t  "devel/sage/doc/en/developer/sage_manuals.rst"
**********************************************************************
File "/usr/local/src/sage-5.0.beta1/devel/sage/doc/en/developer/sage_manuals.rst", line 165:
    sage: x = sage.combinat.subword.smallest_positions(w, ww); ww
Exception raised:
    Traceback (most recent call last):
      File "/usr/local/src/sage-5.0.beta1/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/usr/local/src/sage-5.0.beta1/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/usr/local/src/sage-5.0.beta1/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_0[2]>", line 1, in <module>
        x = sage.combinat.subword.smallest_positions(w, ww); ww###line 165:
    sage: x = sage.combinat.subword.smallest_positions(w, ww); ww
    NameError: name 'w' is not defined
**********************************************************************

@hivert
Copy link
Author

hivert commented Feb 11, 2012

comment:10

Replying to @jdemeyer:

If you copy a doctest, you should copy it completely:

Oups ! We forgot to run the test of the doc too ! Sorry !

The test was extracted from sage/combinat/subword.py. I extracted it in full.

@hivert
Copy link
Author

hivert commented Feb 11, 2012

comment:11

Attachment: trac_12490-trac_role-fh.patch.gz

Here is the corrected patch. Can I put it back myself to positive review ?

@jdemeyer
Copy link

Changed reviewer from Nathann Cohen to Nathann Cohen, Jeroen Demeyer

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Feb 13, 2012

comment:14

I was just about to do it !! Thank you :-)

Nathann

@jdemeyer
Copy link

Merged: sage-5.0.beta4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants