olddoc user/dev discussion/patches/bugs/etc
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [ANN] olddoc 1.9.0 - old-fashioned RDoc generator
@ 2020-08-10 21:56  6% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2020-08-10 21:56 UTC (permalink / raw)
  To: olddoc-public

olddoc contains old-fashioned document generators for those who do not
wish to impose bloated, new-fangled web cruft on their readers.

olddoc contains dark216, a HTML generator without any images, frames,
or JavaScript.  It is designed for users of text-based browsers
and/or low-bandwidth connections; yet respects user preference for
light color schemes in new CSS browsers while favoring darkness for
power savings on OLED and CRT displays.  dark216 focuses on text as
it is the lowest common denominator for accessibility and compatibility
with people and hardware.

Changes since v1.8.0:

      allow multiple rdoc_url and cgit_url values
      add imap_url support

* https://80x24.org/olddoc/ - homepage + sample

* license: GPL-3.0+
* git clone https://80x24.org/olddoc.git

* olddoc-public@80x24.org - no subscription, no HTML

public mail archives

* https://80x24.org/olddoc-public/
* http://ou63pmih66umazou.onion/olddoc-public/
* imaps://news.public-inbox.org/inbox.comp.lang.ruby.olddoc.0
* imap://ou63pmih66umazou.onion/inbox.comp.lang.ruby.olddoc.0
* nntps://news.public-inbox.org/inbox.comp.lang.ruby.olddoc
* nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.olddoc

.onion URLs require Tor <https://www.torproject.org/>

^ permalink raw reply	[relevance 6%]

* [PATCH] add imap_url support
@ 2020-07-26  2:15  7% Eric Wong
  0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2020-07-26  2:15 UTC (permalink / raw)
  To: olddoc-public

public-inbox.org added an IMAP server with AUTH=ANONYMOUS
support, so maybe there'll be more public IMAP deployments
down the line.
---
 .olddoc.yml                | 15 ++++++++++++---
 Documentation/olddoc.5.pod |  2 +-
 lib/olddoc/man2html.rb     |  2 +-
 lib/oldweb/_tail.rhtml     |  2 +-
 4 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/.olddoc.yml b/.olddoc.yml
index de9e42a..5ebd09a 100644
--- a/.olddoc.yml
+++ b/.olddoc.yml
@@ -1,9 +1,18 @@
 ---
-cgit_url: https://80x24.org/olddoc.git
+cgit_url:
+- https://80x24.org/olddoc.git
+- https://ou63pmih66umazou.onion/olddoc.git
 git_url: https://80x24.org/olddoc.git
 rdoc_url: https://80x24.org/olddoc/
-ml_url: https://80x24.org/olddoc-public/
-nntp_url: nntp://news.public-inbox.org/inbox.comp.lang.ruby.olddoc
+ml_url:
+- https://80x24.org/olddoc-public/
+- http://ou63pmih66umazou.onion/olddoc-public/
+nntp_url:
+- nntps://news.public-inbox.org/inbox.comp.lang.ruby.olddoc
+- nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.olddoc
+imap_url:
+- imaps://news.public-inbox.org/inbox.comp.lang.ruby.olddoc.0
+- imap://ou63pmih66umazou.onion/inbox.comp.lang.ruby.olddoc.0
 merge_html:
   olddoc_1: Documentation/olddoc.1.html
   olddoc_5: Documentation/olddoc.5.html
diff --git a/Documentation/olddoc.5.pod b/Documentation/olddoc.5.pod
index 6e03e3a..994a867 100644
--- a/Documentation/olddoc.5.pod
+++ b/Documentation/olddoc.5.pod
@@ -13,7 +13,7 @@ configuration to deal with.
 
 =head1 KEYS
 
-`rdoc_url`, `cgit_url`, and `nntp_url` should be obvious
+`rdoc_url`, `cgit_url`, `imap_url`, and `nntp_url` should be obvious
 
 `merge_html` is a key-value mapping of (empty) RDoc source files to an
 HTML file that will be merged into RDoc after-the-fact.  It is useful
diff --git a/lib/olddoc/man2html.rb b/lib/olddoc/man2html.rb
index 82254d2..6a5ffab 100644
--- a/lib/olddoc/man2html.rb
+++ b/lib/olddoc/man2html.rb
@@ -9,7 +9,7 @@ require 'optparse'
 
 class Olddoc::Man2HTML # :nodoc:
   SALT = rand
-  LINK_RE = %r{([\('!])?\b((?:ftps?|https?|nntps?|gopher)://
+  LINK_RE = %r{([\('!])?\b((?:ftps?|https?|nntps?|gopher|imaps?)://
      [\@:\w\.-]+(?:/
      (?:[a-z0-9\-\._~!\$\&\';\(\)\*\+,;=:@/%]*)
      (?:\?[a-z0-9\-\._~!\$\&\';\(\)\*\+,;=:@/%]+)?
diff --git a/lib/oldweb/_tail.rhtml b/lib/oldweb/_tail.rhtml
index e3fada5..7fb4839 100644
--- a/lib/oldweb/_tail.rhtml
+++ b/lib/oldweb/_tail.rhtml
@@ -2,7 +2,7 @@
 public_email = @old_cfg['public_email']
 private_email = @old_cfg['private_email']
 source_code = Array(@old_cfg['source_code']).dup
-archive_urls = Array(@old_cfg['ml_url']) + Array(@old_cfg['nntp_url'])
+archive_urls = Array(@old_cfg.values_at(*%W(ml_url nntp_url imap_url))).flatten
 if url = archive_urls.shift %><hr /><pre>
 mail archives: <a
 href="<%= url %>"><%= url %></a><%

^ permalink raw reply related	[relevance 7%]

Results 1-2 of 2 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2020-07-26  2:15  7% [PATCH] add imap_url support Eric Wong
2020-08-10 21:56  6% [ANN] olddoc 1.9.0 - old-fashioned RDoc generator Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/olddoc.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).