Skip to content

Commit 7586303

Browse files
committed
chore: update section titles
1 parent d5a5357 commit 7586303

File tree

2 files changed

+23
-25
lines changed

2 files changed

+23
-25
lines changed

apps/docs/pages/guides/cli/config.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,15 @@ import Head from 'next/head'
77
import { CodeBlock } from 'ui'
88

99
// Parameters are grouped on the page by tag
10-
const TAGS = ['General', 'Auth', 'API', 'Database', 'Dashboard', 'Local', 'Edge-Functions']
11-
1210
const tocList = []
13-
const content = TAGS.map((tag) => {
14-
tocList.push({ text: tag, link: `${tag.toLowerCase()}-config`, level: 2 })
11+
const content = specFile.info.tags.map((tag) => {
12+
tocList.push({ text: tag.title, link: `${tag.id}-config`, level: 2 })
1513
return (
1614
<div>
17-
<Heading tag="h2">{tag} Config</Heading>
15+
<Heading tag="h2">{tag.title} Config</Heading>
1816
{specFile.parameters
19-
.filter((param: Parameter) => param.tags[0] === tag.toLowerCase())
20-
.map((parameter: Parameter, index) => {
17+
.filter((param: Parameter) => param.tags[0] === tag.id)
18+
.map((parameter: Parameter) => {
2119
tocList.push({ text: parameter.id, link: `#${parameter.id}`, level: 3 })
2220
return <Info parameter={parameter} />
2321
})}

spec/cli_v1_config.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,32 @@ info:
2121
title: General
2222
description: General settings.
2323
- id: auth
24-
title: Auth Settings
25-
description: Auth Settings.
24+
title: Auth
25+
description: Auth settings.
2626
- id: api
27-
title: API Settings
28-
description: Auth Settings.
27+
title: API
28+
description: Auth settings.
2929
- id: database
30-
title: Database Settings
31-
description: Database Settings.
30+
title: Database
31+
description: Database settings.
32+
- id: dashboard
33+
title: Dashboard
34+
description: Dashboard settings.
3235
- id: realtime
33-
title: Realtime Settings
34-
description: Dashboard Settings.
36+
title: Realtime
37+
description: Dashboard settings.
3538
- id: storage
36-
title: Storage Settings
37-
description: Storage Settings.
38-
- id: dashboard
39-
title: Dashboard Settings
40-
description: Dashboard Settings.
39+
title: Storage
40+
description: Storage settings.
4141
- id: edge-functions
42-
title: Edge Functions Settings
43-
description: Edge Functions Settings.
42+
title: Edge-Functions
43+
description: Edge-Functions settings.
4444
- id: analytics
45-
title: Analytics Settings
46-
description: Analytics Settings.
45+
title: Analytics
46+
description: Analytics settings.
4747
- id: local
4848
title: Local Development
49-
description: Local Development.
49+
description: Local Development settings.
5050

5151
# This section is an array of public functions which a user might need to execute.
5252
parameters:

0 commit comments

Comments
 (0)