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

Please generate HTML docs! #181

Open
fake-name opened this issue May 9, 2017 · 4 comments
Open

Please generate HTML docs! #181

fake-name opened this issue May 9, 2017 · 4 comments
Labels

Comments

@fake-name
Copy link

fake-name commented May 9, 2017

Please, please, PLEASE generate HTML docs for PyUSB.

The useability of pydoc is complete crap compared to a web page - With a web page, I can easily have multiple tabs open to different sections of the documentation, there is an actual navigation interface, etc... While PyDoc works, it's minimal at best, and straight out of the 80's at worst.

PyDoc can natively generate somewhat ugly, but quite functional documentation, and github can do the hosting.


For my own use, and because I don't want to use pydoc from the CLI, I wrote a little batch file:

python -m pydoc -w usb
python -m pydoc -w usb.backend
python -m pydoc -w usb.core
python -m pydoc -w usb.control
python -m pydoc -w usb.util
python -m pydoc -w usb.legacy
python -m pydoc -w usb._debug
python -m pydoc -w usb._interop
python -m pydoc -w usb._lookup
python -m pydoc -w usb._objfinalizer

This generates a few (10) HTML files, with functional internal links for types and such.

@walac walac self-assigned this Jun 18, 2017
@mcuee mcuee added the doc label Sep 19, 2018
@mcuee mcuee unassigned walac Dec 11, 2019
@mcuee
Copy link
Member

mcuee commented Aug 24, 2021

This seems to work fine. But there will be quite some dead links in the end.

(py39venv) C:\work\libusb\pyusb [master ≡ +2 ~4 -0 !]> .\pydoc.bat

C:\work\libusb\pyusb>python -m pydoc -w usb
wrote usb.html

C:\work\libusb\pyusb>python -m pydoc -w usb.backend
wrote usb.backend.html

C:\work\libusb\pyusb>python -m pydoc -w usb.core
wrote usb.core.html

C:\work\libusb\pyusb>python -m pydoc -w usb.control
wrote usb.control.html

C:\work\libusb\pyusb>python -m pydoc -w usb.util
wrote usb.util.html

C:\work\libusb\pyusb>python -m pydoc -w usb.legacy
wrote usb.legacy.html

C:\work\libusb\pyusb>python -m pydoc -w usb._debug
wrote usb._debug.html

C:\work\libusb\pyusb>python -m pydoc -w usb._interop
wrote usb._interop.html

C:\work\libusb\pyusb>python -m pydoc -w usb._lookup
wrote usb._lookup.html

C:\work\libusb\pyusb>python -m pydoc -w usb._objfinalizer
wrote usb._objfinalizer.html

@fake-name
Copy link
Author

I mean, yeah, but my point was stick that on github pages or something.

@mcuee
Copy link
Member

mcuee commented Aug 25, 2021

I mean, yeah, but my point was stick that on github pages or something.

But there are many broken links in the generated HTML files. So it does not seem to be a simple task.

@arist0v
Copy link

arist0v commented Mar 25, 2023

Sphinx could probably parse it and get better (looking and producing) documentation , you should take a look(still can be hosted on github pages)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants