aboutsummaryrefslogtreecommitdiff
path: root/articles/2026/smolweb-validation-in-Dillo.html
diff options
context:
space:
mode:
Diffstat (limited to 'articles/2026/smolweb-validation-in-Dillo.html')
-rw-r--r--articles/2026/smolweb-validation-in-Dillo.html57
1 files changed, 57 insertions, 0 deletions
diff --git a/articles/2026/smolweb-validation-in-Dillo.html b/articles/2026/smolweb-validation-in-Dillo.html
new file mode 100644
index 0000000..38e543d
--- /dev/null
+++ b/articles/2026/smolweb-validation-in-Dillo.html
@@ -0,0 +1,57 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <link rel="stylesheet" href="/style.css" />
+ <link rel="icon" type="image/x-icon" href="/favicon.ico" />
+ <title>smolweb validation in Dillo</title>
+ </head>
+ <body>
+ <header>
+ <h1>Bloggings</h1>
+ <a href="/index.php">Back</a>
+ </header>
+ <main>
+ <article>
+ <h2>smolweb validation in Dillo</h2>
+ <h3>2026-06-22</h3>
+ <h4>a simple page_action script</h4>
+ <p>
+ I added smolweb-validator as a page action in Dillo. It's a bit of a
+ pain as the validator is a java application. The action script is
+ brutal so far but it works.
+ </p>
+ <h3>.dillo/actions/smolcheck.sh</h3>
+ <pre><code>#!/bin/sh
+
+#smolweb validator location
+smp="$HOME/src/smolweb-validator"
+
+# validate
+cd $smp
+output="$(java -cp "jsoup-1.21.2.jar:." SmolwebValidator $url --verbose)"
+echo "$output" | dilloc rawload
+</code></pre>
+ <p>
+ The action is added to ~/.dillo/dillorc and appears in Dillo's
+ right-click menu
+ </p>
+ <pre>
+page_action="Smolcheck:~/.dillo/actions/smolcheck.sh"
+</pre
+ >
+ <p>
+ see
+ <a href="https://codeberg.org/smolweb/smolweb-validator"
+ >https://codeberg.org/smolweb/smolweb-validator</a
+ >
+ </p>
+ <p>&nbsp;</p>
+ </article>
+ </main>
+ <footer>
+ <p>ยง</p>
+ </footer>
+ </body>
+</html>