-
Notifications
You must be signed in to change notification settings - Fork 1
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
Multiple lines in Parameter descriptions #7
Comments
Hi, glad you are finding this useful! I basically couldn't find a tool for doing this other than ones that generate full sphinx docs which is complete overkill for smaller projects, which is why I wrote this script over a weekend. It's been a while since I worked on this, but I think the issue is I basically assumed single line descriptions for parameters. The code that actually parses each docstring into the data structure that Lines 339 to 380 in 7138063
It essentially takes as input the docstring as a list of lines, and the reference to the internal Then, it loops over all the lines in the docstring, and based on what it expects to see, parses them into the format that I think what we'd need to do is figure out a different way to determine whether or not there is a new entry in the docstring (maybe by using the number of indents?) and until we see a new entry keep appending to the current description. I can take a look at this maybe over the weekend, or if you'd like to have a crack at it, I'd be happy with that. There are probably some overall improvements that could be made here as well - I basically wrote this in one sitting and got it to a point that it works but never went back to clean things up and make things more "proper" or readable. |
First of all - hats off to you jwlodek. This is almost the only package I found which is working almost perfect.
Not sure if this package is still maintained but i thought I give it a shot:
I converted several files with np docs in them and discovered a problem, where multiple lines of description are split in several lines in the markdown.
Example doc:
Result:
Parameters
If you have an easy fix for this i would appreciate it very much. But if you no longer maintain this repo - maybe you can point me in the direction where to look so i can save some time and create a PR you could maybe approve.
THX and have a nice week.
The text was updated successfully, but these errors were encountered: