python-dyndnsc icon indicating copy to clipboard operation
python-dyndnsc copied to clipboard

man page

Open ThomasWaldmann opened this issue 10 years ago • 6 comments

"make man" uses sphinx to create a man page. but it is the complete docs (like what we have in html).

is this intended or should it be something shorter?

ThomasWaldmann avatar Dec 21 '14 01:12 ThomasWaldmann

We should definitely use sphinx, but I'm unsure as to how to structure it nicely. Keeping it short is certainly better than keeping it non-existent.

infothrill avatar Dec 21 '14 01:12 infothrill

what i meant is that you already HAVE a man page, so it exists, but is a bit long.

ThomasWaldmann avatar Dec 21 '14 01:12 ThomasWaldmann

ah, yes! Maybe build man page using a different sphinx initialization which would allow to specify a smaller subset of the doc? I don't know sphinx well enough...

infothrill avatar Dec 21 '14 01:12 infothrill

it's just a rst file, see an example there: https://bitbucket.org/thomaswaldmann/moin-2.0/src/f6ee7dd9f400befc5a70af07fdfb688f07df45c4/docs/man/?at=default https://bitbucket.org/thomaswaldmann/moin-2.0/src/f6ee7dd9f400befc5a70af07fdfb688f07df45c4/docs/conf.py?at=default#cl-223

ThomasWaldmann avatar Dec 21 '14 01:12 ThomasWaldmann

@ThomasWaldmann I am not sure what else to add at this point. The skeleton man page is in place now. Do you agree?

infothrill avatar Dec 29 '17 06:12 infothrill

I didn't look at dyndnsc stuff recently, but for borgbackup we have some code in setup.py that makes a set of usable length man pages (~ per subcommand).

https://github.com/borgbackup/borg/blob/1.1.3/setup.py#L451

ThomasWaldmann avatar Dec 29 '17 09:12 ThomasWaldmann