* [PATCH 1/3] www_text: add #nntp, #pop3, and #imap anchors to help HTML
2022-08-10 7:40 6% [PATCH 0/3] www: help text tweaks Eric Wong
@ 2022-08-10 7:40 7% ` Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2022-08-10 7:40 UTC (permalink / raw)
To: meta
This will make it easier to link to these sections in
3rd-party documentation.
---
lib/PublicInbox/WwwText.pm | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/PublicInbox/WwwText.pm b/lib/PublicInbox/WwwText.pm
index 369328ee..320f0d84 100644
--- a/lib/PublicInbox/WwwText.pm
+++ b/lib/PublicInbox/WwwText.pm
@@ -67,6 +67,9 @@ sub get_text {
$txt = ascii_html($txt);
}
$txt = '<pre>' . $l->linkify_2($txt) . '</pre>';
+ $txt =~ s!\bPOP3\b!<a\nid=pop3>POP3</a>!;
+ $txt =~ s!\bNewsgroups\b!<a\nid=nntp>Newsgroups</a>!;
+ $txt =~ s!\bIMAP\b!<a\nid=imap>IMAP</a>!;
PublicInbox::WwwStream::html_oneshot($ctx, $code, \$txt);
}
^ permalink raw reply related [relevance 7%]
* [PATCH 0/3] www: help text tweaks
@ 2022-08-10 7:40 6% Eric Wong
2022-08-10 7:40 7% ` [PATCH 1/3] www_text: add #nntp, #pop3, and #imap anchors to help HTML Eric Wong
0 siblings, 1 reply; 2+ results
From: Eric Wong @ 2022-08-10 7:40 UTC (permalink / raw)
To: meta
Hope this is more helpful than before, already deployed to:
https://public-inbox.org/meta/_/text/help/#pop3
Eric Wong (3):
www_text: add #nntp, #pop3, and #imap anchors to help HTML
www_text: clarify the password+username is for POP3
www_text: add AUTH=ANONYMOUS to IMAP URLs
lib/PublicInbox/WwwText.pm | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
^ permalink raw reply [relevance 6%]
Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2022-08-10 7:40 6% [PATCH 0/3] www: help text tweaks Eric Wong
2022-08-10 7:40 7% ` [PATCH 1/3] www_text: add #nntp, #pop3, and #imap anchors to help HTML 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).