www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Something like godoc

reply "MrOrdinaire" <mrordinaire gmail.com> writes:
Hi,

In Go, I can just install the documentation and later consult it 
using the godoc command, e.g. `godoc fmt Println` would give the 
documentation for the Println Function inside the fmt package.

Is there anything like that for D?

Thanks,
Minh
Jan 09 2013
parent reply "simendsjo" <simendsjo gmail.com> writes:
On Wednesday, 9 January 2013 at 13:42:52 UTC, MrOrdinaire wrote:
 Hi,

 In Go, I can just install the documentation and later consult 
 it using the godoc command, e.g. `godoc fmt Println` would give 
 the documentation for the Println Function inside the fmt 
 package.

 Is there anything like that for D?

 Thanks,
 Minh
dman: https://github.com/D-Programming-Language/tools/blob/master/dman.d
Jan 09 2013
parent reply "MrOrdinaire" <mrordinaire gmail.com> writes:
On Wednesday, 9 January 2013 at 14:09:30 UTC, simendsjo wrote:
 On Wednesday, 9 January 2013 at 13:42:52 UTC, MrOrdinaire wrote:
 Hi,

 In Go, I can just install the documentation and later consult 
 it using the godoc command, e.g. `godoc fmt Println` would 
 give the documentation for the Println Function inside the fmt 
 package.

 Is there anything like that for D?

 Thanks,
 Minh
dman: https://github.com/D-Programming-Language/tools/blob/master/dman.d
Thank you. That is a good find. But it's not quite what I want. godoc brings up installed documentation while dman opens up dlang site.
Jan 09 2013
parent "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
On Wed, Jan 09, 2013 at 03:21:53PM +0100, MrOrdinaire wrote:
 On Wednesday, 9 January 2013 at 14:09:30 UTC, simendsjo wrote:
On Wednesday, 9 January 2013 at 13:42:52 UTC, MrOrdinaire wrote:
Hi,

In Go, I can just install the documentation and later consult it
using the godoc command, e.g. `godoc fmt Println` would give the
documentation for the Println Function inside the fmt package.
[...]
dman:
https://github.com/D-Programming-Language/tools/blob/master/dman.d
Thank you. That is a good find. But it's not quite what I want. godoc brings up installed documentation while dman opens up dlang site.
I don't think the current D packaging includes documentation. It would be nice if it did, actually, and if it also bundles the equivalent of perldoc. T -- Sometimes the best solution to morale problems is just to fire all of the unhappy people. -- despair.com
Jan 09 2013