-
Notifications
You must be signed in to change notification settings - Fork 12
/
builder.ts
53 lines (48 loc) · 1.3 KB
/
builder.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { type Editor } from '@tiptap/core'
export enum NodeName {
BANNER = 'custom-banner',
TECH_STACK = 'custom-techStack',
PROJECT_SUMMARY = 'custom-projectSummary',
SETTING_UP = 'custom-envVariablesGuide',
RUN_LOCALLY = 'custom-runlocally',
CONTRIBUTORS = 'custom-contributors',
LICENSE = 'custom-license',
PROJECT_STRUCTURE = 'custom-projectStructure',
DEPLOY = 'custom-deploy',
ROADMAP = 'custom-roadmap',
ACKNOWLEDGEMENTS = 'custom-acknowledgments',
CHANGELOG = 'custom-changelog',
PREREQUISITES = 'custom-prerequisites',
FAQ = 'custom-faq',
COMMANDS = 'custom-commands',
TABLE_CONTENTS = 'custom-tableContents',
OVERVIEW = 'custom-overview',
BADGE = 'custom-badges',
API_REFERENCE = 'custom-api-reference',
FEEDBACK = 'custom-feedback',
LIB_PROPS = 'custom-lib-props',
ALERT = 'custom-alert',
MONOREPO_SUMMARY = 'custom-monorepo-summary'
}
export type Section = {
id: NodeName
name: string
emoji: string | undefined
description: string
add: ({ editor, endPos, data }: { editor: Editor; endPos: number; data?: any }) => void
useAi: boolean
}
export enum ContributorOption {
GALLERY = 'gallery',
TABLE = 'table'
}
export type BadgeItem = {
id: string
name: string
url: string
}
export type BadgeOption = {
id: string
label: string
data: BadgeItem[]
}