Code Monkey home page Code Monkey logo

mandocset's People

Contributors

ernstki avatar yanpas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

mandocset's Issues

Automatically fetch Man pages directories

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

Embedded links confused page.1.html v.s. page.1.gz.html

Awesome tool, thank you!

I made myself docset with the man pages found in an Amazon Linux 2 system.

Roughly, by doing this on an Amazon Linux 2 EC2 instance:

git clone https://github.com/Yanpas/mandocset.git
sudo yum install -y python3
sudo yum install โ€“y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum-config-manager --enable epel
sudo yum install -y man2html
python3 mandocset.py -o Amzn2 -p /usr/share/man/ -i etc/tux.png -I etc/[email protected]

Then I copied that back to laptop, like so:

cd ~/.docsets
ssh $ec2_instance tar -C w/mandocset -c Amzn2.docset | tar -x

This docset works great, but for one flaw.

The individual pages are to found at url's like so:
file:////Users/bhyde/.docsets/Amzn2.docset/Contents/Resources/Documents/man1/systemctl.1.gz.html

But the embedded links look like so:
file:////Users/bhyde/.docsets/Amzn2.docset/Contents/Resources/Documents/man1/systemctl.1.html

work with /usr/share/man directly?

this script works well with downloaded manpages, I tried to run it against /usr/share/man but the generate docset can not be displayed in zeal, it will be nice to generate docset directly from /usr/share/man

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.