Global Settings
Every Mintlify site needs a docs.json file with the core configuration settings. Learn more about the properties below.
Properties
namestringrequiredName of your project. Used for the global title.
Example: mintlify
navigationNavigation[]requiredAn array of groups with all the pages within that group The name of the group. Example: The relative paths to the markdown files that will serve as pages. Example: Navigation
groupstringSettingspagesstring[]["customization", "page"]
logostring or objectPath to logo image or object with path to "light" and "dark" mode logo images Path to the logo in light mode Path to the logo in dark mode Where clicking on the logo links you toLogo
lightstringdarkstringhrefstring
faviconstringPath to the favicon image
colorsColorsHex color codes for your global theme The primary color. Used for most often for highlighted content, section
headers, accents, in light mode The primary color for dark mode. Used for most often for highlighted
content, section headers, accents, in dark mode The primary color for important buttons The color of the background in both light and dark mode The hex color code of the background in light mode The hex color code of the background in dark modeColors
primarystringrequiredlightstringdarkstringbackgroundobjectObject
lightstringrequireddarkstringrequired
topbarLinksTopbarLink[]Array of The name of the button. Example: The url once you click on the button. Example: names and urls of links you want to include in the topbarTopbarLink
namestringContact usurlstringhttps://mintlify.com/docs
topbarCtaButtonCall to ActionTopbar Call to Action
type"link" or "github"Link shows a button. GitHub shows the repo information at the url provided including the number of GitHub stars.
urlstringIf link: What the button links to.
If github: Link to the repository to load GitHub information from.
namestringText inside the button. Only required if type is a link.
versionsstring[]Array of version names. Only use this if you want to show different versions of docs with a dropdown in the navigation bar.
anchorsAnchor[]An array of the anchors, includes the The Font Awesome icon used to feature the anchor. Example: The name of the anchor label. Example: 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. The hex color of the anchor icon background. Can also be a gradient if you pass an object with the properties Used if you want to hide an anchor until the correct docs version is selected. Pass One of: "brands", "duotone", "light", "sharp-solid", "solid", or "thin"icon, color, and url.Anchor
iconstringcommentsnamestringCommunityurlstringcolorstringfrom and to that are each a hex color.versionstringisDefaultHiddenbooleantrue if you want to hide the anchor until you directly link someone to docs inside it.iconTypestring
topAnchorObjectOverride the default configurations for the top-most anchor. The name of the top-most anchor Font Awesome icon. One of: "brands", "duotone", "light", "sharp-solid", "solid", or "thin"Object
namestringiconstringiconTypestring
tabsTabs[]An array of navigational tabs. The name of the tab label. The start of the URL that marks what pages go in the tab. Generally, this
is the name of the folder you put your pages in.Tabs
namestringurlstring
apiAPIConfiguration for API settings. Learn more about API pages at API Components. The base url for all API endpoints. If The authentication strategy used for all API endpoints. The name of the authentication parameter used in the API playground. If method is The default value that's designed to be a prefix for the authentication input field. E.g. If an Configurations for the API playground Whether the playground is showing, hidden, or only displaying the endpoint with no added user interactivity Learn more at the playground guides Enabling this flag ensures that key ordering in OpenAPI pages matches the key ordering defined in the OpenAPI file.API
baseUrlstringbaseUrl is an array, it will enable for multiple base url
options that the user can toggle.authAuthAuth
method"bearer" | "basic" | "key"namestringbasic, the format should be [usernameName]:[passwordName]inputPrefixstringinputPrefix of AuthKey would inherit the default input result of the authentication field as AuthKey.playgroundPlaygroundPlayground
mode"show" | "simple" | "hide"simplemaintainOrderboolean
openapistring | string[]A string or an array of strings of URL(s) or relative path(s) pointing to your OpenAPI file.
Examples:
"openapi": "https://example.com/openapi.json"
"openapi": "/openapi.json"
"openapi": ["https://example.com/openapi1.json", "/openapi2.json", "/openapi3.json"]
footerSocialsFooterSocialsAn object of social media accounts where the key:property pair represents the social media platform and the account url.
Example:
{
"x": "https://x.com/mintlify",
"website": "https://mintlify.com"
}
FooterSocials
[key]stringOne of the following values website, facebook, x, discord, slack, github, linkedin, instagram, hacker-news
Example: x
propertystringThe URL to the social platform.
Example: https://x.com/mintlify
feedbackFeedbackConfigurations to enable feedback buttons Enables a button to allow users to suggest edits via pull requests Enables a button to allow users to raise an issue about the documentationFeedback
suggestEditbooleanraiseIssueboolean
modeToggleModeToggleCustomize the dark mode toggle. Set if you always want to show light or dark mode for new users. When not
set, we default to the same mode as the user's operating system. Set to true to hide the dark/light mode toggle. You can combine ModeToggle
default"light" or "dark"isHiddenbooleanisHidden with default to force your docs to only use light or dark mode. For example: