diff --git a/docs/api-site-config.md b/docs/api-site-config.md index f6276a7316..859e08ae74 100644 --- a/docs/api-site-config.md +++ b/docs/api-site-config.md @@ -337,6 +337,20 @@ Boolean flag to indicate whether `HTML` files in `/pages` should be wrapped with Users can also add their own custom fields if they wish to provide some data across different files. +## Adding Google Fonts + + + +Google Fonts offers faster load times by caching fonts without forcing users to sacrifice privacy. For more information on Google Fonts, see the [Google Fonts](https://fonts.google.com/) documentation. + +To add Google Fonts to your Docusaurus deployment, add the font path to the `siteConfig.js` under `stylesheets`: + +```js +stylesheets: [ + 'https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700', +], +``` + ## Example siteConfig.js with many available fields ```js