smoweb-validator is a CLI tool to check if a web page respects smolweb HTML subset.
This tool use https://jsoup.org/ HTML5 parser and is written in Java.
https://smolweb.org/specs/index.html
- Java 97.8%
- Shell 2.2%
| .gitignore | ||
| build.sh | ||
| clean.sh | ||
| css-grading.conf | ||
| CSSGradingConfig.java | ||
| CSSPropertyGrader.java | ||
| CSSPropertyRule.java | ||
| CSSReport.java | ||
| CSSValidator.java | ||
| LICENSE | ||
| PropertyOccurrence.java | ||
| README.md | ||
| RuleOccurrence.java | ||
| smolweb-validate | ||
| SmolwebValidator.java | ||
smolweb-validator
smolweb-validator is a CLI tool to check if a web page respects smolweb HTML subset.
This tool uses jsoup HTML5 parser, a java library distributed under MIT License.
You need a Java Runtime Environment to execute it, and/or a Java Development Kit if you want to build it.
Usage
./smolweb-validate <URL> [--verbose]
java -cp "jsoup-1.21.2.jar:." SmolwebValidator <URL> [--verbose]
jre -cp "jsoup-1.21.2.jar:." SmolwebValidator <URL> [--verbose]
Examples:
./smolweb-validate https://example.com
./smolweb-validate https://example.com --verbose
java -cp "jsoup-1.21.2.jar:." SmolwebValidator https://example.com
java -cp "jsoup-1.21.2.jar:." SmolwebValidator https://example.com --verbose
jre -cp "jsoup-1.21.2.jar:." SmolwebValidator https://example.com
jre -cp "jsoup-1.21.2.jar:." SmolwebValidator https://example.com --verbose
Options:
--verbose Show all errors and detailed statistics
Script: smolweb-validate is a useful script detecting java or jre
Script clean.sh can be used to clean repository from build artifacts:
./clean.sh Removes class files made by compiler
./clean.sh all Removes class files and downloaded JAR file
Test online
It is possible to test smolweb-validator on smolweb.org/validator/.