Skip to content

Commit

Permalink
chore: update section titles
Browse files Browse the repository at this point in the history
  • Loading branch information
sweatybridge committed Sep 16, 2023
1 parent d5a5357 commit 7586303
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 25 deletions.
12 changes: 5 additions & 7 deletions apps/docs/pages/guides/cli/config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,15 @@ import Head from 'next/head'
import { CodeBlock } from 'ui'

// Parameters are grouped on the page by tag
const TAGS = ['General', 'Auth', 'API', 'Database', 'Dashboard', 'Local', 'Edge-Functions']

const tocList = []
const content = TAGS.map((tag) => {
tocList.push({ text: tag, link: `${tag.toLowerCase()}-config`, level: 2 })
const content = specFile.info.tags.map((tag) => {
tocList.push({ text: tag.title, link: `${tag.id}-config`, level: 2 })
return (
<div>
<Heading tag="h2">{tag} Config</Heading>
<Heading tag="h2">{tag.title} Config</Heading>
{specFile.parameters
.filter((param: Parameter) => param.tags[0] === tag.toLowerCase())
.map((parameter: Parameter, index) => {
.filter((param: Parameter) => param.tags[0] === tag.id)
.map((parameter: Parameter) => {
tocList.push({ text: parameter.id, link: `#${parameter.id}`, level: 3 })
return <Info parameter={parameter} />
})}
Expand Down
36 changes: 18 additions & 18 deletions spec/cli_v1_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,32 +21,32 @@ info:
title: General
description: General settings.
- id: auth
title: Auth Settings
description: Auth Settings.
title: Auth
description: Auth settings.
- id: api
title: API Settings
description: Auth Settings.
title: API
description: Auth settings.
- id: database
title: Database Settings
description: Database Settings.
title: Database
description: Database settings.
- id: dashboard
title: Dashboard
description: Dashboard settings.
- id: realtime
title: Realtime Settings
description: Dashboard Settings.
title: Realtime
description: Dashboard settings.
- id: storage
title: Storage Settings
description: Storage Settings.
- id: dashboard
title: Dashboard Settings
description: Dashboard Settings.
title: Storage
description: Storage settings.
- id: edge-functions
title: Edge Functions Settings
description: Edge Functions Settings.
title: Edge-Functions
description: Edge-Functions settings.
- id: analytics
title: Analytics Settings
description: Analytics Settings.
title: Analytics
description: Analytics settings.
- id: local
title: Local Development
description: Local Development.
description: Local Development settings.

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

0 comments on commit 7586303

Please sign in to comment.