docs.json
.
Google Fonts
Mintlify automatically loads Google Fonts when you specify a font family name in yourdocs.json
.
docs.json
Local fonts
To use local fonts, place your font files in your project directory and reference them in yourdocs.json
configuration.
Setting up local fonts
1
Add font files to your project
For example, create a
fonts
directory and add your font files:2
Configure fonts in docs.json
Reference your local fonts using relative paths from your project root:
docs.json
Local fonts for headings and body
Configure separate local fonts for headings and body text in yourdocs.json
:
docs.json
Externally hosted fonts
Use externally hosted fonts by referencing a font source URL in yourdocs.json
:
docs.json
Font configuration reference
Font configuration for your documentation.