Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding man pages? #157

Closed
yan12125 opened this issue Oct 4, 2020 · 6 comments
Closed

Adding man pages? #157

yan12125 opened this issue Oct 4, 2020 · 6 comments

Comments

@yan12125
Copy link
Contributor

yan12125 commented Oct 4, 2020

https://nvchecker.readthedocs.io/en/latest/ is awesome, but some man pages (or maybe another pretty-formatted format not depending on heavy browser stuffs) will be even nicer.

As nvchecker already offers rst documents, rst2man from python-docutils might be an option. The result of rst2man /usr/share/doc/nvchecker/usage.rst | man -l - looks good-ish with a few warnings.

pandoc might be another option, but it seems not straightforward. pandoc -f rst -t man /usr/share/doc/nvchecker/usage.rst -o nvchecker.7 does not generate a readable man page.

P.S. This issue is based on some discussions on the #archlinux-tu IRC channel.

@lilydjwg
Copy link
Owner

lilydjwg commented Oct 4, 2020

This one nvchecker.1.txt seems ok?

@yan12125
Copy link
Contributor Author

yan12125 commented Oct 4, 2020

Wow that looks good! How did you generate it?

@lilydjwg
Copy link
Owner

lilydjwg commented Oct 4, 2020

A custom version of rst2man: https://github.com/lilydjwg/nvchecker/blob/ccae7d8fcfd74f1c81bb3d0e0aa12e6892725738/docs/myrst2man.py

I didn't figure out how to override the man target sphinx comes with, though.

@yan12125
Copy link
Contributor Author

yan12125 commented Oct 4, 2020

I didn't figure out how to override the man target sphinx comes with, though.

How about just adding the command to docs/Makefile?

@lilydjwg
Copy link
Owner

lilydjwg commented Oct 5, 2020

It works now.

@lilydjwg lilydjwg closed this as completed Oct 5, 2020
@yan12125
Copy link
Contributor Author

yan12125 commented Oct 5, 2020

Cool! Looking forward to the next version :)

archlinux-github pushed a commit to archlinux/svntogit-community that referenced this issue Oct 5, 2020
[1] lilydjwg/nvchecker#157


git-svn-id: file:///srv/repos/svn-community/svn@718759 9fca08f4-af9d-4005-b8df-a31f2cc04f65
archlinux-github pushed a commit to archlinux/svntogit-community that referenced this issue Oct 5, 2020
[1] lilydjwg/nvchecker#157

git-svn-id: file:///srv/repos/svn-community/svn@718759 9fca08f4-af9d-4005-b8df-a31f2cc04f65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants