Skip to content

Commit a9e08e8

Browse files
authored
chore: docs restyle for new landing page (#3210)
docs restyle for new landing page
1 parent 6f8e093 commit a9e08e8

15 files changed

Lines changed: 5545 additions & 1152 deletions

docs/.vitepress/config.ts

Lines changed: 29 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,28 @@ export default withMermaid({
2323
lastUpdated: true,
2424
cleanUrls: true,
2525
ignoreDeadLinks: true,
26+
appearance: false,
2627
base: base,
2728
sitemap: {
2829
hostname: "https://ev.xyz",
2930
},
3031

3132
head: [
32-
["link", { rel: "icon", href: "/img/favicon.svg", type: "image/svg+xml" }],
33-
["link", { rel: "icon", href: "/img/favicon.png", type: "image/png" }],
33+
["link", { rel: "icon", href: "/favicon/favicon.ico", type: "image/x-icon" }],
3434
[
3535
"link",
36-
{ rel: "shortcut icon", href: "/img/favicon.ico", type: "image/x-icon" },
36+
{ rel: "icon", href: "/favicon/favicon-32x32.png", type: "image/png", sizes: "32x32" },
3737
],
38-
["meta", { name: "msapplication-TileColor", content: "#fff" }],
39-
["meta", { name: "theme-color", content: "#fff" }],
38+
[
39+
"link",
40+
{ rel: "icon", href: "/favicon/favicon-16x16.png", type: "image/png", sizes: "16x16" },
41+
],
42+
[
43+
"link",
44+
{ rel: "apple-touch-icon", href: "/favicon/apple-touch-icon.png", sizes: "180x180" },
45+
],
46+
["meta", { name: "msapplication-TileColor", content: "#F3F4F4" }],
47+
["meta", { name: "theme-color", content: "#F3F4F4" }],
4048
[
4149
"meta",
4250
{
@@ -54,10 +62,10 @@ export default withMermaid({
5462
],
5563
["meta", { httpEquiv: "Content-Language", content: "en" }],
5664
["meta", { name: "twitter:card", content: "summary_large_image" }],
57-
["meta", { name: "twitter:image", content: "/img/Evolve-cover.jpg" }],
65+
["meta", { name: "twitter:image", content: "/og-image.png" }],
5866
["meta", { name: "twitter:site:domain", content: "ev.xyz" }],
5967
["meta", { name: "twitter:url", content: "https://ev.xyz" }],
60-
["meta", { name: "og:image", content: "/img/Evolve-cover.jpg" }],
68+
["meta", { name: "og:image", content: "/og-image.png" }],
6169
["meta", { name: "apple-mobile-web-app-title", content: "Evolve" }],
6270
[
6371
"script",
@@ -69,42 +77,18 @@ export default withMermaid({
6977
],
7078
],
7179

72-
// // Build optimizations
73-
// vite: {
74-
// build: {
75-
// rollupOptions: {
76-
// output: {
77-
// manualChunks: (id) => {
78-
// // Extract vendor chunks
79-
// if (id.includes('node_modules')) {
80-
// if (id.includes('vue') || id.includes('@vue')) {
81-
// return 'vue';
82-
// }
83-
// if (id.includes('mermaid')) {
84-
// return 'mermaid';
85-
// }
86-
// return 'vendor';
87-
// }
88-
// },
89-
// },
90-
// },
91-
// // Enable minification
92-
// minify: 'terser',
93-
// terserOptions: {
94-
// compress: {
95-
// drop_console: true,
96-
// drop_debugger: true,
97-
// },
98-
// },
99-
// // Optimize chunk size
100-
// chunkSizeWarningLimit: 1000,
101-
// },
102-
// // Optimize dependencies
103-
// optimizeDeps: {
104-
// include: ['vue', '@vue/runtime-core', '@vue/runtime-dom', '@vue/shared'],
105-
// exclude: ['vitepress'],
106-
// },
107-
// },
80+
vite: {
81+
build: {
82+
minify: "terser",
83+
terserOptions: {
84+
compress: {
85+
drop_console: true,
86+
drop_debugger: true,
87+
},
88+
},
89+
chunkSizeWarningLimit: 1500,
90+
},
91+
},
10892

10993
themeConfig: {
11094
// https://vitepress.dev/reference/default-theme-config
@@ -136,8 +120,8 @@ export default withMermaid({
136120

137121
logo: {
138122
alt: "Evolve Logo",
139-
light: "/img/logo.png",
140-
dark: "/img/logo.png",
123+
light: "/img/evolve-logo-dark.svg",
124+
dark: "/img/evolve-logo-dark.svg",
141125
},
142126

143127
socialLinks: [

0 commit comments

Comments
 (0)