-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Automatic python modules documentation index page broken #14148
Comments
It opens the system browser on my side, everything working as expected with yesterdays weekly. Please report back if this issue still persists. |
I am using yesterday's weekly. |
could it be related to general issues with the Appimage? |
FreeCAD/src/Gui/OnlineDocumentation.cpp Lines 130 to 132 in 9decb98
Assuming this is the problem, I'm not seeing the 3 arguments here match up with the pydoc function: https://github.com/python/cpython/blob/30c687cdf8f7073302e92b2b125553d518a94eac/Lib/pydoc.py#L606 @maxwxyz Are you sure this works on your end? Are you on Windows? |
I'm on Windows, yes. |
It seems that specifically the '/' page is broken. http://localhost:7465/ @maxwxyz Can you check that specific URL after summoning |
I've wiped my install and downloaded the latest weekly again and now I can reproduce. http://localhost:7465/ |
This is a super easy fix, so I'd like to take a shot at it. Trying to get a working dev environment setup now. |
Let me know if you have issues, otherwise I can create a PR before the freeze. |
Works fine with Could be related to the Python version. What's the output if you type this into the Python console:
Here it gives
|
@wwmayer Not OP but this is the result when I click the command: |
I have checked the heading() function and two arguments have been dropped. I am working on this right now... |
Fixes FreeCAD#14148: Automatic python modules documentation index page broken
The above PR fixes the reported problem but compared to older Python version the HTML output looks a bit poor. Looking at the git history of the pydoc.py module I found this commit So, in a possible follow-up PR the HTML output could be beautified by using HTML5/css. |
Fixes #14148: Automatic python modules documentation index page broken
Is there an existing issue for this?
Problem description
Help > Automatic python modules documentation
Opens browser to sad page.Full version info
Subproject(s) affected?
None
Anything else?
Breaks in same way on native (non-AppImage) 0.21.2 Install.
Code of Conduct
The text was updated successfully, but these errors were encountered: