* [ANN] olddoc 1.8.0 - old-fashioned RDoc generator
@ 2019-12-15 4:18 5% Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2019-12-15 4:18 UTC (permalink / raw)
To: olddoc-public; +Cc: ruby-talk
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.7.1:
add man2html generator
replace URI.escape with CGI.escape
* https://80x24.org/olddoc/ - homepage + sample
* https://80x24.org/olddoc-public/ - mail archives
* nntp://news.public-inbox.org/inbox.comp.lang.ruby.olddoc
* olddoc-public@80x24.org - public inbox (no subscription)
* license: GPL-3.0+
* git clone https://80x24.org/olddoc.git
^ permalink raw reply [relevance 5%]
* [PATCH] replace URI.escape with CGI.escape
@ 2019-12-15 3:14 7% Eric Wong
0 siblings, 0 replies; 2+ results
From: Eric Wong @ 2019-12-15 3:14 UTC (permalink / raw)
To: olddoc-public
The former is obsolete, apparently.
---
lib/oldweb.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/oldweb.rb b/lib/oldweb.rb
index 5b55019..74b4db1 100644
--- a/lib/oldweb.rb
+++ b/lib/oldweb.rb
@@ -5,7 +5,7 @@ require 'rdoc'
require 'erb'
require 'pathname'
require 'yaml'
-require 'uri'
+require 'cgi'
# oldweb is an \RDoc template and not intended as a programming API.
# You may specify it as an \RDoc formatter:
@@ -87,7 +87,7 @@ class Oldweb
if cgit_url
cgit_url += '/tree/%s' # path name
- tag = @git_tag and cgit_url << "id=#{URI.escape(tag)}"
+ tag = @git_tag and cgit_url << "id=#{CGI.escape(tag)}"
cgit_url << '#n%d' # lineno
@old_vcs_url = cgit_url
end
@@ -297,7 +297,7 @@ class Oldweb
def method_srclink(m) # :nodoc:
url = @old_vcs_url or return ""
line = m.line or return ""
- path = URI.escape(m.file_name)
+ path = CGI.escape(m.file_name)
%Q(<a href="#{url % [ path, line ]}">source</a>)
end
^ 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 --
2019-12-15 3:14 7% [PATCH] replace URI.escape with CGI.escape Eric Wong
2019-12-15 4:18 5% [ANN] olddoc 1.8.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).