Skip to content

Commit

Permalink
docs: directly use svg in features section (#2161)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd authored Mar 29, 2023
1 parent 9e3cf0f commit 2791bf0
Show file tree
Hide file tree
Showing 6 changed files with 1,087 additions and 1,034 deletions.
9 changes: 0 additions & 9 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
nav: nav(),

Expand Down
12 changes: 3 additions & 9 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,12 @@ features:
- icon: 📝
title: Focus on Your Content
details: Effortlessly create beautiful documentation sites with just markdown.
- icon:
src: vite.svg
width: 10
height: 10
- 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>
title: Enjoy the Vite DX
details: Instant server start, lightning fast hot updates, and leverage Vite ecosystem plugins.
- icon:
src: vue.svg
width: 10
height: 10
- 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>
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: 🚀
title: Ship Fast Sites
details: Fast initial load with static HTML, fast post-load navigation with client-side routing.
Expand Down
15 changes: 0 additions & 15 deletions docs/public/vite.svg

This file was deleted.

4 changes: 0 additions & 4 deletions docs/public/vue.svg

This file was deleted.

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

0 comments on commit 2791bf0

Please sign in to comment.