Issue14218
Created on 2012-03-07 09:06 by tshepang, last changed 2012-09-23 13:26 by ezio.melotti.
| Messages (17) | |||
|---|---|---|---|
| msg155061 - (view) | Author: Tshepang Lekhonkhobe (tshepang) * | Date: 2012-03-07 09:06 | |
For devguide/documenting, If you show me markup, also show me what output it gives me. It's kinda tedious to keep building the markup just to verify how it's rendered. |
|||
| msg155067 - (view) | Author: Sandro Tosi (sandro.tosi) * ![]() |
Date: 2012-03-07 10:05 | |
3.1 and 2.6 as in security fix only: please don't add those versions for non-sec issue |
|||
| msg155068 - (view) | Author: Sandro Tosi (sandro.tosi) * ![]() |
Date: 2012-03-07 10:06 | |
additionally, devguide has no version associated with it. |
|||
| msg155076 - (view) | Author: Tshepang Lekhonkhobe (tshepang) * | Date: 2012-03-07 11:44 | |
> Sandro Tosi <sandro.tosi@gmail.com> added the comment: > > 3.1 and 2.6 as in security fix only: please don't add those versions for non-sec issue Sorry, I thought there was an exception for documentation issues. |
|||
| msg155127 - (view) | Author: Éric Araujo (eric.araujo) * ![]() |
Date: 2012-03-07 22:32 | |
> For devguide/documenting, If you show me markup, also show me what output it gives me. Would this really be useful? If you’re looking at that page, you want to know what markup to use for what situation; why do you care about output? > It's kinda tedious to keep building the markup just to verify how it's rendered. I’m not sure I understand; if there were example output in the doc, you’d only have to build the devguide once to see how markup is rendered, wouldn’t you? |
|||
| msg155154 - (view) | Author: Tshepang Lekhonkhobe (tshepang) * | Date: 2012-03-08 09:20 | |
> Éric Araujo <merwok@netwok.org> added the comment: >> For devguide/documenting, If you show me markup, also show me what output it gives me. > Would this really be useful? If you’re looking at that page, you want to know what markup to use for what situation; why do you care about output? I want to see how it looks like. >> It's kinda tedious to keep building the markup just to verify how it's rendered. > I’m not sure I understand; if there were example output in the doc, you’d only have to build the devguide once to see how markup is rendered, wouldn’t you? Yes you didn't understand, sorry for my inadequate explanation. I want to see how the output of the markup looks like, without having to do the rendering (running sphinx-build) myself. |
|||
| msg155165 - (view) | Author: Éric Araujo (eric.araujo) * ![]() |
Date: 2012-03-08 15:58 | |
I don’t understand why you don’t want to build the doc if you want to see what the output looks like. You should build the doc anyway before making a patch to make sure there are no errors, and it does not take that long. As I don’t understand your problem, I disagree to making the doc longer for this. |
|||
| msg155176 - (view) | Author: Tshepang Lekhonkhobe (tshepang) * | Date: 2012-03-08 20:26 | |
Okay, let me try again: I want the documentation tutorial to tell me, for example, (1) here is the markup for a code block, and (2) here is what it looks like. At the moment, I only get (1)... point is I do not want to have to rebuild a reST file each time I want to see what some specific markup (e.g. a code block) would look like. |
|||
| msg155177 - (view) | Author: Éric Araujo (eric.araujo) * ![]() |
Date: 2012-03-08 20:30 | |
I don’t get why you want to know what it looks like, and then, I don’t get why you can’t build the doc or look at docs.python.org. Also, not getting what you talk about re-building: building the devguide or docs once should be enough. |
|||
| msg155178 - (view) | Author: Éric Araujo (eric.araujo) * ![]() |
Date: 2012-03-08 20:34 | |
It looks like I have a hard time putting myself in your shoes and seeing what you want, so I’m going to shut up for a while and let Ezio and Sandro state their opinion on your original request. :) |
|||
| msg155179 - (view) | Author: Sandro Tosi (sandro.tosi) * ![]() |
Date: 2012-03-08 20:45 | |
eheh yeah it seems so :) What I think Tshepang wants is this: - the devguide contains the description of how to document python - that documentation is about a set of ReST coding commands that generate the desired output - currently the devguide reports only the ReST code block without, right below to that block, the resulting highlitening. -> add the resulting "visual" output right below the description of the code to use. so something like blablabla you have to use ``word`` to have the word in bold (or whatever it generates, I'm too lazy to check :) ) for example: <insert here the visual output of a ReST doc where ``word`` is used> Tshepang: did I get it correctly? Éric: is it (at least a bit) clearer? |
|||
| msg155180 - (view) | Author: Tshepang Lekhonkhobe (tshepang) * | Date: 2012-03-08 20:52 | |
> Sandro Tosi <sandro.tosi@gmail.com> added the comment: > Tshepang: did I get it correctly? Éric: is it (at least a bit) clearer? that's exactly what I tried to convey |
|||
| msg155233 - (view) | Author: Ezio Melotti (ezio.melotti) * ![]() |
Date: 2012-03-09 14:28 | |
My opinion is that in general you should worry about the semantic of the role/directive you are using, rather than its aspect while rendered.
Some entries (especially some directives) might benefit from a rendered example, but I don't think it's necessary to add the output to each role/directive.
Another idea that we were discussing on IRC (and IIRC on another issue that I can't find anymore), was to add at the top a table like:
----------------------------------------
arguments *arg*
strong text **strong**
code snippets ``print('hello world')``
True/False/None ``True``
functions :func:`sorted`
methods :meth:`list.sort`
...
----------------------------------------
This will allow people that are searching for the right markup to find quickly what role they should use.
I also agree with Éric that you should always build the doc anyway to check for errors. Sometimes it happens that I have to experiment a bit if I'm using some uncommon role/directive, but that doesn't happen often, and building the doc a few times is not a problem for me in these cases.
|
|||
| msg155240 - (view) | Author: Tshepang Lekhonkhobe (tshepang) * | Date: 2012-03-09 16:20 | |
> Ezio Melotti <ezio.melotti@gmail.com> added the comment: > Another idea that we were discussing on IRC (and IIRC on another issue that I can't find anymore), was to add at the top a table like: > ---------------------------------------- > arguments *arg* > strong text **strong** > code snippets ``print('hello world')`` > True/False/None ``True`` > functions :func:`sorted` > methods :meth:`list.sort` > ... > ---------------------------------------- > > This will allow people that are searching for the right markup to find quickly what role they should use. That would be a good idea. A quick ref check without all the prose. > I also agree with Éric that you should always build the doc anyway to check for errors. Sometimes it happens that I have to experiment a bit if I'm using some uncommon role/directive, but that doesn't happen often, and building the doc a few times is not a problem for me in these cases. I also agree. I'm just thinking someone who reads that doc should be able to see the output without building anything. That is, reading the doc doesn't necessarily mean you want to apply what you just learned "right now". There's also "just in case" or "curiosity" learning. |
|||
| msg155241 - (view) | Author: Ezio Melotti (ezio.melotti) * ![]() |
Date: 2012-03-09 16:26 | |
> I also agree. I'm just thinking someone who reads that doc should be > able to see the output without building anything. Indeed I wasn't thinking about this use case, but IME people learn most of they know about rst "on the field" (i.e. by imitating what they see in the doc page they are working on), and then go check the devguide to expand their knowledge and make sure they are using the markup correctly. |
|||
| msg155275 - (view) | Author: Terry J. Reedy (terry.reedy) * ![]() |
Date: 2012-03-10 00:39 | |
It is not unusual and perhaps common for markup documentation to give rendered output for example input. This is similar to what we do in the tutorial and elsewhere with interactive examples: >>> 2 + 2 # input code 4 # output of running the code This may be fairly easy. Since the page is a rendered page, I presume some quoting mechanism is used to keep example text as is without being rendered. If so, all that should be needed is the same marked up text in a second box directive but without the quoting, so that it is rendered. |
|||
| msg171035 - (view) | Author: Ezio Melotti (ezio.melotti) * ![]() |
Date: 2012-09-23 13:26 | |
Another issue with this is that the devguide and the docs use different themes, so there's no guarantee that the output will look the same. Some output examples (and the table I mentioned earlier) could still be added for a few cases though. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2012-09-23 13:26:26 | ezio.melotti | set | messages:
+ msg171035 stage: needs patch |
| 2012-03-10 00:39:47 | terry.reedy | set | nosy:
+ terry.reedy messages: + msg155275 |
| 2012-03-09 16:26:25 | ezio.melotti | set | messages: + msg155241 |
| 2012-03-09 16:20:23 | tshepang | set | messages: + msg155240 |
| 2012-03-09 14:28:51 | ezio.melotti | set | messages: + msg155233 |
| 2012-03-08 20:52:56 | tshepang | set | messages: + msg155180 |
| 2012-03-08 20:45:21 | sandro.tosi | set | messages: + msg155179 |
| 2012-03-08 20:34:43 | eric.araujo | set | messages: + msg155178 |
| 2012-03-08 20:30:28 | eric.araujo | set | messages: + msg155177 |
| 2012-03-08 20:26:14 | tshepang | set | messages: + msg155176 |
| 2012-03-08 15:58:56 | eric.araujo | set | messages: + msg155165 |
| 2012-03-08 09:20:15 | tshepang | set | messages: + msg155154 |
| 2012-03-07 22:32:47 | eric.araujo | set | nosy:
+ eric.araujo messages: + msg155127 |
| 2012-03-07 11:44:18 | tshepang | set | messages: + msg155076 |
| 2012-03-07 10:06:33 | sandro.tosi | set | messages:
+ msg155068 versions: - Python 2.7, Python 3.2, Python 3.3 |
| 2012-03-07 10:06:00 | sandro.tosi | set | nosy:
+ sandro.tosi messages: + msg155067 versions: - Python 2.6, Python 3.1 |
| 2012-03-07 09:06:33 | tshepang | create | |
