Skip to content

Commit 0dbac25

Browse files
Update the man page a bit.
1 parent 184f411 commit 0dbac25

File tree

2 files changed

+45
-13
lines changed

2 files changed

+45
-13
lines changed

htmldoc/tidy1.xsl

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,20 +47,24 @@
4747

4848

4949
<xsl:template name="header-section">
50-
<xsl:text/>.\" tidy man page for the Tidy Sourceforge project
51-
.TH tidy 1 "$Date: 2007/02/01 12:25:21 $" "HTML Tidy <xsl:value-of select="cmdline/@version" />" "User commands"
50+
<xsl:text/>.\" tidy man page for the HTML5 for of Tidy
51+
.TH TIDY 1 "https://github.com/w3c/tidy-html5" "HTML Tidy" "https://github.com/w3c/tidy-html5"
5252
</xsl:template>
5353

5454

5555
<xsl:template name="cmdline-section">
56+
.\" disable hyphenation
57+
.nh
58+
.\" disable justification (adjust text to left margin only)
59+
.ad l
5660
.SH NAME
57-
\fBtidy\fR - validate, correct, and pretty-print HTML files
58-
.br
59-
(version: <xsl:value-of select="cmdline/@version" />)
61+
\fBtidy\fR - check, correct, and pretty-print HTML(5) files
6062
.SH SYNOPSIS
6163
\fBtidy\fR [option ...] [file ...] [option ...] [file ...]
6264
.SH DESCRIPTION
63-
Tidy reads HTML, XHTML and XML files and writes cleaned up markup. For HTML variants, it detects and corrects many common coding errors and strives to produce visually equivalent markup that is both W3C compliant and works on most browsers. A common use of Tidy is to convert plain HTML to XHTML. For generic XML files, Tidy is limited to correcting basic well-formedness errors and pretty printing.
65+
Tidy reads HTML(5), XHTML(5) and XML files and writes cleaned-up markup. For HTML variants, it detects, reports, and corrects many common coding errors and strives to produce visually equivalent markup that is both conformant to the HTML specifications and that works in most browsers.
66+
.LP
67+
A common use of Tidy is to convert plain HTML to XHTML. For generic XML files, Tidy is limited to correcting basic well-formedness errors and pretty printing.
6468
.LP
6569
If no input file is specified, Tidy reads the standard input. If no output file is specified, Tidy writes the tidied markup to the standard output. If no error file is specified, Tidy writes messages to the standard error.
6670
For command line options that expect a numerical argument, a default is assumed if no meaningful value can be found.
@@ -75,9 +79,36 @@ Input/Output default to stdin/stdout respectively. Single letter options apart f
7579
.in 1i
7680
\fBtidy -f errs.txt -imu foo.html\fR
7781
.LP
78-
For further info on HTML see \fIhttp://www.w3.org/MarkUp\fR.
82+
For more information on HTML, see the following:
83+
.RS 4
84+
.LP
85+
\fBHTML: Edition for Web Authors\fR (the latest HTML specification)
86+
.br
87+
http://dev.w3.org/html5/spec-author-view
88+
.LP
89+
\fBHTML: The Markup Language\fR (an HTML language reference)
90+
.br
91+
http://dev.w3.org/html5/markup/
92+
.RE
93+
.LP
94+
For more information about HTML Tidy, see:
95+
.RS 4
96+
.LP
97+
https://github.com/w3c/tidy-html5
98+
.RE
99+
.LP
100+
For bug reports and comments, see:
101+
.RS 4
79102
.LP
80-
For more information about HTML Tidy, visit the project home page at \fIhttp://tidy.sourceforge.net\fR. Here, you will find links to documentation, mailing lists (with searchable archives) and links to report bugs.
103+
https://github.com/w3c/tidy-html5/issues/
104+
...or send questions and comments to \[email protected]\fR
105+
.RE
106+
.LP
107+
Validate your HTML documents using the \fBW3C Nu Markup Validator\fR:
108+
.RS 4
109+
.LP
110+
http://validator.w3.org/nu/
111+
.RE
81112
.SH ENVIRONMENT
82113
.TP
83114
.B HTML_TIDY
@@ -353,12 +384,12 @@ appearing in content with another backslash.
353384

354385
<!-- Appears at the bottom of the man page: -->
355386
<xsl:template name="manpage-see-also-section">
356-
.SH "SEE ALSO"
357-
HTML Tidy Project Page at \fIhttp://tidy.sourceforge.net\fR
358387
.SH AUTHOR
359-
\fBTidy\fR was written by Dave Raggett &lt;\[email protected]\fR&gt;, and is now maintained and developed by the Tidy team at \fIhttp://tidy.sourceforge.net/\fR. It is released under the \fIMIT Licence\fR.
388+
\fBTidy\fR was written by \fBDave Raggett\fR &lt;[email protected]&gt;, and was for a long while maintained by a team at http://tidy.sourceforge.net/
389+
.LP
390+
The HTML5 fork of \fBTidy\fR is at https://github.com/w3c/tidy-html5/
360391
.LP
361-
Generated automatically with HTML Tidy from https://github.com/w3c/tidy-html5.
392+
The sources for \fBTidy\fR are available under the MIT Licence.
362393
</xsl:template>
363394

364395

src/localize.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1784,7 +1784,8 @@ void TY_(GeneralInfo)( TidyDocImpl* doc )
17841784
tidy_out(doc, "About this fork of Tidy: https://github.com/w3c/tidy-html5\n");
17851785
tidy_out(doc, "Bug reports and comments: https://github.com/w3c/tidy-html5/issues/\n");
17861786
tidy_out(doc, "Or send questions and comments to [email protected]\n");
1787-
tidy_out(doc, "Latest HTML specification: http://dev.w3.org/html5/spec/\n");
1787+
tidy_out(doc, "Latest HTML specification: http://dev.w3.org/html5/spec-author-view/\n");
1788+
tidy_out(doc, "HTML language reference: http://dev.w3.org/html5/markup/\n");
17881789
tidy_out(doc, "Validate your HTML5 documents: http://validator.w3.org/nu/\n");
17891790
tidy_out(doc, "Lobby your company to join the W3C: http://www.w3.org/Consortium\n");
17901791
}

0 commit comments

Comments
 (0)