diff --git a/apps/docs/features/docs/Reference.sections.tsx b/apps/docs/features/docs/Reference.sections.tsx
index 73ab5bcf2b9..7e030df8d51 100644
--- a/apps/docs/features/docs/Reference.sections.tsx
+++ b/apps/docs/features/docs/Reference.sections.tsx
@@ -2,6 +2,7 @@ import { Fragment } from 'react'
import ReactMarkdown from 'react-markdown'
import { Tabs_Shadcn_, TabsContent_Shadcn_, TabsList_Shadcn_, TabsTrigger_Shadcn_, cn } from 'ui'
+import { isFeatureEnabled } from 'common'
import ApiSchema from '~/components/ApiSchema'
import { REFERENCES } from '~/content/navigation.references'
import { MDXRemoteRefs, getRefMarkdown } from '~/features/docs/Reference.mdx'
@@ -42,6 +43,13 @@ async function RefSections({ libraryId, version }: RefSectionsProps) {
flattenedSections = trimIntro(flattenedSections)
}
+ if (!isFeatureEnabled('docs:auth')) {
+ flattenedSections = flattenedSections?.filter(
+ (section) =>
+ 'product' in section && section.product !== 'auth' && section.product !== 'auth-admin'
+ )
+ }
+
return (
{(flattenedSections || [])
diff --git a/packages/common/enabled-features/enabled-features.json b/packages/common/enabled-features/enabled-features.json
index 6c125708c9a..5b3494a7850 100644
--- a/packages/common/enabled-features/enabled-features.json
+++ b/packages/common/enabled-features/enabled-features.json
@@ -33,8 +33,17 @@
"database:replication": true,
"database:roles": true,
+ "docs:auth": true,
"docs:compliance": true,
+ "docs:contribution": true,
"docs:self-hosting": true,
+ "docs:framework_quickstarts": true,
+ "docs:full_getting_started": true,
+ "docs:full_platform": true,
+ "docs:mobile_tutorials": true,
+ "docs:pgtap": true,
+ "docs:production_checklist": true,
+ "docs:web_apps": true,
"feedback:docs": true,
diff --git a/packages/common/enabled-features/enabled-features.schema.json b/packages/common/enabled-features/enabled-features.schema.json
index 8d649907e79..9943b890297 100644
--- a/packages/common/enabled-features/enabled-features.schema.json
+++ b/packages/common/enabled-features/enabled-features.schema.json
@@ -115,7 +115,14 @@
"type": "boolean",
"description": "Enable the database roles page"
},
-
+ "docs:auth": {
+ "type": "boolean",
+ "description": "Enable auth docs"
+ },
+ "docs:contribution": {
+ "type": "boolean",
+ "description": "Enable documentation on contribution"
+ },
"docs:compliance": {
"type": "boolean",
"description": "Enable documentation on compliance"
@@ -124,7 +131,34 @@
"type": "boolean",
"description": "Enable documentation for self-hosting"
},
-
+ "docs:framework_quickstarts": {
+ "type": "boolean",
+ "description": "Enable framework quickstarts documentation"
+ },
+ "docs:full_getting_started": {
+ "type": "boolean",
+ "description": "Enable full getting started documentation"
+ },
+ "docs:full_platform": {
+ "type": "boolean",
+ "description": "Enable full platform documentation"
+ },
+ "docs:mobile_tutorials": {
+ "type": "boolean",
+ "description": "Enable mobile tutorials getting started documentation"
+ },
+ "docs:pgtap": {
+ "type": "boolean",
+ "description": "Enable pgtap started documentation"
+ },
+ "docs:production_checklist": {
+ "type": "boolean",
+ "description": "Enable production checklist"
+ },
+ "docs:web_apps": {
+ "type": "boolean",
+ "description": "Enable web apps getting started documentation"
+ },
"feedback:docs": {
"type": "boolean",
"description": "Enable feedback submission for docs site"
@@ -292,8 +326,17 @@
"dashboard_auth:sign_in_with_email",
"database:replication",
"database:roles",
+ "docs:auth",
"docs:compliance",
+ "docs:contribution",
+ "docs:framework_quickstarts",
+ "docs:full_getting_started",
+ "docs:full_platform",
+ "docs:mobile_tutorials",
+ "docs:pgtap",
+ "docs:production_checklist",
"docs:self-hosting",
+ "docs:web_apps",
"feedback:docs",
"integrations:partners",
"integrations:show_stripe_wrapper",