docs: directly use svg in features section (#2161)

pull/2162/head
Divyansh Singh 2 years ago committed by GitHub
parent 9e3cf0fa7d
commit 2791bf0887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,15 +25,6 @@ export default defineConfig({
] ]
], ],
transformHead({ page }) {
if (page === 'index.md') {
return [
['link', { rel: 'preload', as: 'image', href: '/vue.svg' }],
['link', { rel: 'preload', as: 'image', href: '/vite.svg' }]
]
}
},
themeConfig: { themeConfig: {
nav: nav(), nav: nav(),

@ -20,18 +20,12 @@ features:
- icon: 📝 - icon: 📝
title: Focus on Your Content title: Focus on Your Content
details: Effortlessly create beautiful documentation sites with just markdown. details: Effortlessly create beautiful documentation sites with just markdown.
- icon: - icon: <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><g fill="none"><path fill="url(#a)" d="m29.884 6.146-13.142 23.5a.714.714 0 0 1-1.244.005L2.096 6.148a.714.714 0 0 1 .746-1.057l13.156 2.352a.714.714 0 0 0 .253 0l12.881-2.348a.714.714 0 0 1 .752 1.05z"/><path fill="url(#b)" d="M22.264 2.007 12.54 3.912a.357.357 0 0 0-.288.33l-.598 10.104a.357.357 0 0 0 .437.369l2.707-.625a.357.357 0 0 1 .43.42l-.804 3.939a.357.357 0 0 0 .454.413l1.672-.508a.357.357 0 0 1 .454.414l-1.279 6.187c-.08.387.435.598.65.267l.143-.222 7.925-15.815a.357.357 0 0 0-.387-.51l-2.787.537a.357.357 0 0 1-.41-.45l1.818-6.306a.357.357 0 0 0-.412-.45z"/><defs><linearGradient id="a" x1="6" x2="235" y1="33" y2="344" gradientTransform="translate(1.34 1.894) scale(.07142)" gradientUnits="userSpaceOnUse"><stop stop-color="#41D1FF"/><stop offset="1" stop-color="#BD34FE"/></linearGradient><linearGradient id="b" x1="194.651" x2="236.076" y1="8.818" y2="292.989" gradientTransform="translate(1.34 1.894) scale(.07142)" gradientUnits="userSpaceOnUse"><stop stop-color="#FFEA83"/><stop offset=".083" stop-color="#FFDD35"/><stop offset="1" stop-color="#FFA800"/></linearGradient></defs></g></svg>
src: vite.svg
width: 10
height: 10
title: Enjoy the Vite DX title: Enjoy the Vite DX
details: Instant server start, lightning fast hot updates, and leverage Vite ecosystem plugins. details: Instant server start, lightning fast hot updates, and leverage Vite ecosystem plugins.
- icon: - icon: <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32"><path fill="#41b883" d="M24.4 3.925H30l-14 24.15L2 3.925h10.71l3.29 5.6 3.22-5.6Z"/><path fill="#41b883" d="m2 3.925 14 24.15 14-24.15h-5.6L16 18.415 7.53 3.925Z"/><path fill="#35495e" d="M7.53 3.925 16 18.485l8.4-14.56h-5.18L16 9.525l-3.29-5.6Z"/></svg>
src: vue.svg
width: 10
height: 10
title: Customize with Vue title: Customize with Vue
details: Use Vue syntax and components directly in markdown, or build custom themes with Vue components. details: Use Vue syntax and components directly in markdown, or build custom themes with Vue.
- icon: 🚀 - icon: 🚀
title: Ship Fast Sites title: Ship Fast Sites
details: Fast initial load with static HTML, fast post-load navigation with client-side routing. details: Fast initial load with static HTML, fast post-load navigation with client-side routing.

@ -1,15 +0,0 @@
<svg width="410" height="404" viewBox="0 0 410 404" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M399.641 59.5246L215.643 388.545C211.844 395.338 202.084 395.378 198.228 388.618L10.5817 59.5563C6.38087 52.1896 12.6802 43.2665 21.0281 44.7586L205.223 77.6824C206.398 77.8924 207.601 77.8904 208.776 77.6763L389.119 44.8058C397.439 43.2894 403.768 52.1434 399.641 59.5246Z" fill="url(#paint0_linear)"/>
<path d="M292.965 1.5744L156.801 28.2552C154.563 28.6937 152.906 30.5903 152.771 32.8664L144.395 174.33C144.198 177.662 147.258 180.248 150.51 179.498L188.42 170.749C191.967 169.931 195.172 173.055 194.443 176.622L183.18 231.775C182.422 235.487 185.907 238.661 189.532 237.56L212.947 230.446C216.577 229.344 220.065 232.527 219.297 236.242L201.398 322.875C200.278 328.294 207.486 331.249 210.492 326.603L212.5 323.5L323.454 102.072C325.312 98.3645 322.108 94.137 318.036 94.9228L279.014 102.454C275.347 103.161 272.227 99.746 273.262 96.1583L298.731 7.86689C299.767 4.27314 296.636 0.855181 292.965 1.5744Z" fill="url(#paint1_linear)"/>
<defs>
<linearGradient id="paint0_linear" x1="6.00017" y1="32.9999" x2="235" y2="344" gradientUnits="userSpaceOnUse">
<stop stop-color="#41D1FF"/>
<stop offset="1" stop-color="#BD34FE"/>
</linearGradient>
<linearGradient id="paint1_linear" x1="194.651" y1="8.81818" x2="236.076" y2="292.989" gradientUnits="userSpaceOnUse">
<stop stop-color="#FFEA83"/>
<stop offset="0.0833333" stop-color="#FFDD35"/>
<stop offset="1" stop-color="#FFA800"/>
</linearGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

@ -1,4 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 196.32 170.02">
<path fill="#42b883" d="M120.83 0L98.16 39.26 75.49 0H0l98.16 170.02L196.32 0h-75.49z"/>
<path fill="#35495e" d="M120.83 0L98.16 39.26 75.49 0H39.26l58.9 102.01L157.06 0h-36.23z"/>
</svg>

Before

Width:  |  Height:  |  Size: 261 B

@ -3,7 +3,7 @@
"version": "1.0.0-alpha.63", "version": "1.0.0-alpha.63",
"description": "Vite & Vue powered static site generator", "description": "Vite & Vue powered static site generator",
"type": "module", "type": "module",
"packageManager": "pnpm@7.30.3", "packageManager": "pnpm@8.0.0",
"main": "dist/node/index.js", "main": "dist/node/index.js",
"types": "types/index.d.ts", "types": "types/index.d.ts",
"exports": { "exports": {
@ -117,7 +117,7 @@
"@types/debug": "^4.1.7", "@types/debug": "^4.1.7",
"@types/escape-html": "^1.0.2", "@types/escape-html": "^1.0.2",
"@types/fs-extra": "^11.0.1", "@types/fs-extra": "^11.0.1",
"@types/koa": "^2.13.5", "@types/koa": "^2.13.6",
"@types/koa-static": "^4.0.2", "@types/koa-static": "^4.0.2",
"@types/markdown-it": "^12.2.3", "@types/markdown-it": "^12.2.3",
"@types/markdown-it-attrs": "^4.1.0", "@types/markdown-it-attrs": "^4.1.0",
@ -125,7 +125,7 @@
"@types/markdown-it-emoji": "^2.0.2", "@types/markdown-it-emoji": "^2.0.2",
"@types/micromatch": "^4.0.2", "@types/micromatch": "^4.0.2",
"@types/minimist": "^1.2.2", "@types/minimist": "^1.2.2",
"@types/node": "^18.15.9", "@types/node": "^18.15.11",
"@types/prompts": "^2.4.3", "@types/prompts": "^2.4.3",
"chokidar": "^3.5.3", "chokidar": "^3.5.3",
"compression": "^1.7.4", "compression": "^1.7.4",
@ -133,7 +133,7 @@
"cross-spawn": "^7.0.3", "cross-spawn": "^7.0.3",
"debug": "^4.3.4", "debug": "^4.3.4",
"enquirer": "^2.3.6", "enquirer": "^2.3.6",
"esbuild": "^0.17.13", "esbuild": "^0.17.14",
"escape-html": "^1.0.3", "escape-html": "^1.0.3",
"execa": "^7.1.1", "execa": "^7.1.1",
"fast-glob": "^3.2.12", "fast-glob": "^3.2.12",
@ -150,7 +150,7 @@
"markdown-it-emoji": "^2.0.2", "markdown-it-emoji": "^2.0.2",
"micromatch": "^4.0.5", "micromatch": "^4.0.5",
"minimist": "^1.2.8", "minimist": "^1.2.8",
"nanoid": "^4.0.1", "nanoid": "^4.0.2",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"ora": "^6.3.0", "ora": "^6.3.0",
"path-to-regexp": "^6.2.1", "path-to-regexp": "^6.2.1",
@ -171,7 +171,7 @@
"sirv": "^2.0.2", "sirv": "^2.0.2",
"supports-color": "^9.3.1", "supports-color": "^9.3.1",
"typescript": "^5.0.2", "typescript": "^5.0.2",
"vitest": "^0.29.7", "vitest": "^0.29.8",
"vue-tsc": "^1.3.2", "vue-tsc": "^1.3.2",
"wait-on": "^7.0.1" "wait-on": "^7.0.1"
}, },

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save