Merge lp:~vila/bzr/cleanup-docs into lp:bzr
| Status: | Merged |
|---|---|
| Approved by: | Martin Pool on 2010-07-16 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 5349 |
| Proposed branch: | lp:~vila/bzr/cleanup-docs |
| Merge into: | lp:bzr |
| Diff against target: |
169 lines (+37/-36) 3 files modified
bzrlib/doc_generate/sphinx_conf.py (+1/-1) bzrlib/help_topics/en/conflict-types.txt (+33/-32) doc/en/mini-tutorial/index.txt (+3/-3) |
| To merge this branch: | bzr merge lp:~vila/bzr/cleanup-docs |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| bzr-core | 2010-07-05 | Pending | |
|
Review via email:
|
|||
Commit Message
Cleanup some bogus rest constructs in the doc.
Description of the Change
This cleans some rest constructs causing problems with texinfo or which were just wrong
but encountered while working on it.
Bad indentation:
=== modified file 'bzrlib/
--- bzrlib/
+++ bzrlib/
@@ -28,11 +28,11 @@
Whatever the conflict is, resolving it is roughly done in two steps::
-- modify the working tree content so that the conflicted item is now in the
- state you want to keep,
+ - modify the working tree content so that the conflicted item is now in the
+ state you want to keep,
and some others like the above.
=== modified file 'doc/en/
--- doc/en/
+++ doc/en/
@@ -64,7 +64,7 @@
$ mkdir subdirectory
$ touch test1.txt test2.txt test3.txt subdirectory/
-**Note for Windows users:** use Windows Explorer to create your
+**Note for Windows users**: use Windows Explorer to create your
directories, then right-click in those directories and select
':' inside the '**' is problematic for texinfo, given the few occurrences, I'd prefer to fix
them than trying to address them for now.
Finally:
=== modified file 'doc/en/
--- doc/en/
+++ doc/en/
@@ -115,5 +115,3 @@
.. include:: http_smart_
.. include:: writing_
-.. |--| unicode:: U+2014
-
I deleted the above as I couldn't find where it was used. If we really need it for html output, I'd prefer some conditional or a solution based on same html style stuff.
I also updated the copyright line that appear on all sphinx pages:
=== modified file 'bzrlib/
--- bzrlib/
+++ bzrlib/
@@ -34,7 +34,7 @@
# General information about the project.
project = u'Bazaar'
-copyright = u'2009, Canonical Ltd'
+copyright = u'2009, 2010, Canonical Ltd'
| John A Meinel (jameinel) wrote : | # |
| Vincent Ladeuil (vila) wrote : | # |
>>>>> John A Meinel <email address hidden> writes:
> ..
> === modified file 'doc/en/
>> --- doc/en/
>> +++ doc/en/
>> @@ -115,5 +115,3 @@
>> .. include:: http_smart_
>> .. include:: writing_
>>
>> -.. |--| unicode:: U+2014
>> -
>>
>> I deleted the above as I couldn't find where it was used. If we really need it for html output, I'd prefer some conditional or a solution based on same html style stuff.
>>
> I don't really know when we *need* an em-dash versus hyphen vs dash,
> etc. I'm not a typographer :). However, if you grep the source code, it
> is *all over* the place.
In doc/developers yes, I don't know exactly why but it seems I searched
only doc/en and missed that.
I need to revisit that.
<snip/>
>> # General information about the project.
>> project = u'Bazaar'
>> -copyright = u'2009, Canonical Ltd'
>> +copyright = u'2009, 2010, Canonical Ltd'
> ^
> Everywhere in the source code we use:
> Copyright (C) 2009, 2010 Canonical Ltd
> The extra comma looks wrong to me.
Bah, typo.
| Vincent Ladeuil (vila) wrote : | # |
> === modified file 'doc/en/
> > --- doc/en/
> > +++ doc/en/
> > @@ -115,5 +115,3 @@
> > .. include:: http_smart_
> > .. include:: writing_
> >
> > -.. |--| unicode:: U+2014
> > -
> >
> > I deleted the above as I couldn't find where it was used. If we really need
> it for html output, I'd prefer some conditional or a solution based on same
> html style stuff.
> >
>
> I don't really know when we *need* an em-dash versus hyphen vs dash,
> etc. I'm not a typographer :). However, if you grep the source code, it
> is *all over* the place.
>
> grep -rnI "|--|" doc/
>
> Returns 109 hits. Some of those are definitions, but I also see:
But none under doc/user-guide !
- 5336. By Canonical.com Patch Queue Manager <email address hidden> on 2010-07-06
-
(lifeless) Document the basedir on WorkingTree. (Robert Collins)
| Martin Pool (mbp) wrote : | # |
On 6 July 2010 23:30, John A Meinel <email address hidden> wrote:
>
> I don't really know when we *need* an em-dash versus hyphen vs dash,
> etc. I'm not a typographer :). However, if you grep the source code, it
> is *all over* the place.
>
> grep -rnI "|--|" doc/
>
> Returns 109 hits. Some of those are definitions, but I also see:
I suspect this is Mr Curly Quotes (spiv). I do like using emdashes --
but I'm happy with the ascii form. Really turning '--' into '—' u2014
should be a job of the formatter, not something we have to tell it
every time. I don't care much either way but I don't want edit wars
taking them in or out.
>
> doc/developers/
> <btree_
>
> doc/developers/
> <overview.html>`_ |--| describes some of the
> doc/developers/
> reference information
>
>
>> I also updated the copyright line that appear on all sphinx pages:
>>
>> === modified file 'bzrlib/
>> --- bzrlib/
>> +++ bzrlib/
>> @@ -34,7 +34,7 @@
>>
>> # General information about the project.
>> project = u'Bazaar'
>> -copyright = u'2009, Canonical Ltd'
>> +copyright = u'2009, 2010, Canonical Ltd'
> ^
> Everywhere in the source code we use:
> Copyright (C) 2009, 2010 Canonical Ltd
>
> The extra comma looks wrong to me.
It is wrong.
--
Martin
- 5337. By Canonical.com Patch Queue Manager <email address hidden> on 2010-07-07
-
(mbp) developer docs about testing (Martin Pool)
| Vincent Ladeuil (vila) wrote : | # |
> > I don't really know when we *need* an em-dash versus hyphen vs dash,
> > etc. I'm not a typographer :). However, if you grep the source code, it
> > is *all over* the place.
> >
> > grep -rnI "|--|" doc/
> >
> > Returns 109 hits. Some of those are definitions, but I also see:
grep -rnI -e '\( \||\)--\( \||\)' doc/ | wc -l
132
So we already missed some which means either people are not aware it should be used (including me)
or it wasn't deployed completely.
>
> I suspect this is Mr Curly Quotes (spiv). I do like using emdashes --
> but I'm happy with the ascii form.
Same here, I love beautiful TeX output.
> Really turning '--' into '—' u2014
> should be a job of the formatter, not something we have to tell it
> every time.
Indeed. I note that rest *allows* using the 2014 unicode char in its input.
But rest unicode support doesn't seem complete either:
/home/vila/
スタックブランチを作成する
-------
Yes, the message says too short, I'm typing this under firefox and the underline seems too long, under emacs, it looks ok...
> I don't care much either way but I don't want edit wars
> taking them in or out.
Anyway, I can't reproduce the problem that triggered that change anymore. But since I migrated from
karmic to lucid in the mean time, that may be enough to explain why.
I still feel a bit distasteful to have to use such an explicit markup in rest (which is otherwise
so unintrusive) but I don't feel the need to fix it either with a solution that doesn't require using
a specific markup or at least define it in a single centralised place (there are other things
to do in this area which are out of scope for my current work).
So I reverted this piece.
> > The extra comma looks wrong to me.
>
> It is wrong.
It is fixed now :)
| John A Meinel (jameinel) wrote : | # |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Vincent Ladeuil wrote:
>>> I don't really know when we *need* an em-dash versus hyphen vs dash,
>>> etc. I'm not a typographer :). However, if you grep the source code, it
>>> is *all over* the place.
>>>
>>> grep -rnI "|--|" doc/
>>>
>>> Returns 109 hits. Some of those are definitions, but I also see:
>
> grep -rnI -e '\( \||\)--\( \||\)' doc/ | wc -l
> 132
>
> So we already missed some which means either people are not aware it should be used (including me)
> or it wasn't deployed completely.
>
>> I suspect this is Mr Curly Quotes (spiv). I do like using emdashes --
>> but I'm happy with the ascii form.
>
> Same here, I love beautiful TeX output.
>
>> Really turning '--' into '—' u2014
>> should be a job of the formatter, not something we have to tell it
>> every time.
>
> Indeed. I note that rest *allows* using the 2014 unicode char in its input.
>
> But rest unicode support doesn't seem complete either:
> /home/vila/
>
> スタックブランチを作成する
> -------
>
> Yes, the message says too short, I'm typing this under firefox and the underline seems too long, under emacs, it looks ok...
In Thunderbird it looks too long. In ViM it looks correct except these
are 'wide' characters that take up 2 spaces, so I have a []_ (box
followed by space) and the proposed underline doesn't cover up the final -.
(I originally thought that it might be a UTF-8 length thing, but now I'm
not so sure.)
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkw
5RYAn3d6VU9HZ9h
=OVx7
-----END PGP SIGNATURE-----
- 5338. By Canonical.com Patch Queue Manager <email address hidden> on 2010-07-07
-
(jameinel) Use a better list of PyQt includes and excludes. (Gary van der
Merwe) - 5339. By Canonical.com Patch Queue Manager <email address hidden> on 2010-07-08
-
(parthm) Better regex compile errors (Parth Malwankar)
- 5340. By Canonical.com Patch Queue Manager <email address hidden> on 2010-07-09
-
(jameinel) Rename errors.
InvalidPattern argument message=>msg to work with
multiple Python versions. (Parth Malwankar) - 5341. By Canonical.com Patch Queue Manager <email address hidden> on 2010-07-12
-
(jam) Merge 2.2b4 to dev, bump the version numbers.
- 5342. By Canonical.com Patch Queue Manager <email address hidden> on 2010-07-13
-
(jam) Bump trunk to 2.3-dev1
- 5343. By Canonical.com Patch Queue Manager <email address hidden> on 2010-07-13
-
(mbp) change some test tearDowns to addCleanup or overrideAttr (Martin Pool)
- 5344. By Canonical.com Patch Queue Manager <email address hidden> on 2010-07-13
-
(mbp) more documentation about maintaing the ppa (Martin Pool)
- 5345. By Canonical.com Patch Queue Manager <email address hidden> on 2010-07-13
-
(vila) Merge 2.2 into bzr.dev including fixes for bug #525571 and bug
#494221 - 5346. By Canonical.com Patch Queue Manager <email address hidden> on 2010-07-15
-
(mbp) document some tricks about testing bzr (tmpfs, tc qdisc,
parallel) (Martin Pool) - 5347. By Canonical.com Patch Queue Manager <email address hidden> on 2010-07-16
-
(vila) Delete deprecated code. (Vincent Ladeuil)
- 5348. By Canonical.com Patch Queue Manager <email address hidden> on 2010-07-16
-
(mbp) developer docs about transports and symlinks (Martin Pool)
| Vincent Ladeuil (vila) wrote : | # |
sent to pqm by email
- 5349. By Canonical.com Patch Queue Manager <email address hidden> on 2010-07-16
-
(vila) Cleanup some bogus rest constructs in the doc. (Vincent Ladeuil)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
..
=== modified file 'doc/en/ user-guide/ index-plain. txt' user-guide/ index-plain. txt 2009-12-02 20:34:07 +0000 user-guide/ index-plain. txt 2010-07-05 12:44:35 +0000 server. txt a_plugin. txt
> --- doc/en/
> +++ doc/en/
> @@ -115,5 +115,3 @@
> .. include:: http_smart_
> .. include:: writing_
>
> -.. |--| unicode:: U+2014
> -
>
> I deleted the above as I couldn't find where it was used. If we really need it for html output, I'd prefer some conditional or a solution based on same html style stuff.
>
I don't really know when we *need* an em-dash versus hyphen vs dash,
etc. I'm not a typographer :). However, if you grep the source code, it
is *all over* the place.
grep -rnI "|--|" doc/
Returns 109 hits. Some of those are definitions, but I also see:
doc/developers/ implementation- notes.txt: 13:* `BTree Index Prefetch index_prefetch. html>`_ |--| How bzr decides
<btree_
doc/developers/ index-plain. txt:11: * `Architectural Overview index-plain. txt:16: |--| automatically generated API
<overview.html>`_ |--| describes some of the
doc/developers/
reference information
> I also updated the copyright line that appear on all sphinx pages: doc_generate/ sphinx_ conf.py' doc_generate/ sphinx_ conf.py 2009-09-08 16:37:05 +0000 doc_generate/ sphinx_ conf.py 2010-07-05 12:45:12 +0000
^
>
> === modified file 'bzrlib/
> --- bzrlib/
> +++ bzrlib/
> @@ -34,7 +34,7 @@
>
> # General information about the project.
> project = u'Bazaar'
> -copyright = u'2009, Canonical Ltd'
> +copyright = u'2009, 2010, Canonical Ltd'
Everywhere in the source code we use:
Copyright (C) 2009, 2010 Canonical Ltd
The extra comma looks wrong to me.
(comment for now, running out of time to review the actual content)
John enigmail. mozdev. org/
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkw zL1IACgkQJdeBCY SNAAP2qwCfY/ DDUQKtgukjFLq7J j1hwhdh dTmWYJNg+ BVdbmcI3
TbAAn1NQ8zyH82/
=A9qa
-----END PGP SIGNATURE-----