blob: 38e543d8ed289c4fd29b5b9383548fa730ce1e20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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> </p>
</article>
</main>
<footer>
<p>§</p>
</footer>
</body>
</html>
|