remove redoc references

This commit is contained in:
Michael Genson
2026-02-20 18:39:47 +00:00
parent 36a4bd863d
commit d915baa17f
6 changed files with 2 additions and 12 deletions

View File

@@ -1,4 +0,0 @@
---
title: API
template: api.html
---

View File

@@ -93,7 +93,7 @@ nav:
- iOS Shortcut: "documentation/community-guide/ios-shortcut.md" - iOS Shortcut: "documentation/community-guide/ios-shortcut.md"
- Reverse Proxy (SWAG): "documentation/community-guide/swag.md" - Reverse Proxy (SWAG): "documentation/community-guide/swag.md"
- API Reference: "api/redoc.md" - API Reference: "https://demo.mealie.io/docs"
- Contributors Guide: - Contributors Guide:
- Non-Code: "contributors/non-coders.md" - Non-Code: "contributors/non-coders.md"

View File

@@ -219,7 +219,7 @@ export default defineNuxtConfig({
}, },
workbox: { workbox: {
navigateFallback: "/", navigateFallback: "/",
navigateFallbackAllowlist: [/^(?!\/api|\/docs|\/redoc)/], navigateFallbackAllowlist: [/^(?!\/api|\/docs)/],
globPatterns: ["**/*.{js,css,html,png,svg,ico}"], globPatterns: ["**/*.{js,css,html,png,svg,ico}"],
globIgnores: ["404.html", "200.html"], globIgnores: ["404.html", "200.html"],
cleanupOutdatedCaches: true, cleanupOutdatedCaches: true,

View File

@@ -102,7 +102,6 @@ app = FastAPI(
description=description, description=description,
version=APP_VERSION, version=APP_VERSION,
docs_url=settings.DOCS_URL, docs_url=settings.DOCS_URL,
redoc_url=settings.REDOC_URL,
lifespan=lifespan_fn, lifespan=lifespan_fn,
) )

View File

@@ -199,10 +199,6 @@ class AppSettings(AppLoggingSettings):
def DOCS_URL(self) -> str | None: def DOCS_URL(self) -> str | None:
return "/docs" if self.API_DOCS else None return "/docs" if self.API_DOCS else None
@property
def REDOC_URL(self) -> str | None:
return "/redoc" if self.API_DOCS else None
# =============================================== # ===============================================
# Database Configuration # Database Configuration

View File

@@ -23,7 +23,6 @@ def test_non_default_settings(monkeypatch):
assert app_settings.API_PORT == 8000 assert app_settings.API_PORT == 8000
assert app_settings.API_DOCS is False assert app_settings.API_DOCS is False
assert app_settings.REDOC_URL is None
assert app_settings.DOCS_URL is None assert app_settings.DOCS_URL is None