1
0
Fork
You've already forked smolweb-validator
0
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.
  • Java 97.5%
  • Shell 2.5%
2025年09月09日 23:19:45 +03:00
.gitignore Add .gitignore 2025年09月09日 22:46:48 +03:00
build.sh Fix she-bangs in shell scripts 2025年09月09日 22:50:09 +03:00
clean.sh Add clean.sh script to clean working directory from build artifacts 2025年09月09日 23:19:45 +03:00
css-grading.conf Add classification of CSS properties (Grade A to F) 2025年08月27日 22:03:46 +02:00
CSSGradingConfig.java Add classification of CSS properties (Grade A to F) 2025年08月27日 22:03:46 +02:00
CSSPropertyGrader.java Add classification of CSS properties (Grade A to F) 2025年08月27日 22:03:46 +02:00
CSSPropertyRule.java Add classification of CSS properties (Grade A to F) 2025年08月27日 22:03:46 +02:00
CSSReport.java Add classification of CSS properties (Grade A to F) 2025年08月27日 22:03:46 +02:00
CSSValidator.java Add classification of CSS properties (Grade A to F) 2025年08月27日 22:03:46 +02:00
LICENSE Initial commit 2025年08月17日 14:09:36 +02:00
PropertyOccurrence.java Add classification of CSS properties (Grade A to F) 2025年08月27日 22:03:46 +02:00
README.md Add clean.sh script to clean working directory from build artifacts 2025年09月09日 23:19:45 +03:00
RuleOccurrence.java Add classification of CSS properties (Grade A to F) 2025年08月27日 22:03:46 +02:00
smolweb-validate Fix she-bangs in shell scripts 2025年09月09日 22:50:09 +03:00
SmolwebValidator.java Add classification of CSS properties (Grade A to F) 2025年08月27日 22:03:46 +02:00

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.1.jar:." SmolwebValidator <URL> [--verbose]
jre -cp "jsoup-1.21.1.jar:." SmolwebValidator <URL> [--verbose]

Examples:

./smolweb-validate https://example.com
./smolweb-validate https://example.com --verbose
java -cp "jsoup-1.21.1.jar:." SmolwebValidator https://example.com
java -cp "jsoup-1.21.1.jar:." SmolwebValidator https://example.com --verbose
jre -cp "jsoup-1.21.1.jar:." SmolwebValidator https://example.com
jre -cp "jsoup-1.21.1.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/.