8000 can't produce doc with flask route · Issue #173 · pdoc3/pdoc · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

can't produce doc with flask route #173

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

Closed

marc-moreaux opened this issue Mar 17, 2020 · 1 comment
Closed

can't produce doc with flask route #173

marc-moreaux opened this issue Mar 17, 2020 · 1 comment
Labels
duplicate This issue or pull request already exists

Comments

@marc-moreaux
Copy link

Hello,

When I use a flask route as in:

'/module/dir/myapp.py'
from flask import current_app as app

@app.route('/a/path', methods=['GET', 'POST'])
def my_function():
    pass

pdoc3 does not run anymore.

I have tried to ignore this file with:

'module/dir/__init__.py'
__pdoc__ = {'myapp': False,}

But it dit not work.
Is there a way I can ignore this 'dir' directory ?
Thanks :)

pdoc version:
pdoc3 0.7.5

@kernc
Copy link
Member
kernc commented Mar 17, 2020

Seems like a duplicate of #99.

#99 (comment) contains some guides on a possible, likely reasonable implementation (i.e. usage exactly as you tried it).

@kernc kernc closed this as completed Mar 17, 2020
@kernc kernc added the duplicate This issue or pull request already exists label Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Development

No branches or pull requests

2 participants
0