mirror of https://github.com/onweru/compose.git

weru
02.11.2025 3ce592799ee1f8f4f6688d148885582473887048
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
import { Collection } from "tinacms";
 
const Setting: Collection = {
  name: "setting",
  label: "Other Settings",
  path: "config/_default",
  format: "toml",
  ui: {
    allowedActions: {
      create: false,
      delete: false,
    }
  },
  match: {
    include: "*params*",
  },
  fields: [
    {
      type: "boolean",
      name: "uniqueHomePage",
      label: "Homepage is unique",
      description: "change to false to add sidebar to homepage"
    },
    {
      type: "string",
      name: "docSections",
      label: "Doc Sections",
      list: true,
      description: "use the setting to set multiple docs directories."
    },
    {
      type: "string",
      name: "repo",
      label: "Repository link"
    },
    {
      type: "string",
      name: "time_format_blog",
      label: "Time Format",
      description: "e.g. Monday, January 02, 2006"
    },
    {
      type: "string",
      name: "time_format_default",
      label: "Time format default",
      description: "e.g January 2, 2006"
    },
    {
      type: "boolean",
      name: "EnableDarkMode",
      label: "Enable Dark Mode",
      description: "set to false to disable darkmode by default # user will still have the option to use dark mode"
    },
    {
      type: "string",
      name: "defaultLighingMode",
      label: "Default Lighting Mode",
      description: "possible values: \"auto\", \"dark\", \"light\". Defaults to 'auto'"
    },
    {
      type: "number",
      name: "codeMaxLines",
      label: "Maximum lines in snippet",
      description: "sets the maximum number of lines per codeblock. The codeblock will however be scrollable and expandable."
    },
    {
      type: "boolean",
      name: "showLineNumbers",
      label: "Show line numbers",
      description: "show/hide line numbers by default. Switch to `true` if you'd rather have them on."
    },
    {
      type: "string",
      name: "iconsPath",
      label: "Icons path",
      description: "By default the template will look for icons under the `icons` directory",
    },
    {
      type: "object",
      name: "author",
      label: "Author",
      fields: [
        {
          type: "string",
          name: "name",
          label: "Name",
        },
        {
          type: "string",
          name: "url",
          label: "Profile/Portfolio link",
        }
      ]
    },
    {
      type: "object",
      name: "logo",
      label: "Site Logo",
      fields: [
        {
          type: "image",
          name: "lightMode",
          label: "Light mode logo",
        },
        {
          type: "image",
          name: "darkMode",
          label: "Dark mode logo",
        }
      ]
    },
    {
      type: "object",
      name: "source",
      label: "Repo details",
      fields: [
        {
          type: "string",
          name: "name",
          label: "Git Platform",
          description: "e.g bitbucket, github, gitlab"
        },
        {
          type: "string",
          name: "url",
          label: "repository link",
        },
        {
          type: "image",
          name: "iconLight",
          label: "Light mode icon",
        },
        {
          type: "image",
          name: "iconDark",
          label: "Dark mode icon",
        }
      ]
    },
    {
      type: "boolean",
      name: "enableCopyright",
      label: "Enable copyright",
      description: "Defaults to 'true'. Enable copyRight Footer Stamp. Takes in attribution.",
    },
    {
      type: "object",
      name: "search",
      label: "Search Settings",
      fields: [
        {
          type: "boolean",
          name: "on",
          label: "Enable search"
        },
        {
          type: "boolean",
          name: "global",
          label: "Enable global search"
        },
        {
          type: "object",
          name: "algolia",
          label: "Algolia search",
          fields: [
            {
              type: "boolean",
              name: "enable",
              label: "Enable Algolia search",
              description: "if not enabled search will default to fusejs"
            },
            {
              type: "string",
              name: "id",
              label: "Algolia ID"
            },
            {
              type: "string",
              name: "index",
              label: "Algolia search index name",
            },
            {
              type: "string",
              name: "key",
              label: "Search-Only API key"
            }
          ]
        }
      ]
    },
    {
      type: "string",
      name: "otherSearchableFields",
      list: true,
      label: "Other searchable fields",
      description: "As they appear in frontmatter"
    }
  ]
};
 
export default Setting;