Registered Member
|
I like how the PHP docs are integrated. Anyone know how to do that with Python?
|
Global Moderator
|
Do you mean the sidebar which shows the webpage for a specific function? No, there's currently no way to do that. Wouldn't be too hard, though, in case you had a way to actually find a web page which describes the function in question -- which will probably be hard for Python (many different libraries etc).
Greetings, Sven
I'm working on the KDevelop IDE.
|
Registered Member
|
Yes, the documentation button on the right. It opens a side panel and has a pull down menu with the choices for QtHelp, (which doesn't work on my system and I'd very much like to fix that), PHP, Man Page and CMake. The PHP choice looks like a help chm file to me. I would like to be able to put the Official Python chm file there, or I wouldn't mind setting up a local copy of the Python HTML docs. There's also the shell command that displays reference docs, pydoc -g pulls up a window that displays local HTML docs on a local web server.
I would like to know how to put items in that pull down. How do they get there, do they need a special format like chm, html...? Also can I hook up shell commands to toolbar buttons or keystrokes (maybe I could launch pydoc or a chm viewer)? |
Global Moderator
|
You can put commands on keyboard shortcuts, but only "globally", i.e. in systemsettings and not for kdevelop specifically.
As far as I'm informed, to put items in the dropdown list you need an extra (although simple) plugin, since KDevelop needs to know which documentation page belongs to which object in the code, which is not trivial. The problem I see for python is still that there's not really any single piece of data you could feed it (neither online nor local) which would provide documentation for all the things in your code. Pydoc doesn't have docs for everything either. Either way, I unfortunately don't have any time to work on it currently. You're welcome to put it as a wish into the bug tracker (or try implementing it yourself, of course). Greetings, Sven
I'm working on the KDevelop IDE.
|
Registered Member
|
I would be happy if I could just include my own chm file without any integration other than I click on the Documentation tab and it opens to that, where I would browse to where I want on my own. Would that be possible? |
Global Moderator
|
The Qt documentation plugin allows you to add custom qch files (see Settings -> Configure KDevelop). If you find a way to convert your chm file to qch (quick googling suggests it's possible), you can load it with that.
Greetings, Sven
I'm working on the KDevelop IDE.
|
Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]