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

Automatically fetch Man pages directories #5

Closed
moritzz opened this issue Sep 27, 2020 · 4 comments
Closed

Automatically fetch Man pages directories #5

moritzz opened this issue Sep 27, 2020 · 4 comments

Comments

@moritzz
Copy link

moritzz commented Sep 27, 2020

Hi Yan

Thanks a lot for your work.

I'm not a Pyhton guy, so I can't code this myself. Would be great though if you could render the -p /man/page/dir [/additional/man/page/dir]optional and instead use the output of man -w as source scanning man page directories.

Yours,
M. Zimmer

@Yanpas
Copy link
Owner

Yanpas commented Sep 30, 2020

Hi!

manpath seems to be most correct in listing man pages paths. I'm using arch and some of paths in those list are symlinks to other paths in this list. I want to keep this script simple and thus flexible, you can use bash! Here is the answer to your question:

python mandocset.py -p $(manpath | tr : '\n' | xargs readlink -f | sort | uniq) -o linux

Explanation

@Yanpas Yanpas closed this as completed Sep 30, 2020
@moritzz
Copy link
Author

moritzz commented Oct 5, 2020

Wow, thanks @Yanpas. Apparently I'm not a bash hero too... 🙂

@moritzz
Copy link
Author

moritzz commented Oct 5, 2020

One more thing; I don't know if its due to brew not fully ported to Big Sur yet, but there seams to be some issues with man2html there. I will now try using pandoc instead. Should I keep you posted on Big Sur/man2html issues I encounter in the future?

@Yanpas
Copy link
Owner

Yanpas commented Oct 5, 2020

Well, leave the comment here, maybe someone will find it useful.

Thanks in advance

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