Following on from adding help #some-topic in Abusing help with tags? I was wondering about adding literals like help 'bugs ??
At the moment HELP with literals doesn't provide much enlightenment...
>> help 'bugs
'bugs is a lit-word
I was wondering we could hijack literals do same thing as (in this example) the BUGS function currently does?
My thinking is that all these HELP functions (except UPGRADE, but also add in DOCS) could be converted to HELP literals?...
Other information:
about - see general product info
bugs - open GitHub issues website
changes - show changelog
chat - open GitHub developer forum
install - install (when applicable)
license - show user license
topics - open help topics website
upgrade - check for newer versions
usage - program cmd line options
Then i add console shortcut for each one (so no need for functions as they are all console related).
Thoughts on above? I believe by adding this I can also do some additional refactoring on the code in mezz-help.r
Rebol is an internet language, and I think we should off load as much to shared repositories on the basis of many hands make light work and not too many cooks spoil the broth !
On the above list (ignoring UPRADE & INSTALL?) all open in a web browser except:
ABOUT, LICENSE and USAGE
ABOUT has to remain local but we could move LICENSE & USAGE to web (though i recommend we use version numbering on URL link).
This does bring up the problem of opening a web browser in a non GUI setting (for eg. SSH to remote server). You could call some text browser like Lynx but ideally I think we would need to build in a small Rebol text "web-browser" (**) which we can fallback on when no external browser can be found or set.
** Not a full blown "web-browser" par se Just one that can render structured info from our own web pages for HELP but not for CHAT and alike!
It's generated by introspection. Below the line comments are added manually.
The idea was that the script would run periodically to update with new words, changed definitions etc, and the manual edits would be retained.
However, that hasn't happened yet, so it's frozen at the creation date.
Yes I think that could be very handy. As an example this could work like this:
>> import <webform>
>> help/module-home rgchris.webform ;; thats the module Name:
Opening browser at http://www.ross-gill.com/page/Web_Forms_and_REBOL
But I still see a place for something like this as well:
>> help/module rgchris.webform
TITLE:
Web Form Encoder/Decoder for Rebol 3
AUTHOR:
Christopher Ross-Gill
VERSION:
0.10.3 (6-Sep-2015)
PURPOSE:
Convert a Rebol block to a URL-Encoded Web Form string
EXPORTS:
URL-DECODE
Decode percent-encoded text from URLs and Web Forms
URL-ENCODE
Encode text using percent-encoding for URLs and Web Forms
LOAD-WEBFORM
Loads data from a URL-Encoded Web Form string
TO-WEBFORM
Serializes block data as URL-Encoded Web Form string
EXAMPLE:
load-webform "a=3&aa.a=1&b.c=1&b.c=2"
[a "3" aa [a "1"] b [c ["1" "2"]]]