-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a31f167
commit 05e339a
Showing
31 changed files
with
1,060 additions
and
365 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules | ||
dist | ||
*.snap | ||
docs/.vitepress/cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules | ||
.DS_Store | ||
dist | ||
dist | ||
docs/.vitepress/cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { defineConfig } from 'vitepress' | ||
import Unfonts from '../../src/vite' | ||
|
||
export default defineConfig({ | ||
base: '/unplugin-fonts/', | ||
// site-level options | ||
title: 'VitePress', | ||
description: 'Just playing around.', | ||
|
||
themeConfig: { | ||
// theme-level options | ||
}, | ||
|
||
vite: { | ||
plugins: [ | ||
Unfonts({ | ||
google: { | ||
families: ['Crimson Pro', 'Open Sans', 'Material+Icons'], | ||
}, | ||
|
||
custom: { | ||
display: 'swap', | ||
families: { | ||
'Dancing Script': './public/assets/fonts/DancingScript*', | ||
}, | ||
}, | ||
|
||
fontsource: { | ||
families: [ | ||
{ | ||
name: 'ABeeZee', | ||
weights: [400], | ||
styles: ['italic'], | ||
}, | ||
{ | ||
name: 'Truculenta', | ||
weights: [400, 700], | ||
subset: 'latin-ext', | ||
}, | ||
], | ||
}, | ||
}), | ||
], | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
:root { | ||
/* --vp-font-family-base: "ABeeZee", sans-serif !important; */ | ||
/* --vp-font-family-base: "Crimson Pro", sans-serif !important; */ | ||
--vp-font-family-base: "Dancing Script", sans-serif !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// @ts-expect-error - not typed in vitepress 60 | ||
import DefaultTheme from 'vitepress/theme-without-fonts' | ||
import './custom.css' | ||
import 'unfonts.css' | ||
|
||
export default DefaultTheme |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
layout: home | ||
|
||
hero: | ||
name: VitePress | ||
text: Just playing around. | ||
tagline: My great project tagline | ||
actions: | ||
- theme: brand | ||
text: Markdown Examples | ||
link: /markdown-examples | ||
- theme: alt | ||
text: API Examples | ||
link: /api-examples | ||
|
||
features: | ||
- title: Feature A | ||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit | ||
- title: Feature B | ||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit | ||
- title: Feature C | ||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "docs", | ||
"private": true, | ||
"scripts": { | ||
"dev": "vitepress dev", | ||
"start": "vitepress dev", | ||
"build": "vitepress build", | ||
"preview": "vitepress preview" | ||
}, | ||
"devDependencies": { | ||
"unplugin-fonts": "workspace:*", | ||
"vitepress": "^1.0.0-alpha.60" | ||
} | ||
|
||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,5 +15,5 @@ export default defineNuxtConfig({ | |
'Dancing Script': './assets/fonts/DancingScript*', | ||
}, | ||
}, | ||
} | ||
}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
// https://nuxt.com/docs/guide/concepts/typescript | ||
"extends": "./.nuxt/tsconfig.json" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.