r/learnprogramming • • 23d ago

Resource Programming Documentation utility for terminal

Is there a utility for referring programming documentation within the terminal. Currently I use ddgr + w3m in my terminal for referring documentation without leaving the terminal. But this flow isn't serving me well I often see myself opening a browser tab and going from there cause the page can't be opened or something (I know I can do this way but I don't wanna leave the terminal).

I'm still learning so my frameworks, libraries and languages change with time hence I'm not looking for specialized utility I'm looking for a general one, nonetheless specialized once are equally appreciated.

4 Upvotes

9 comments sorted by

1

u/Both_Bend_2481 22d ago

1

u/wholsum_ 22d ago

Xdg works in terminal?

2

u/pugs_daily_dose 23d ago

For the Python part, `python -m pydoc pathlib` (or a module you have installed) gives you its local docstrings in the terminal, without relying on a site's JavaScript. You can also use `python -m pydoc -k searchterm` to search module summaries. It won't be a universal replacement for framework guides, but it can be a handy offline reference alongside them.

1

u/[deleted] 23d ago

[removed] — view removed comment

2

u/wholsum_ 23d ago

Thank you! Also I face that js problem often 😔

0

u/[deleted] 23d ago

[deleted] — view deleted comment

1

u/wholsum_ 23d ago

Like I said they keep changing, just today this happen my morning class was on Data Analytics so it's python but afternoon was Java Spring Boot. I appreciate it tho lol.

1

u/Edifice_3Groan 20d ago

Js docs powered by hope and stackoverflow dreams!