|
| 1 | +--- |
| 2 | +title: 'Global Settings' |
| 3 | +description: 'Mintlify gives you complete control over the look and feel of your documentation using the mint.json file' |
| 4 | +icon: 'gear' |
| 5 | +--- |
| 6 | + |
| 7 | +Every Mintlify site needs a `mint.json` file with the core configuration settings. Learn more about the [properties](#properties) below. |
| 8 | + |
| 9 | +## Properties |
| 10 | + |
| 11 | +<ResponseField name="name" type="string" required> |
| 12 | +Name of your project. Used for the global title. |
| 13 | + |
| 14 | +Example: `mintlify` |
| 15 | + |
| 16 | +</ResponseField> |
| 17 | + |
| 18 | +<ResponseField name="navigation" type="Navigation[]" required> |
| 19 | + An array of groups with all the pages within that group |
| 20 | + <Expandable title="Navigation"> |
| 21 | + <ResponseField name="group" type="string"> |
| 22 | + The name of the group. |
| 23 | + |
| 24 | + Example: `Settings` |
| 25 | + |
| 26 | + </ResponseField> |
| 27 | + <ResponseField name="pages" type="string[]"> |
| 28 | + The relative paths to the markdown files that will serve as pages. |
| 29 | + |
| 30 | + Example: `["customization", "page"]` |
| 31 | + |
| 32 | + </ResponseField> |
| 33 | + |
| 34 | + </Expandable> |
| 35 | +</ResponseField> |
| 36 | + |
| 37 | +<ResponseField name="logo" type="string or object"> |
| 38 | + Path to logo image or object with path to "light" and "dark" mode logo images |
| 39 | + <Expandable title="Logo"> |
| 40 | + <ResponseField name="light" type="string"> |
| 41 | + Path to the logo in light mode |
| 42 | + </ResponseField> |
| 43 | + <ResponseField name="dark" type="string"> |
| 44 | + Path to the logo in dark mode |
| 45 | + </ResponseField> |
| 46 | + <ResponseField name="href" type="string" default="/"> |
| 47 | + Where clicking on the logo links you to |
| 48 | + </ResponseField> |
| 49 | + </Expandable> |
| 50 | +</ResponseField> |
| 51 | + |
| 52 | +<ResponseField name="favicon" type="string"> |
| 53 | + Path to the favicon image |
| 54 | +</ResponseField> |
| 55 | + |
| 56 | +<ResponseField name="colors" type="Colors"> |
| 57 | + Hex color codes for your global theme |
| 58 | + <Expandable title="Colors"> |
| 59 | + <ResponseField name="primary" type="string" required> |
| 60 | + The primary color. Used for most often for highlighted content, section |
| 61 | + headers, accents, in light mode |
| 62 | + </ResponseField> |
| 63 | + <ResponseField name="light" type="string"> |
| 64 | + The primary color for dark mode. Used for most often for highlighted |
| 65 | + content, section headers, accents, in dark mode |
| 66 | + </ResponseField> |
| 67 | + <ResponseField name="dark" type="string"> |
| 68 | + The primary color for important buttons |
| 69 | + </ResponseField> |
| 70 | + <ResponseField name="background" type="object"> |
| 71 | + The color of the background in both light and dark mode |
| 72 | + <Expandable title="Object"> |
| 73 | + <ResponseField name="light" type="string" required> |
| 74 | + The hex color code of the background in light mode |
| 75 | + </ResponseField> |
| 76 | + <ResponseField name="dark" type="string" required> |
| 77 | + The hex color code of the background in dark mode |
| 78 | + </ResponseField> |
| 79 | + </Expandable> |
| 80 | + </ResponseField> |
| 81 | + </Expandable> |
| 82 | +</ResponseField> |
| 83 | + |
| 84 | +<ResponseField name="topbarLinks" type="TopbarLink[]"> |
| 85 | + Array of `name`s and `url`s of links you want to include in the topbar |
| 86 | + <Expandable title="TopbarLink"> |
| 87 | + <ResponseField name="name" type="string"> |
| 88 | + The name of the button. |
| 89 | + |
| 90 | + Example: `Contact us` |
| 91 | + </ResponseField> |
| 92 | + <ResponseField name="url" type="string"> |
| 93 | + The url once you click on the button. Example: `https://mintlify.com/docs` |
| 94 | + </ResponseField> |
| 95 | + |
| 96 | + </Expandable> |
| 97 | +</ResponseField> |
| 98 | + |
| 99 | +<ResponseField name="topbarCtaButton" type="Call to Action"> |
| 100 | + <Expandable title="Topbar Call to Action"> |
| 101 | + <ResponseField name="type" type={'"link" or "github"'} default="link"> |
| 102 | + Link shows a button. GitHub shows the repo information at the url provided including the number of GitHub stars. |
| 103 | + </ResponseField> |
| 104 | + <ResponseField name="url" type="string"> |
| 105 | + If `link`: What the button links to. |
| 106 | + |
| 107 | + If `github`: Link to the repository to load GitHub information from. |
| 108 | + </ResponseField> |
| 109 | + <ResponseField name="name" type="string"> |
| 110 | + Text inside the button. Only required if `type` is a `link`. |
| 111 | + </ResponseField> |
| 112 | + |
| 113 | + </Expandable> |
| 114 | +</ResponseField> |
| 115 | + |
| 116 | +<ResponseField name="versions" type="string[]"> |
| 117 | + Array of version names. Only use this if you want to show different versions |
| 118 | + of docs with a dropdown in the navigation bar. |
| 119 | +</ResponseField> |
| 120 | + |
| 121 | +<ResponseField name="anchors" type="Anchor[]"> |
| 122 | + An array of the anchors, includes the `icon`, `color`, and `url`. |
| 123 | + <Expandable title="Anchor"> |
| 124 | + <ResponseField name="icon" type="string"> |
| 125 | + The [Font Awesome](https://fontawesome.com/search?q=heart) icon used to feature the anchor. |
| 126 | + |
| 127 | + Example: `comments` |
| 128 | + </ResponseField> |
| 129 | + <ResponseField name="name" type="string"> |
| 130 | + The name of the anchor label. |
| 131 | + |
| 132 | + Example: `Community` |
| 133 | + </ResponseField> |
| 134 | + <ResponseField name="url" type="string"> |
| 135 | + The start of the URL that marks what pages go in the anchor. Generally, this is the name of the folder you put your pages in. |
| 136 | + </ResponseField> |
| 137 | + <ResponseField name="color" type="string"> |
| 138 | + The hex color of the anchor icon background. Can also be a gradient if you pass an object with the properties `from` and `to` that are each a hex color. |
| 139 | + </ResponseField> |
| 140 | + <ResponseField name="version" type="string"> |
| 141 | + Used if you want to hide an anchor until the correct docs version is selected. |
| 142 | + </ResponseField> |
| 143 | + <ResponseField name="isDefaultHidden" type="boolean" default="false"> |
| 144 | + Pass `true` if you want to hide the anchor until you directly link someone to docs inside it. |
| 145 | + </ResponseField> |
| 146 | + <ResponseField name="iconType" default="duotone" type="string"> |
| 147 | + One of: "brands", "duotone", "light", "sharp-solid", "solid", or "thin" |
| 148 | + </ResponseField> |
| 149 | + |
| 150 | + </Expandable> |
| 151 | +</ResponseField> |
| 152 | + |
| 153 | +<ResponseField name="topAnchor" type="Object"> |
| 154 | + Override the default configurations for the top-most anchor. |
| 155 | + <Expandable title="Object"> |
| 156 | + <ResponseField name="name" default="Documentation" type="string"> |
| 157 | + The name of the top-most anchor |
| 158 | + </ResponseField> |
| 159 | + <ResponseField name="icon" default="book-open" type="string"> |
| 160 | + Font Awesome icon. |
| 161 | + </ResponseField> |
| 162 | + <ResponseField name="iconType" default="duotone" type="string"> |
| 163 | + One of: "brands", "duotone", "light", "sharp-solid", "solid", or "thin" |
| 164 | + </ResponseField> |
| 165 | + </Expandable> |
| 166 | +</ResponseField> |
| 167 | + |
| 168 | +<ResponseField name="tabs" type="Tabs[]"> |
| 169 | + An array of navigational tabs. |
| 170 | + <Expandable title="Tabs"> |
| 171 | + <ResponseField name="name" type="string"> |
| 172 | + The name of the tab label. |
| 173 | + </ResponseField> |
| 174 | + <ResponseField name="url" type="string"> |
| 175 | + The start of the URL that marks what pages go in the tab. Generally, this |
| 176 | + is the name of the folder you put your pages in. |
| 177 | + </ResponseField> |
| 178 | + </Expandable> |
| 179 | +</ResponseField> |
| 180 | + |
| 181 | +<ResponseField name="api" type="API"> |
| 182 | + Configuration for API settings. Learn more about API pages at [API Components](/api-playground/demo). |
| 183 | + <Expandable title="API"> |
| 184 | + <ResponseField name="baseUrl" type="string"> |
| 185 | + The base url for all API endpoints. If `baseUrl` is an array, it will enable for multiple base url |
| 186 | + options that the user can toggle. |
| 187 | + </ResponseField> |
| 188 | + |
| 189 | + <ResponseField name="auth" type="Auth"> |
| 190 | + <Expandable title="Auth"> |
| 191 | + <ResponseField name="method" type='"bearer" | "basic" | "key"'> |
| 192 | + The authentication strategy used for all API endpoints. |
| 193 | + </ResponseField> |
| 194 | + <ResponseField name="name" type="string"> |
| 195 | + The name of the authentication parameter used in the API playground. |
| 196 | + |
| 197 | + If method is `basic`, the format should be `[usernameName]:[passwordName]` |
| 198 | + </ResponseField> |
| 199 | + <ResponseField name="inputPrefix" type="string"> |
| 200 | + The default value that's designed to be a prefix for the authentication input field. |
| 201 | + |
| 202 | + E.g. If an `inputPrefix` of `AuthKey` would inherit the default input result of the authentication field as `AuthKey`. |
| 203 | + </ResponseField> |
| 204 | + </Expandable> |
| 205 | + </ResponseField> |
| 206 | + |
| 207 | + <ResponseField name="playground" type="Playground"> |
| 208 | + Configurations for the API playground |
| 209 | + |
| 210 | + <Expandable title="Playground"> |
| 211 | + <ResponseField name="mode" default="show" type='"show" | "simple" | "hide"'> |
| 212 | + Whether the playground is showing, hidden, or only displaying the endpoint with no added user interactivity `simple` |
| 213 | + |
| 214 | + Learn more at the [playground guides](/api-playground/demo) |
| 215 | + </ResponseField> |
| 216 | + </Expandable> |
| 217 | + </ResponseField> |
| 218 | + |
| 219 | + <ResponseField name="maintainOrder" type="boolean"> |
| 220 | + Enabling this flag ensures that key ordering in OpenAPI pages matches the key ordering defined in the OpenAPI file. |
| 221 | + |
| 222 | + <Warning>This behavior will soon be enabled by default, at which point this field will be deprecated.</Warning> |
| 223 | + </ResponseField> |
| 224 | + |
| 225 | + </Expandable> |
| 226 | +</ResponseField> |
| 227 | + |
| 228 | +<ResponseField name="openapi" type="string | string[]"> |
| 229 | + A string or an array of strings of URL(s) or relative path(s) pointing to your |
| 230 | + OpenAPI file. |
| 231 | + |
| 232 | + Examples: |
| 233 | + <CodeGroup> |
| 234 | + ```json Absolute |
| 235 | + "openapi": "https://example.com/openapi.json" |
| 236 | + ``` |
| 237 | + ```json Relative |
| 238 | + "openapi": "/openapi.json" |
| 239 | + ``` |
| 240 | + ```json Multiple |
| 241 | + "openapi": ["https://example.com/openapi1.json", "/openapi2.json", "/openapi3.json"] |
| 242 | + ``` |
| 243 | + </CodeGroup> |
| 244 | + |
| 245 | +</ResponseField> |
| 246 | + |
| 247 | +<ResponseField name="footerSocials" type="FooterSocials"> |
| 248 | + An object of social media accounts where the key:property pair represents the social media platform and the account url. |
| 249 | + |
| 250 | + Example: |
| 251 | + ```json |
| 252 | + { |
| 253 | + "x": "https://x.com/mintlify", |
| 254 | + "website": "https://mintlify.com" |
| 255 | + } |
| 256 | + ``` |
| 257 | + <Expandable title="FooterSocials"> |
| 258 | + <ResponseField name="[key]" type="string"> |
| 259 | + One of the following values `website`, `facebook`, `x`, `discord`, `slack`, `github`, `linkedin`, `instagram`, `hacker-news` |
| 260 | + |
| 261 | + Example: `x` |
| 262 | + </ResponseField> |
| 263 | + <ResponseField name="property" type="string"> |
| 264 | + The URL to the social platform. |
| 265 | + |
| 266 | + Example: `https://x.com/mintlify` |
| 267 | + </ResponseField> |
| 268 | + </Expandable> |
| 269 | +</ResponseField> |
| 270 | + |
| 271 | +<ResponseField name="feedback" type="Feedback"> |
| 272 | + Configurations to enable feedback buttons |
| 273 | + |
| 274 | + <Expandable title="Feedback"> |
| 275 | + <ResponseField name="suggestEdit" type="boolean" default="false"> |
| 276 | + Enables a button to allow users to suggest edits via pull requests |
| 277 | + </ResponseField> |
| 278 | + <ResponseField name="raiseIssue" type="boolean" default="false"> |
| 279 | + Enables a button to allow users to raise an issue about the documentation |
| 280 | + </ResponseField> |
| 281 | + </Expandable> |
| 282 | +</ResponseField> |
| 283 | + |
| 284 | +<ResponseField name="modeToggle" type="ModeToggle"> |
| 285 | + Customize the dark mode toggle. |
| 286 | + <Expandable title="ModeToggle"> |
| 287 | + <ResponseField name="default" type={'"light" or "dark"'}> |
| 288 | + Set if you always want to show light or dark mode for new users. When not |
| 289 | + set, we default to the same mode as the user's operating system. |
| 290 | + </ResponseField> |
| 291 | + <ResponseField name="isHidden" type="boolean" default="false"> |
| 292 | + Set to true to hide the dark/light mode toggle. You can combine `isHidden` with `default` to force your docs to only use light or dark mode. For example: |
| 293 | + |
| 294 | + <CodeGroup> |
| 295 | + ```json Only Dark Mode |
| 296 | + "modeToggle": { |
| 297 | + "default": "dark", |
| 298 | + "isHidden": true |
| 299 | + } |
| 300 | + ``` |
| 301 | + |
| 302 | + ```json Only Light Mode |
| 303 | + "modeToggle": { |
| 304 | + "default": "light", |
| 305 | + "isHidden": true |
| 306 | + } |
| 307 | + ``` |
| 308 | + </CodeGroup> |
| 309 | + |
| 310 | + </ResponseField> |
| 311 | + |
| 312 | + </Expandable> |
| 313 | +</ResponseField> |
| 314 | + |
| 315 | +<ResponseField name="backgroundImage" type="string"> |
| 316 | + A background image to be displayed behind every page. See example with |
| 317 | + [Infisical](https://infisical.com/docs) and [FRPC](https://frpc.io). |
| 318 | +</ResponseField> |
0 commit comments