From 5b3859d00b197827a900d7e00a64b882a17ce8ca Mon Sep 17 00:00:00 2001 From: Eric Ponvelle Date: Sun, 20 Oct 2019 15:22:35 -0400 Subject: [PATCH] docs(v1): document how to include Google Fonts (#1852) * Update api-site-config.md Added a piece of text from the set-up guide to enable Google Fonts. * Update api-site-config.md * Update api-site-config.md --- docs/api-site-config.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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