-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Terminal Docs Auto Generation #3438
Terminal Docs Auto Generation #3438
Conversation
…/OpenBBTerminal into terminal-autogen-docs
…/OpenBBTerminal into terminal-autogen-docs
…penBBTerminal into terminal-autogen-docs
…/OpenBBTerminal into terminal-autogen-docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments.
Looking good overall and I was able to run it and the generated doc seems ok.
Nice job @tehcoderer !
@@ -31,6 +31,7 @@ openbb_terminal/portfolio/portfolios/* | |||
!openbb_terminal/reports/templates/*.ipynb | |||
*_tests.csv | |||
*_sdk_audit.csv | |||
website/terminaltest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is that?
List, | ||
Literal, | ||
Optional, | ||
) | ||
|
||
from docstring_parser import parse |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As for now this is not a Terminal dependency.
Maybe we should add this as an extra so it will be easier to automate in a Github Action?
website/generate_sdk_markdown.py
Outdated
self.func_attr[key] = self.func_attr[key].__wrapped__ | ||
if "__wrapped__" in dir(self.func_attr[key]): | ||
self.func_attr[key] = self.func_attr[key].__wrapped__ | ||
if "__wrapped__" in dir(func_attr): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should use inspect.unwrap
…erminal into terminal-autogen-docs
…/OpenBBTerminal into terminal-autogen-docs
Description
How has this been tested?
Checklist:
Others