From 31070bfe80c5ee9890c1f59acefe944229c8d528 Mon Sep 17 00:00:00 2001 From: gregor herrmann Date: Fri, 17 Dec 2010 22:14:29 +0100 Subject: [PATCH] Add documentation for new shrink_host feature in bti-shrink-urls. Document the configuration of bti-shrink-urls in bti-shrink-urls.xml, bti.xml, and add a commented out example to bti.example. --- bti-shrink-urls.xml | 36 +++++++++++++++++++++++++++++++++++- bti.example | 4 ++++ bti.xml | 6 +++++- 3 files changed, 44 insertions(+), 2 deletions(-) diff --git a/bti-shrink-urls.xml b/bti-shrink-urls.xml index 491743b..9a7c770 100644 --- a/bti-shrink-urls.xml +++ b/bti-shrink-urls.xml @@ -37,7 +37,7 @@ bti-shrink-urls converts URLs to a shorter form using a web service. - Currently only http://2tu.us/ is supported. + Currently http://2tu.us/ (default) and http://bit.ly / http://j.mp are supported. @@ -72,6 +72,40 @@ + CONFIGURATION + + bti-shrink-urls is configured by setting some values in ~/.bti: + + + + + + + Possible values: 2tu.us (default), bit.ly, j.mp + + + + + + + + API login for bit.ly, j.mp, required if shrink_host is set to bit.ly or j.mp. + See https://code.google.com/p/bitly-api/wiki/ApiDocumentation + + + + + + + + API key for bit.ly, j.mp, required if shrink_host is set to bit.ly or j.mp. + See https://code.google.com/p/bitly-api/wiki/ApiDocumentation + + + + + + AUTHOR Written by Bart Trojanowski bart@jukie.net. diff --git a/bti.example b/bti.example index e6ad489..615cc10 100644 --- a/bti.example +++ b/bti.example @@ -13,3 +13,7 @@ logfile=.bti.log #user=gregkh #proxy=http://localhost:8080 #shrink-urls=yes +# Example of using bit.ly in bti-shrink-urls +#shrink_host=bit.ly +#shrink_bitly_login=bitlyuser +#shrink_bitly_key=R_deadbeef diff --git a/bti.xml b/bti.xml index 0fba17f..07ae3de 100644 --- a/bti.xml +++ b/bti.xml @@ -169,7 +169,11 @@ more suitable for micro-blogging. - Currently, only http://2tu.us/ is used as a URL shrinking service. + The following URL shrinking services are available: + http://2tu.us/ (default) and http://bit.ly / http://j.mp + + + See the documentation for bti-shrink-urls for the configuration options.