Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve documentation and add manpage
Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
- Loading branch information
Showing
6 changed files
with
283 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License | ||
|
||
Copyright (c) 2009-2010 Laurent Arnoud <laurent@spkdev.net> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
'Software'), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,61 @@ | ||
== validate-website | ||
|
||
== DESCRIPTION | ||
|
||
Web crawler for checking the validity of your documents. | ||
= validate-website - Web crawler for checking the validity of your documents | ||
|
||
== INSTALLATION | ||
|
||
gem install validate-website | ||
|
||
== SYNOPSIS | ||
|
||
validate-website --help | ||
validate-website -s "http://localhost:4567/" | ||
-u "Mozilla 5.0" \ # user agent | ||
-f not-well-formed.txt \ # log file | ||
--auth=user,pass \ # http auth | ||
-e 'redirect|news' \ # exclude regex | ||
-n # log not found (404) | ||
-c "name=val;name2=val2" | ||
-v # verbose: show detail of validator errors | ||
-d # debug: show anemone log | ||
|
||
== REQUIREMENTS: | ||
validate-website [OPTIONS] | ||
|
||
spk-anemone >= 0.2.4 (forked from chriskite/anemone, | ||
add auth support and html body) | ||
rainbow >= 1.0.4 (for console color) | ||
|
||
== CREDITS: | ||
== DESCRIPTION | ||
|
||
Thanks tenderlove for Nokogiri, | ||
this library is inspired from markup_validity | ||
validate-website is a web crawler for checking the markup validity and not | ||
found urls. | ||
|
||
== OPTIONS | ||
|
||
-s, --site SITE | ||
Website to crawl (Default: http://localhost:3000/) | ||
-u, --useragent USERAGENT | ||
Change user agent (Default: Anemone/VERSION) | ||
-e, --exclude EXCLUDE | ||
Url to exclude (ex: redirect|news) | ||
-f, --file FILE | ||
Save not well formed or not found (with -n used) urls | ||
-a, --auth USER,PASS | ||
Basic http authentification | ||
-c, --cookies COOKIES | ||
Set defaults cookies | ||
-m, --[no-]markup-validation | ||
Markup validation (Default: true) | ||
-n, --not-found | ||
Log not found url (Default: false) | ||
-v, --verbose | ||
Show detail of validator errors (Default: false). | ||
-d, --debug | ||
Show anemone log (Default: false) | ||
-h, --help | ||
Show help message and exit. | ||
|
||
== EXIT STATUS | ||
0:: | ||
Markup is valid and no 404 found. | ||
1:: | ||
Markup not valid or not found urls. | ||
|
||
== REQUIREMENTS | ||
|
||
* spk-anemone, '>= 0.4.0' | ||
* rainbow, '>= 1.1' | ||
* html5, '= 0.10.0' | ||
|
||
== CREDITS | ||
|
||
* Thanks tenderlove for Nokogiri, this tool is inspired from markup_validity. | ||
* And Chris Kite for Anemone web-spider framework. | ||
|
||
== LICENSE | ||
(The MIT License) | ||
|
||
Copyright (c) 2009 Laurent Arnoud (spk) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
'Software'), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY | ||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, | ||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
The MIT License | ||
|
||
Copyright (c) 2009-2010 Laurent Arnoud <laurent@spkdev.net> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
validate-website(1) | ||
=================== | ||
|
||
NAME | ||
---- | ||
validate-website - Web crawler for checking the validity of your documents | ||
|
||
SYNOPSIS | ||
-------- | ||
*validate-website* ['OPTIONS'] | ||
|
||
DESCRIPTION | ||
----------- | ||
validate-website is a web crawler for checking the markup validity and not | ||
found urls. | ||
|
||
OPTIONS | ||
------- | ||
*-s*, *--site* 'SITE':: | ||
Website to crawl (Default: http://localhost:3000/) | ||
*-u*, *--useragent* 'USERAGENT':: | ||
Change user agent (Default: Anemone/VERSION) | ||
*-e*, *--exclude* 'EXCLUDE':: | ||
Url to exclude (ex: 'redirect|news') | ||
*-f*, *--file* 'FILE':: | ||
Save not well formed or not found (with -n used) urls | ||
*-a*, *--auth* 'USER,PASS':: | ||
Basic http authentification | ||
*-c*, *--cookies* 'COOKIES':: | ||
Set defaults cookies | ||
*-m*, *--[no-]markup-validation*:: | ||
Markup validation (Default: true) | ||
*-n*, *--not-found*:: | ||
Log not found url (Default: false) | ||
*-v*, *--verbose*:: | ||
Show detail of validator errors (Default: false). | ||
*-d*, *--debug*:: | ||
Show anemone log (Default: false) | ||
*-h*, *--help*:: | ||
Show help message and exit. | ||
|
||
EXIT STATUS | ||
----------- | ||
0:: | ||
Markup is valid and no 404 found. | ||
1:: | ||
Markup not valid or not found urls. | ||
|
||
AUTHOR | ||
------ | ||
Laurent Arnoud <laurent@spkdev.net> | ||
|
||
LICENSE | ||
------- | ||
The MIT License | ||
|
||
Copyright (c) 2009-2010 Laurent Arnoud <laurent@spkdev.net> | ||
|
||
// vim: set syntax=asciidoc: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
'\" t | ||
.\" Title: validate-website | ||
.\" Author: [see the "AUTHOR" section] | ||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/> | ||
.\" Date: 10/30/2010 | ||
.\" Manual: \ \& | ||
.\" Source: \ \& | ||
.\" Language: English | ||
.\" | ||
.TH "VALIDATE\-WEBSITE" "1" "10/30/2010" "\ \&" "\ \&" | ||
.\" ----------------------------------------------------------------- | ||
.\" * Define some portability stuff | ||
.\" ----------------------------------------------------------------- | ||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.\" http://bugs.debian.org/507673 | ||
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html | ||
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.ie \n(.g .ds Aq \(aq | ||
.el .ds Aq ' | ||
.\" ----------------------------------------------------------------- | ||
.\" * set default formatting | ||
.\" ----------------------------------------------------------------- | ||
.\" disable hyphenation | ||
.nh | ||
.\" disable justification (adjust text to left margin only) | ||
.ad l | ||
.\" ----------------------------------------------------------------- | ||
.\" * MAIN CONTENT STARTS HERE * | ||
.\" ----------------------------------------------------------------- | ||
.SH "NAME" | ||
validate-website \- Web crawler for checking the validity of your documents | ||
.SH "SYNOPSIS" | ||
.sp | ||
\fBvalidate\-website\fR [\fIOPTIONS\fR] | ||
.SH "DESCRIPTION" | ||
.sp | ||
validate\-website is a web crawler for checking the markup validity and not found urls\&. | ||
.SH "OPTIONS" | ||
.PP | ||
\fB\-s\fR, \fB\-\-site\fR \fISITE\fR | ||
.RS 4 | ||
Website to crawl (Default: | ||
http://localhost:3000/) | ||
.RE | ||
.PP | ||
\fB\-u\fR, \fB\-\-useragent\fR \fIUSERAGENT\fR | ||
.RS 4 | ||
Change user agent (Default: Anemone/VERSION) | ||
.RE | ||
.PP | ||
\fB\-e\fR, \fB\-\-exclude\fR \fIEXCLUDE\fR | ||
.RS 4 | ||
Url to exclude (ex: | ||
\fIredirect|news\fR) | ||
.RE | ||
.PP | ||
\fB\-f\fR, \fB\-\-file\fR \fIFILE\fR | ||
.RS 4 | ||
Save not well formed or not found (with \-n used) urls | ||
.RE | ||
.PP | ||
\fB\-a\fR, \fB\-\-auth\fR \fIUSER,PASS\fR | ||
.RS 4 | ||
Basic http authentification | ||
.RE | ||
.PP | ||
\fB\-c\fR, \fB\-\-cookies\fR \fICOOKIES\fR | ||
.RS 4 | ||
Set defaults cookies | ||
.RE | ||
.PP | ||
\fB\-m\fR, \fB\-\-[no\-]markup\-validation\fR | ||
.RS 4 | ||
Markup validation (Default: true) | ||
.RE | ||
.PP | ||
\fB\-n\fR, \fB\-\-not\-found\fR | ||
.RS 4 | ||
Log not found url (Default: false) | ||
.RE | ||
.PP | ||
\fB\-v\fR, \fB\-\-verbose\fR | ||
.RS 4 | ||
Show detail of validator errors (Default: false)\&. | ||
.RE | ||
.PP | ||
\fB\-d\fR, \fB\-\-debug\fR | ||
.RS 4 | ||
Show anemone log (Default: false) | ||
.RE | ||
.PP | ||
\fB\-h\fR, \fB\-\-help\fR | ||
.RS 4 | ||
Show help message and exit\&. | ||
.RE | ||
.SH "EXIT STATUS" | ||
.PP | ||
0 | ||
.RS 4 | ||
Markup is valid and no 404 found\&. | ||
.RE | ||
.PP | ||
1 | ||
.RS 4 | ||
Markup not valid or not found urls\&. | ||
.RE | ||
.SH "AUTHOR" | ||
.sp | ||
Laurent Arnoud <laurent@spkdev\&.net> | ||
.SH "LICENSE" | ||
.sp | ||
The MIT License | ||
.sp | ||
Copyright (c) 2009\-2010 Laurent Arnoud <laurent@spkdev\&.net> |