Skip to content

Commit 3d08d45

Browse files
Documentation edits made through Mintlify web editor
1 parent 0495a5a commit 3d08d45

File tree

1 file changed

+235
-0
lines changed

1 file changed

+235
-0
lines changed

settings.mdx

Lines changed: 235 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,241 @@ This section contains the full reference for the docs.json file.
779779
</ResponseField>
780780

781781

782+
## Example Configuration
783+
784+
Here's a comprehensive example of a `docs.json` file showcasing various configuration options:
785+
786+
```json
787+
{
788+
"$schema": "https://mintlify.com/docs.json",
789+
"name": "Acme API Documentation",
790+
"description": "Complete API documentation for Acme's developer platform",
791+
"theme": "mint",
792+
"logo": {
793+
"light": "/logo/light.svg",
794+
"dark": "/logo/dark.svg",
795+
"href": "https://acme.com"
796+
},
797+
"favicon": "/favicon.png",
798+
"colors": {
799+
"primary": "#0D9373",
800+
"light": "#07C983",
801+
"dark": "#0D9373"
802+
},
803+
"styling": {
804+
"eyebrows": "breadcrumbs",
805+
"codeblocks": "dark"
806+
},
807+
"icons": {
808+
"library": "lucide"
809+
},
810+
"fonts": {
811+
"family": "Inter",
812+
"weight": 400,
813+
"heading": {
814+
"family": "Inter",
815+
"weight": 600
816+
}
817+
},
818+
"appearance": {
819+
"default": "system",
820+
"strict": false
821+
},
822+
"background": {
823+
"decoration": "gradient",
824+
"color": {
825+
"light": "#f8fafc",
826+
"dark": "#0f172a"
827+
}
828+
},
829+
"navbar": {
830+
"links": [
831+
{
832+
"label": "Blog",
833+
"href": "https://acme.com/blog",
834+
"icon": "newspaper"
835+
},
836+
{
837+
"label": "Community",
838+
"href": "https://discord.gg/acme",
839+
"icon": "users"
840+
}
841+
],
842+
"primary": {
843+
"type": "github",
844+
"href": "https://github.com/acme/api"
845+
}
846+
},
847+
"navigation": {
848+
"global": {
849+
"languages": [
850+
{
851+
"language": "en",
852+
"default": true,
853+
"href": "/"
854+
},
855+
{
856+
"language": "es",
857+
"href": "/es"
858+
}
859+
],
860+
"versions": [
861+
{
862+
"version": "v2.0",
863+
"default": true,
864+
"href": "/"
865+
},
866+
{
867+
"version": "v1.0",
868+
"href": "/v1"
869+
}
870+
]
871+
},
872+
"tabs": [
873+
{
874+
"tab": "Getting Started",
875+
"pages": [
876+
"introduction",
877+
"quickstart",
878+
"authentication"
879+
]
880+
},
881+
{
882+
"tab": "API Reference",
883+
"pages": [
884+
{
885+
"group": "Users",
886+
"pages": [
887+
"api-reference/users/create",
888+
"api-reference/users/get",
889+
"api-reference/users/update",
890+
"api-reference/users/delete"
891+
]
892+
},
893+
{
894+
"group": "Projects",
895+
"pages": [
896+
"api-reference/projects/list",
897+
"api-reference/projects/create",
898+
"api-reference/projects/get"
899+
]
900+
}
901+
]
902+
},
903+
{
904+
"tab": "Guides",
905+
"pages": [
906+
"guides/webhooks",
907+
"guides/rate-limiting",
908+
"guides/error-handling"
909+
]
910+
}
911+
]
912+
},
913+
"footer": {
914+
"socials": {
915+
"x": "https://x.com/acme",
916+
"github": "https://github.com/acme",
917+
"linkedin": "https://linkedin.com/company/acme",
918+
"discord": "https://discord.gg/acme"
919+
},
920+
"links": [
921+
{
922+
"header": "Product",
923+
"items": [
924+
{
925+
"label": "Features",
926+
"href": "https://acme.com/features"
927+
},
928+
{
929+
"label": "Pricing",
930+
"href": "https://acme.com/pricing"
931+
}
932+
]
933+
},
934+
{
935+
"header": "Resources",
936+
"items": [
937+
{
938+
"label": "Blog",
939+
"href": "https://acme.com/blog"
940+
},
941+
{
942+
"label": "Status",
943+
"href": "https://status.acme.com"
944+
}
945+
]
946+
}
947+
]
948+
},
949+
"banner": {
950+
"content": "🎉 API v2.0 is now live! [View the migration guide →](/migration)",
951+
"dismissible": true
952+
},
953+
"api": {
954+
"openapi": [
955+
"https://api.acme.com/openapi.json",
956+
"/openapi/users.json"
957+
],
958+
"playground": {
959+
"display": "interactive",
960+
"proxy": true
961+
},
962+
"examples": {
963+
"languages": ["javascript", "python", "curl", "go"],
964+
"defaults": "required"
965+
},
966+
"mdx": {
967+
"auth": {
968+
"method": "bearer",
969+
"name": "Authorization"
970+
},
971+
"server": "https://api.acme.com"
972+
}
973+
},
974+
"seo": {
975+
"indexing": "navigable",
976+
"metatags": {
977+
"og:site_name": "Acme API Documentation",
978+
"twitter:site": "@acme"
979+
}
980+
},
981+
"search": {
982+
"prompt": "Search documentation..."
983+
},
984+
"integrations": {
985+
"ga4": {
986+
"measurementId": "G-XXXXXXXXXX"
987+
},
988+
"intercom": {
989+
"appId": "abcd1234"
990+
},
991+
"posthog": {
992+
"apiKey": "phc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
993+
"apiHost": "https://app.posthog.com"
994+
}
995+
},
996+
"contextual": {
997+
"options": ["copy", "chatgpt", "claude"]
998+
},
999+
"redirects": [
1000+
{
1001+
"source": "/old-docs/:path*",
1002+
"destination": "/new-docs/:path*",
1003+
"permanent": true
1004+
}
1005+
]
1006+
}
1007+
```
1008+
1009+
This example demonstrates:
1010+
- **Theme & Branding**: Custom colors, fonts, and logo configuration
1011+
- **Navigation**: Multi-tab structure with grouped pages and global options
1012+
- **API Integration**: OpenAPI specs, playground settings, and authentication
1013+
- **SEO & Analytics**: Search engine optimization and tracking integrations
1014+
- **User Experience**: Banners, contextual menus, and footer links
1015+
- **Internationalization**: Multi-language and versioning support
1016+
7821017
## Validation
7831018

7841019
It is advised to include the following schema reference at the top of your docs.json file to ensure proper validation while editing:

0 commit comments

Comments
 (0)