Skip to content

Commit

Permalink
add note about setting weaver.build_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
fmigneault committed Jun 5, 2020
1 parent 2058536 commit 4d51f4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def doc_redirect_include(file_path):
})

# generate openapi
# note:
# setting 'weaver.build_docs' allows to ignore part of code that cause problem or require unnecessary
# configuration for the purpose of parsing the source to generate the OpenAPI
config = Configurator(settings={"weaver.wps": False, "weaver.wps_restapi": True, "weaver.build_docs": True})
config.include("weaver") # need to include package to apply decorators and parse routes
api_spec_file = os.path.join(DOC_BLD_ROOT, "api.json")
Expand Down

0 comments on commit 4d51f4a

Please sign in to comment.