-
-
Notifications
You must be signed in to change notification settings - Fork 490
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
Add todo extension to Sphinx #11251
Comments
This comment has been minimized.
This comment has been minimized.
comment:2
I currently nee to commute it with my patch for #9128... |
This comment has been minimized.
This comment has been minimized.
comment:4
This looks pretty good to me. I would change "The To Do list of sage" -- at least capitalize Sage. Maybe there should also be a comment that the list is incomplete. (A "to do" item could be to add to the to do list :) |
comment:5
Replying to @jhpalmieri:
Done. One less "to do" item :) |
comment:6
I really don't understand the buildbot error. What the hell does it has to do with what I'm doing. Moreover I can't reproduce it on my laptop:
|
comment:7
Hello. I noticed that the todo comments in the command-line documentation do not appear. Here is a short example you can do on the command line:
|
Changed keywords from todo sphinx to todo sphinx days30 |
comment:9
Hi! Any chance to have this finalized soon? Currently #11287 (runsnake) depends on it. |
comment:10
I've identified the problem: the file So if I find out why we don't simply fetch the file, I might fix it very soon. Florent |
comment:11
Attachment: trac_11251-sphinx_todo_extension-fh.patch.gz
This should now be fixed. Back to needs review. |
comment:12
This looks pretty good to me. I'm attaching a small referee patch. Should we also patch sphinxify in the sagenb repo? |
Attachment: trac_11251-referee.patch.gz apply on top of other patch |
comment:13
Positive review on the reviewer's patch. John: you may put a positive review if you feel like it now! |
comment:14
Well, does sphinxify.py need to be patched? |
comment:15
Replying to @jhpalmieri:
Sorry for the confusion. My analysis of the problem was wrong. There is a code duplication and the actual file I had to patch is
You can double check that it works both under the command line and the notebook. I actually don't really know what this Cheers, Florent |
Reviewer: John Palmieri |
comment:16
Introspection works, but isn't perfect. I think it's good enough for now, but it might be nice to try to figure out what's wrong eventually. In particular: look at a docstring with a ".. todo" markup in these four ways:
I tried modifying sphinxify.py and it didn't seem to have any effect. If only there were some way to add something like this to a "to do list"... |
comment:19
Maybe I misunderstood the intent, but is there a way to omit the TODOs from "production" documentation? (I thought they were only for "internal" use, i.e. invisible to an "ordinary" user, as opposed to a developer working on the documentation, similar to |
comment:20
Replying to @nexttime:
Actually, this wasn't my intend. As an open source project, I don't see the Otherwise said, in my mind those TODOs are more for long term improvement Now to answer the technical question, in
Changing it to Florent |
comment:21
Replying to @nexttime:
I understood this markup is used to mark places where the code needs improvement, not the documentation. Also, as you know, with Sage the distinction between users and developers is intentionally blurred. |
comment:22
See #6495 for a followup, of sorts. That ticket breaks the reference manual into chunks and builds them in parallel, which can greatly speed things up, but I can't figure out a good way to collect all of the todo items into a single list. So right now, the patch makes each Sage module collect its own todo items. Please take a look and suggest improvements. |
Merged: sage-4.7.2.alpha0 |
Sphinx has a
todo
extension which allows to highlight and gather themin a nice todo-list. I thinks it is worth adding it to sage doc.
See also
this thread on sage-devel.
CC: @nexttime @novoselt
Component: documentation
Keywords: todo sphinx days30
Author: Florent Hivert
Reviewer: John Palmieri
Merged: sage-4.7.2.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/11251
The text was updated successfully, but these errors were encountered: