##// END OF EJS Templates
doc: use titlecase in man page section titles
Martin Geisler -
r9792:dd1a95cc default
parent child Browse files
Show More
@@ -61,12 +61,12 b' def show_doc(ui):'
61 ui.write("%s\n%s\n\n" % (s, '"' * encoding.colwidth(s)))
61 ui.write("%s\n%s\n\n" % (s, '"' * encoding.colwidth(s)))
62
62
63 # print options
63 # print options
64 section(_("OPTIONS"))
64 section(_("Options"))
65 for optstr, desc in get_opts(globalopts):
65 for optstr, desc in get_opts(globalopts):
66 ui.write("%s\n %s\n\n" % (optstr, desc))
66 ui.write("%s\n %s\n\n" % (optstr, desc))
67
67
68 # print cmds
68 # print cmds
69 section(_("COMMANDS"))
69 section(_("Commands"))
70 h = {}
70 h = {}
71 for c, attr in table.items():
71 for c, attr in table.items():
72 f = c.split("|")[0]
72 f = c.split("|")[0]
@@ -104,7 +104,7 b' def show_doc(ui):'
104 for name in names:
104 for name in names:
105 ui.write(".. _%s:\n" % name)
105 ui.write(".. _%s:\n" % name)
106 ui.write("\n")
106 ui.write("\n")
107 section(sec.upper())
107 section(sec)
108 if callable(doc):
108 if callable(doc):
109 doc = doc()
109 doc = doc()
110 ui.write(doc)
110 ui.write(doc)
@@ -16,16 +16,16 b' Mercurial source code management system'
16 :class: htmlonly
16 :class: htmlonly
17
17
18
18
19 SYNOPSIS
19 Synopsis
20 --------
20 --------
21 **hg** *command* [*option*]... [*argument*]...
21 **hg** *command* [*option*]... [*argument*]...
22
22
23 DESCRIPTION
23 Description
24 -----------
24 -----------
25 The **hg** command provides a command line interface to the Mercurial
25 The **hg** command provides a command line interface to the Mercurial
26 system.
26 system.
27
27
28 COMMAND ELEMENTS
28 Command Elements
29 ----------------
29 ----------------
30
30
31 files...
31 files...
@@ -46,7 +46,7 b' repository path'
46
46
47 .. include:: hg.1.gendoc.txt
47 .. include:: hg.1.gendoc.txt
48
48
49 FILES
49 Files
50 -----
50 -----
51
51
52 ``.hgignore``
52 ``.hgignore``
@@ -70,20 +70,20 b' Some commands (e.g. revert) produce back'
70 if the ``.orig`` file already exists and is not tracked by Mercurial,
70 if the ``.orig`` file already exists and is not tracked by Mercurial,
71 it will be overwritten.
71 it will be overwritten.
72
72
73 BUGS
73 Bugs
74 ----
74 ----
75 Probably lots, please post them to the mailing list (see Resources_
75 Probably lots, please post them to the mailing list (see Resources_
76 below) when you find them.
76 below) when you find them.
77
77
78 SEE ALSO
78 See Also
79 --------
79 --------
80 |hgignore(5)|_, |hgrc(5)|_
80 |hgignore(5)|_, |hgrc(5)|_
81
81
82 AUTHOR
82 Author
83 ------
83 ------
84 Written by Matt Mackall <mpm@selenic.com>
84 Written by Matt Mackall <mpm@selenic.com>
85
85
86 RESOURCES
86 Resources
87 ---------
87 ---------
88 Main Web Site: http://mercurial.selenic.com/
88 Main Web Site: http://mercurial.selenic.com/
89
89
@@ -91,7 +91,7 b' Source code repository: http://selenic.c'
91
91
92 Mailing list: http://selenic.com/mailman/listinfo/mercurial
92 Mailing list: http://selenic.com/mailman/listinfo/mercurial
93
93
94 COPYING
94 Copying
95 -------
95 -------
96 Copyright (C) 2005-2009 Matt Mackall.
96 Copyright (C) 2005-2009 Matt Mackall.
97 Free use of this software is granted under the terms of the GNU General
97 Free use of this software is granted under the terms of the GNU General
@@ -11,14 +11,14 b' syntax for Mercurial ignore files'
11 :Manual section: 5
11 :Manual section: 5
12 :Manual group: Mercurial Manual
12 :Manual group: Mercurial Manual
13
13
14 SYNOPSIS
14 Synopsis
15 --------
15 --------
16
16
17 The Mercurial system uses a file called ``.hgignore`` in the root
17 The Mercurial system uses a file called ``.hgignore`` in the root
18 directory of a repository to control its behavior when it searches
18 directory of a repository to control its behavior when it searches
19 for files that it is not currently tracking.
19 for files that it is not currently tracking.
20
20
21 DESCRIPTION
21 Description
22 -----------
22 -----------
23
23
24 The working directory of a Mercurial repository will often contain
24 The working directory of a Mercurial repository will often contain
@@ -45,7 +45,7 b' of how to configure these files. Look fo'
45 To control Mercurial's handling of files that it manages, see the
45 To control Mercurial's handling of files that it manages, see the
46 |hg(1)|_ man page. Look for the ``-I`` and ``-X`` options.
46 |hg(1)|_ man page. Look for the ``-I`` and ``-X`` options.
47
47
48 SYNTAX
48 Syntax
49 ------
49 ------
50
50
51 An ignore file is a plain text file consisting of a list of patterns,
51 An ignore file is a plain text file consisting of a list of patterns,
@@ -75,7 +75,7 b' the form ``*.c`` will match a file endin'
75 and a regexp pattern of the form ``\.c$`` will do the same. To root a
75 and a regexp pattern of the form ``\.c$`` will do the same. To root a
76 regexp pattern, start it with ``^``.
76 regexp pattern, start it with ``^``.
77
77
78 EXAMPLE
78 Example
79 -------
79 -------
80
80
81 Here is an example ignore file. ::
81 Here is an example ignore file. ::
@@ -91,17 +91,17 b' Here is an example ignore file. ::'
91 syntax: regexp
91 syntax: regexp
92 ^\.pc/
92 ^\.pc/
93
93
94 AUTHOR
94 Author
95 ------
95 ------
96 Vadim Gelfer <vadim.gelfer@gmail.com>
96 Vadim Gelfer <vadim.gelfer@gmail.com>
97
97
98 Mercurial was written by Matt Mackall <mpm@selenic.com>.
98 Mercurial was written by Matt Mackall <mpm@selenic.com>.
99
99
100 SEE ALSO
100 See Also
101 --------
101 --------
102 |hg(1)|_, |hgrc(5)|_
102 |hg(1)|_, |hgrc(5)|_
103
103
104 COPYING
104 Copying
105 -------
105 -------
106 This manual page is copyright 2006 Vadim Gelfer.
106 This manual page is copyright 2006 Vadim Gelfer.
107 Mercurial is copyright 2005-2009 Matt Mackall.
107 Mercurial is copyright 2005-2009 Matt Mackall.
@@ -16,13 +16,13 b' configuration files for Mercurial'
16 :class: htmlonly
16 :class: htmlonly
17
17
18
18
19 SYNOPSIS
19 Synopsis
20 --------
20 --------
21
21
22 The Mercurial system uses a set of configuration files to control
22 The Mercurial system uses a set of configuration files to control
23 aspects of its behavior.
23 aspects of its behavior.
24
24
25 FILES
25 Files
26 -----
26 -----
27
27
28 Mercurial reads configuration data from several files, if they exist.
28 Mercurial reads configuration data from several files, if they exist.
@@ -83,7 +83,7 b' ones.'
83 a ``Mercurial.ini`` file or be a directory where ``*.rc`` files will
83 a ``Mercurial.ini`` file or be a directory where ``*.rc`` files will
84 be read.
84 be read.
85
85
86 SYNTAX
86 Syntax
87 ------
87 ------
88
88
89 A configuration file consists of sections, led by a ``[section]`` header
89 A configuration file consists of sections, led by a ``[section]`` header
@@ -108,7 +108,7 b' A line with ``%unset name`` will remove '
108 section, if it has been set previously.
108 section, if it has been set previously.
109
109
110
110
111 SECTIONS
111 Sections
112 --------
112 --------
113
113
114 This section describes the different sections that may appear in a
114 This section describes the different sections that may appear in a
@@ -933,17 +933,17 b' Web interface configuration.'
933 Where to find the HTML templates. Default is install path.
933 Where to find the HTML templates. Default is install path.
934
934
935
935
936 AUTHOR
936 Author
937 ------
937 ------
938 Bryan O'Sullivan <bos@serpentine.com>.
938 Bryan O'Sullivan <bos@serpentine.com>.
939
939
940 Mercurial was written by Matt Mackall <mpm@selenic.com>.
940 Mercurial was written by Matt Mackall <mpm@selenic.com>.
941
941
942 SEE ALSO
942 See Also
943 --------
943 --------
944 |hg(1)|_, |hgignore(5)|_
944 |hg(1)|_, |hgignore(5)|_
945
945
946 COPYING
946 Copying
947 -------
947 -------
948 This manual page is copyright 2005 Bryan O'Sullivan.
948 This manual page is copyright 2005 Bryan O'Sullivan.
949 Mercurial is copyright 2005-2009 Matt Mackall.
949 Mercurial is copyright 2005-2009 Matt Mackall.
General Comments 0
You need to be logged in to leave comments. Login now