Skip to content

Commit

Permalink
Fixes bug where pages requiring authentication were not included in t…
Browse files Browse the repository at this point in the history
…he docs (#77)

* Fixes bug where pages requiring authentication were not included in the docs

* Adds lang attribute
  • Loading branch information
djperrefort committed Dec 8, 2023
1 parent 357d148 commit 36e8b55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions keystone_api/apps/docs/templates/redoc.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!DOCTYPE html>
<html>
<html lang="en-us">
<head>
<title>ReDoc</title>
<!-- needed for adaptive design -->
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta content="width=device-width, initial-scale=1" name="viewport">
<link href="https://fonts.googleapis.com/css?family=Montserrat:300,400,700|Roboto:300,400,700" rel="stylesheet">
<!-- ReDoc doesn't change outer page styles -->
<style>
Expand All @@ -16,6 +16,6 @@
</head>
<body>
<redoc spec-url='{% url schema_url %}'></redoc>
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"> </script>
<script src="https://cdn.jsdelivr.net/npm/redoc@next/bundles/redoc.standalone.js"></script>
</body>
</html>
3 changes: 2 additions & 1 deletion keystone_api/apps/docs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
title="CRC Self Service API",
description="A REST API for managing user resource allocations on HPC systems.",
version=settings.VERSION,
permission_classes=[]
permission_classes=[],
public=True
)


Expand Down

0 comments on commit 36e8b55

Please sign in to comment.