This repository has been archived by the owner on Jan 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 601
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #531 from marcgibbons/feature/526-template-overrides
Feature/526 template overrides
- Loading branch information
Showing
2 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Customization | ||
|
||
## Template | ||
The template used for the SwaggerUIRenderer can be customized by writing overriding | ||
`rest_framework_swagger/index.html`. | ||
|
||
Here are a few basic areas which can be customized: | ||
|
||
- `{% block extra_styles %}` Add additional stylsheets | ||
- `{% block extra_scripts %}` Add additional scripts. | ||
- `{% block user_context_message %}` Customize the "Hello, user" message (Django session only) | ||
- `{% block extra_nav %}` Placeholder for additional content in the nav bar. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters