You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to generate documentation for dynamically generated click commands, depending on a Flask context. Running sphinx-build raises RuntimeError: There is no active click context., while running the commands works as expected (for instance python commands.py sub foo)
The code consists in a ParametrizedCommand class that dynamically generate a list of commands. For the sake of simplicity on this snippet, this is not quite dynamical, but at least this generate the very same exception I meet with my more complex real world use case.
Removing @with_appcontext would make sphinx-build work, but I cannot do this since I need the application context in get_command in my real use case.
I would like to generate documentation for dynamically generated click commands, depending on a Flask context. Running
sphinx-build
raisesRuntimeError: There is no active click context.
, while running the commands works as expected (for instancepython commands.py sub foo
)The code consists in a
ParametrizedCommand
class that dynamically generate a list of commands. For the sake of simplicity on this snippet, this is not quite dynamical, but at least this generate the very same exception I meet with my more complex real world use case.Removing
@with_appcontext
would makesphinx-build
work, but I cannot do this since I need the application context inget_command
in my real use case.commands.py
index.rst
traceback
The text was updated successfully, but these errors were encountered: