DragonFly users List (threaded) for 2013-02
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: Introducing mdoc.su, a new deterministic url shortener for bsd man-pages
On 18 February 2013 02:20, Max Herrgård <herrgard@gmail.com> wrote:
> 18 feb 2013 kl. 11.11 skrev Constantine A. Murenin:
>
>> Some examples of supported addresses:
>>
>> http://mdoc.su/DragonFly/development.7
>> http://mdoc.su/dfly/development.7
>> http://mdoc.su/d/development.7
>> http://mdoc.su/d/development
>
>
> Hah! Very cool :)
Thanks!
DragonFly actually has a 7 names over there. :-)
Lemme quote some snippets:
rewrite ^/DragonFly(BSD)?(/.*)?$ /d$2;
rewrite ^/dragonfly(bsd)?(/.*)?$ /d$2;
rewrite ^/d(ragon)?fly(/.*)?$ /d$2;
The rest of the BSDs only have 3: mixed case, lower case and the
single-letter, e.g.:
rewrite ^/FreeBSD(/.*)?$ /f$1;
rewrite ^/freebsd(/.*)?$ /f$1;
All the BSD names get rewritten to a single letter, and then the name
and section numbers are extracted.
NetBSD and OpenBSD also support specifying an architecture, like this:
http://mdoc.su/o/intro.4.macppc , or, alternatively, like this:
http://mdoc.su/o/macppc/4/intro .
Enjoy!
Cheers,
Constantine.
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]