From d32d9a26470e06c85d6ed2b357106fb101dfc65b Mon Sep 17 00:00:00 2001 From: hoang Date: Tue, 27 Oct 2026 14:58:50 +0700 Subject: [PATCH] Always use the light theme for Rapidoc In Promgen, we use Rapidoc to generate the API Specs page and have customized its UI colors to align with Promgen's style. However, Rapidoc supports both light and dark themes, and we haven't specified UI colors for the dark theme. Consequently, the API Specs page appears disabled when switching the browser or operating system to dark mode. Since Promgen does not support dark mode, we resolved this issue by simply forcing Rapidoc to always use the light theme. --- promgen/templates/rest_framework/api_v2.html | 1 + 1 file changed, 1 insertion(+) diff --git a/promgen/templates/rest_framework/api_v2.html b/promgen/templates/rest_framework/api_v2.html index 9b9d27805..0dc683911 100644 --- a/promgen/templates/rest_framework/api_v2.html +++ b/promgen/templates/rest_framework/api_v2.html @@ -52,6 +52,7 @@

API v2 Specification

sort-endpoints-by="method" sort-tags="true" spec-url="{% url 'api-v2:schema' %}" + theme="light" >