Skip to content

Project NOMAD is an offline-first knowledge and education server. Wikipedia, thousands of books, courses, maps, and optional local AI, all running on hardware you own with no internet required.

TypeScript

fix(UI): add API reference to Settings sidebar

jakeaturner7fc5132e9e88
diff --git a/admin/app/controllers/openapi_controller.ts b/admin/app/controllers/openapi_controller.ts
index 85e0f8cf..20438f05 100644
--- a/admin/app/controllers/openapi_controller.ts
+++ b/admin/app/controllers/openapi_controller.ts
@@ -41,6 +41,7 @@ const REFERENCE_HTML = `<!doctype html>
url: '/api/openapi.json',
hideClientButton: true,
telemetry: false,
+ theme: 'saturn',
})
</script>
</body>
diff --git a/admin/inertia/layouts/SettingsLayout.tsx b/admin/inertia/layouts/SettingsLayout.tsx
index c367003b..a9a5c2ac 100644
--- a/admin/inertia/layouts/SettingsLayout.tsx
+++ b/admin/inertia/layouts/SettingsLayout.tsx
@@ -3,6 +3,7 @@ import {
IconArrowBigUpLines,
IconBox,
IconChartBar,
+ IconCode,
IconDashboard,
IconFolder,
IconGavel,
@@ -50,6 +51,7 @@ export default function SettingsLayout({ children }: { children: React.ReactNode
},
{ name: 'System', href: '/settings/system', icon: IconSettings, current: false },
{ name: 'Advanced', href: '/settings/advanced', icon: IconAdjustments, current: false },
+ { name: 'API Reference', href: '/reference', icon: IconCode, current: false },
{ name: 'Support the Project', href: '/settings/support', icon: IconHeart, current: false },
{ name: 'Legal Notices', href: '/settings/legal', icon: IconGavel, current: false },
]