Skip to content

Commit

Permalink
[Issue 1258] Add local libs and fix a11y issues (#1346)
Browse files Browse the repository at this point in the history
  • Loading branch information
acouch authored Mar 5, 2024
1 parent 1abd0c3 commit 7c064b1
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/openapi.generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ tags:
- name: Health
- name: Opportunity v0
- name: Opportunity v0.1
servers: .
paths:
/health:
get:
Expand Down
5 changes: 5 additions & 0 deletions api/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ def configure_app(app: APIFlask) -> None:
app.config["BASE_RESPONSE_SCHEMA"] = response_schema.ResponseSchema
app.config["HTTP_ERROR_SCHEMA"] = response_schema.ErrorResponseSchema
app.config["VALIDATION_ERROR_SCHEMA"] = response_schema.ErrorResponseSchema
app.config["SWAGGER_UI_CSS"] = '/static/swagger-ui.min.css'
app.config["SWAGGER_UI_BUNDLE_JS"] = "/static/swagger-ui-bundle.js"
app.config["SWAGGER_UI_STANDALONE_PRESET_JS"] = "/static/swagger-ui-standalone-preset.js"
# Removing because the server dropdown has accessibility issues.
app.config["SERVERS"] = "."
app.config["DOCS_FAVICON"] = "https://simpler.grants.gov/img/favicon.ico"

# Set a few values for the Swagger endpoint
Expand Down
3 changes: 3 additions & 0 deletions api/src/static/swagger-ui-bundle.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions api/src/static/swagger-ui-standalone-preset.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions api/src/static/swagger-ui.min.css

Large diffs are not rendered by default.

0 comments on commit 7c064b1

Please sign in to comment.