Skip to content

Commit

Permalink
Add a link to the API schema to the index page
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfredinni committed Nov 13, 2024
1 parent 053660d commit 14c1cd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion conf/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def index(request):
context["buttons"] = [
{"title": "🚀 Features", "url": f"{base_url}#key-features"},
{"title": "📋 Requirements", "url": f"{base_url}#requirements"},
{"title": "🛠️ How to use it", "url": f"{base_url}#how-to-use"},
{"title": "🛠️ API Schema", "url": "/api/schema/swagger-ui/"},
]
return render(request, "index.html", context)

Expand Down
6 changes: 3 additions & 3 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<div class="flex items-end justify-center">
<h1 class="text-4xl md:text-5xl font-bold text-zinc-950 mt-3">Django Starter Template</h1>
</div>
<p class="mt-2 text-xl text-zinc-700">
<p class="mt-2 text-xl text-zinc-800">
A comprehensive starting point for your new API with Django and DRF
</p>

Expand All @@ -30,9 +30,9 @@ <h1 class="text-4xl md:text-5xl font-bold text-zinc-950 mt-3">Django Starter Tem
{% endfor %}
</div>

<div class="mb-10 md:mb-16">
<div class="mb-10 md:mb-16 text-sm font-bold text-zinc-800 flex flex-col">
<a href="https://github.com/wilfredinni/django-starter-template/releases/tag/{{version}}"
class="text-xs font-semibold text-zinc-800">v.{{version}} Release Notes</a>
class="hover:underline">v.{{version}} Release Notes</a>
</div>


Expand Down

0 comments on commit 14c1cd8

Please sign in to comment.