mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 10:17:55 +02:00
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
This commit is contained in:
parent
a690d34af0
commit
5b3859d00b
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
||||
<!-- TODO: Shift this into a dedicated styling section in future -->
|
||||
|
||||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue