Skip to content

Commit fae96d4

Browse files
committed
docs: move font to Inter
1 parent 2327820 commit fae96d4

File tree

6 files changed

+51
-62
lines changed

6 files changed

+51
-62
lines changed

docs/content/docs/1.getting-started/2.installation.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@ title: Installation
33
description: Add NuxtHub to your Nuxt project.
44
---
55

6-
## Start with our template
6+
## Quickstart
77

88
The easiest way to get started with NuxtHub is to use our template. It includes all the necessary configuration and resources to get you started with NuxtHub.
99

10-
You can click on `Use this template` on https://github.com/nuxt-hub/starter or use the following command to create a new project:
10+
Click on `Use this template` on [github.com/nuxt-hub/starter](https://github.com/nuxt-hub/starter) to create a new repository based on the template.
11+
12+
You can also run this command to create a new project locally:
1113

1214
```bash [Terminal]
13-
npx nuxi@latest init -t hub my-nuxthub-app
15+
npx nuxthub init my-app
1416
```
1517

16-
## Add NuxtHub to a project
18+
## Add to a Nuxt project
1719

1820
1. Install the NuxtHub package to your project:
1921

@@ -89,7 +91,7 @@ export default defineNuxtConfig({
8991
::field-group
9092
::field{name="remote" type="boolean"}
9193
Default to `false` - Allows working with remote storage (database, kv, blob) from your deployed project. :br
92-
You can set `NUXT_HUB_REMOTE=true` in your `.env` file to enable the remote option.:br
94+
You can set `NUXT_HUB_REMOTE=true` in your `.env` file to enable the remote option. :br
9395
Or use the `--remote` flag when running your Nuxt project locally (e.g. `nuxt dev --remote`).
9496
::
9597
::

docs/nuxt.config.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
export default defineNuxtConfig({
33
extends: ['@nuxt/ui-pro'],
44
modules: [
5+
'@nuxt/fonts',
56
'@nuxt/content',
67
'@nuxt/ui',
78
'@nuxthq/studio',
8-
'@nuxtjs/fontaine',
9-
'@nuxtjs/google-fonts',
109
'nuxt-og-image',
1110
'nuxt-cloudflare-analytics'
1211
],
@@ -21,17 +20,6 @@ export default defineNuxtConfig({
2120
ui: {
2221
icons: ['heroicons', 'ph', 'simple-icons']
2322
},
24-
// Fonts
25-
fontMetrics: {
26-
fonts: ['DM Sans']
27-
},
28-
googleFonts: {
29-
display: 'swap',
30-
download: true,
31-
families: {
32-
'DM+Sans': [400, 500, 600, 700]
33-
}
34-
},
3523
routeRules: {
3624
'/api/search.json': { prerender: true },
3725
},

docs/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
"@iconify-json/ph": "^1.1.11",
1414
"@iconify-json/simple-icons": "^1.1.92",
1515
"@nuxt/content": "^2.12.0",
16+
"@nuxt/fonts": "^0.0.1",
1617
"@nuxt/ui-pro": "^1.0.1",
17-
"@nuxtjs/fontaine": "^0.4.1",
18-
"@nuxtjs/google-fonts": "^3.1.3",
1918
"nuxt": "^3.10.3",
2019
"nuxt-cloudflare-analytics": "^1.0.8",
2120
"nuxt-og-image": "^2.2.4"

docs/pages/[...slug].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const links = computed(() => [toc?.bottom?.edit && {
4747
<UPage>
4848
<UPageHeader :title="page.title" :description="page.description" :links="page.links" :headline="headline" />
4949

50-
<UPageBody prose>
50+
<UPageBody prose class="dark:text-gray-300">
5151
<ContentRenderer v-if="page.body" :value="page" />
5252

5353
<hr v-if="surround?.length">

docs/tailwind.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default <Partial<Config>>{
3333
}
3434
},
3535
fontFamily: {
36-
sans: ['DM Sans', 'DM Sans fallback', ...defaultTheme.fontFamily.sans]
36+
sans: ['Inter var experimental', 'Inter var', 'Inter', ...defaultTheme.fontFamily.sans]
3737
}
3838
}
3939
}

pnpm-lock.yaml

Lines changed: 40 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)