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
Reformat the developer's manual's page about docstrings #17508
Comments
Branch: public/17508 |
comment:1
This branch is in conflict with #17498: once one of the two will be reviewer I will update the other. |
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:4
I like this very much, in general. Minor comments.
Edit after looking at code:
be at the next lower level of header, I'm not sure whether there are any such in the file - maybe use
or something like that. Anyway, as I said, this is a nice improvement, thank you! |
comment:5
Helloo ! Thanks for the review. I made the modifications you asked but right now it is only "on my computer". I can't seem to access internet without proxy these days, and that means no ssh connections --> cannot use git. I hope that I will find a way tomorrow
Done
I thought of illustrating "warnings" with a warning, "notes" with a note, then decided against it as the big colored blocks it produced were "stealing the attention".
I added some words about that.
Done.
No, just Sphinx not liking to have a new entry "A TESTS block [...]" right after the end of an enumeration. I turned it into normal text, it is not that bad either.
Yep, it's a cool thing.
Done
Done, looks good.
Done. The git branch will be updated as soon as I can get a real connection somewhere Nathann |
comment:6
Awesome, and please no rush to go to a McDonald's or someplace with free presumably non-proxied wifi ;-) |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
For some reason it works today.... Anyway. Good Nathann |
comment:9
Trivial final comments:
but in the text example you have
Note the one-space discrepancy. Does it matter? I don't know.
This is really nice, it will help a lot. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
Heeeeeeere it is ! The space does not change anything, so I simplified to the most satisfying text format Nathann |
Reviewer: Karl-Dieter Crisman |
comment:12
Awesome. As a reward you now get to rebase #17498 against this. |
comment:13
Thanks for the review ! Nathann |
Changed branch from public/17508 to |
The page of the developer's manual that explains how the doc of a function should be written is a very important one. It can be obtained at this address:
http://www.sagemath.org/doc/developer/coding_basics.html#documentation-strings
Right now, however, it is a bit hard to read for the text is a bit "flat": it is a long enumeration of blocks, and it is hard to find the one we can be looking for.
At first I only wanted to rewrite in bold the name of each block, i.e. note, warning, examples, ...
I ended up rephrasing several paragraphs in order to make them more direct (lots of information there, let us be concise). I also removed several comments saying "a .. NOTE:: block should begin with ".. NOTE::" as they were followed by an example. Or sentences like "patches will not be accepted unless they contain a X block" given that we already say at the beginning if a block is optional of not.
I hope that it will be easier to read this way.
Nathann
CC: @kcrisman
Component: documentation
Author: Nathann Cohen
Branch/Commit:
8728734
Reviewer: Karl-Dieter Crisman
Issue created by migration from https://trac.sagemath.org/ticket/17508
The text was updated successfully, but these errors were encountered: