* [PATCH 0/6] doc: linkify HTML harder
@ 2022-11-03 0:48 7% Eric Wong
2022-11-03 0:48 6% ` [PATCH 3/6] doc: txt2pre: linkify "lei COMMAND" form Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2022-11-03 0:48 UTC (permalink / raw)
To: meta
<a> is really the only reason to use HTML :P
Eric Wong (6):
doc: txt2pre: linkify new commands
doc: lei: improve description of *-search commands
doc: txt2pre: linkify "lei COMMAND" form
doc: txt2pre: modernize and use v5.12
doc: lei-import: link to lei-store-format(5)
txt2pre: linkify lei/store => lei-store-format.html
Documentation/lei-edit-search.pod | 6 ++++--
Documentation/lei-forget-search.pod | 4 +++-
Documentation/lei-import.pod | 5 +++--
Documentation/lei-ls-search.pod | 5 +++--
Documentation/txt2pre | 19 ++++++++++++++-----
5 files changed, 27 insertions(+), 12 deletions(-)
^ permalink raw reply [relevance 7%]
* [PATCH 3/6] doc: txt2pre: linkify "lei COMMAND" form
2022-11-03 0:48 7% [PATCH 0/6] doc: linkify HTML harder Eric Wong
@ 2022-11-03 0:48 6% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2022-11-03 0:48 UTC (permalink / raw)
To: meta
While manpages are named `L<lei-COMMAND(1)>', `lei COMMAND'
can be worth linkifying for ease-of-navigation, too.
---
Documentation/txt2pre | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Documentation/txt2pre b/Documentation/txt2pre
index c8dbd2ba..82573a30 100755
--- a/Documentation/txt2pre
+++ b/Documentation/txt2pre
@@ -9,7 +9,7 @@ use strict;
use warnings;
use PublicInbox::Linkify;
use PublicInbox::Hval qw(ascii_html);
-my %xurls;
+my (%xurls, %lei);
for (qw[lei(1)
lei-add-external(1)
lei-add-watch(1)
@@ -77,6 +77,7 @@ for (qw[lei(1)
my ($n) = (/([\w\-\.]+)/);
$xurls{$_} = "$n.html";
$xurls{$n} = "$n.html";
+ /\Alei-(.+?)\(1\)\z/ and $xurls{"lei $1"} = "$n.html";
}
for (qw[make(1) flock(2) setrlimit(2) vfork(2) tmpfs(5) inotify(7) unix(7)
@@ -161,6 +162,9 @@ if ($str =~ /^NAME\n\s+([^\n]+)/sm) {
if ($title =~ /([\w\.\-]+)/) {
delete $xurls{$1};
}
+ if ($title =~ /\blei-([\w\-]+)\b/) {
+ delete $xurls{"lei $1"};
+ }
}
$title = ascii_html($title);
my $l = PublicInbox::Linkify->new;
^ permalink raw reply related [relevance 6%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2022-11-03 0:48 7% [PATCH 0/6] doc: linkify HTML harder Eric Wong
2022-11-03 0:48 6% ` [PATCH 3/6] doc: txt2pre: linkify "lei COMMAND" form Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).