Repository navigation
use pre tag for docstring - #114
TennyZhuang wants to merge 1 commit into
Conversation
|
Could you please show before/after screenshots/demos of this change? |
|
source code @api_blueprint.route('/accept', methods=['POST'])
@auth.login_required
def accept():
"""
:route: /api/accept
:method: POST
:data id: id of message
:return:
{
"message": "Success"
}
"""
pass |
|
What markup language are you using in your docstring? Currently pdoc only supports markdown, and it does not look like markdown to me - it looks more like reStrcuturedText (RST), but not quite. |
|
Hi there! This PR conflicts with master. I'll close this for now as part of our general cleanup. Please feel free to rebase this and to resubmit. Pdoc now has a new dev team, and we'll make sure your PR is actioned promptly. I can see the problem that you're trying to address here. We've had other PRs for light-weight doc format variations like Google style, and this might be another one of those. I don't think unilaterally pre-formatting everything that contains newlines is the right approach, though. |
|
Please see #153 for a unified discussion ticket about docstring flavors. |


The docstring of python is formatted, convert it to HTML directly will lose the format information.
It's more reasonable to use a
<pre>tag