You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/project/development.mdx
+20-3Lines changed: 20 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,12 +47,11 @@ vite: {
47
47
},
48
48
```
49
49
50
-
51
50
## Adding Images to the Docs
52
51
53
52
We use the `<Picture>` utility to add images to our documentation. This utility supports a web compression feature that will automatically convert images to formats like webp and avif upon rendering.
54
53
55
-
To use the Picture utility,
54
+
To use the `Picture` utility:
56
55
57
56
1. First import the utility at the top of the `.mdx` file like this
58
57
```markdown
@@ -81,9 +80,27 @@ In the config file code snippet above, you can see that Tailwind CSS is included
81
80
82
81
Tailwind is also a required dependency for Starlight, so it is already set up and ready to use.
83
82
83
+
We have also vendored a Google Font which is then applied in the global stylesheet.
84
+
The global stylesheet is located at `src/styles/global.css`. The configuration to add
85
+
these styles globally is found in the `astro.config.mjs` file.
86
+
87
+
```js
88
+
integrations: [
89
+
starlight({
90
+
customCss: [
91
+
'./src/styles/global.css',
92
+
'./src/fonts/font-face.css',
93
+
],
94
+
```
95
+
84
96
## Fonts
85
97
86
-
The all contributors documentation site uses the Google Font **Poppins** as a base font. For convenience and web page loading speed, we have vendored the font have vendored the font in the assets/fonts directory for quicker loading and rendering times.
98
+
The all contributors documentation site uses the Google Font **Poppins** as a
99
+
base font. For convenience and web page loading speed, we have vendored the font
100
+
have vendored the font in the `assets/fonts` directory for quicker loading and
101
+
rendering times. The font is applied globally to headers in the `global.css` file.
102
+
103
+
If we want to customize other font properties, we can do so in the `global.css` file.
87
104
88
105
<Aside type="note" title="Need Help?">
89
106
If you have questions or want to contribute to the documentation, check out our [GitHub repository](https://github.com/all-contributors/all-contributors).
0 commit comments