Skip to content

Commit 78e1237

Browse files
committed
Use link
1 parent ddae33c commit 78e1237

File tree

5 files changed

+27
-48
lines changed

5 files changed

+27
-48
lines changed

docs/.vitepress/en.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,8 @@ export default defineConfig({
138138
},
139139
],
140140
footer: {
141-
message: `<div class="footer-spacer"></div>
142-
<div class="footer-license">Released under the <a href="https://github.com/openapi-ts/openapi-typescript/blob/main/packages/openapi-typescript/LICENSE">MIT License</a>.</div>
143-
<a class="footer-hosting" href="https://www.netlify.com"><img src="https://www.netlify.com/v3/img/components/netlify-color-bg.svg" alt="Deploys by Netlify" /></a>`,
141+
message:
142+
'Released under the <a href="https://github.com/openapi-ts/openapi-typescript/blob/main/packages/openapi-typescript/LICENSE">MIT License</a>. Powered by <a href="https://netlify.com">Netlify</a>.',
144143
},
145144
},
146145
});

docs/.vitepress/ja.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ export default defineConfig({
6464
sidebarMenuLabel: "メニュー",
6565
returnToTopLabel: "最上部に戻る",
6666
footer: {
67-
message: `<div class="footer-spacer"></div>
68-
<div class="footer-license"><a href="https://github.com/openapi-ts/openapi-typescript/blob/main/packages/openapi-typescript/LICENSE">MITライセンス</a> に基づいて配布されています。</div>
69-
<a class="footer-hosting" href="https://www.netlify.com"><img src="https://www.netlify.com/v3/img/components/netlify-color-bg.svg" alt="Deploys by Netlify" /></a>`,
67+
message:
68+
'<a href="https://github.com/openapi-ts/openapi-typescript/blob/main/packages/openapi-typescript/LICENSE">MITライセンス</a> に基づいて配布されています。',
7069
},
7170
},
7271
});
@@ -112,4 +111,4 @@ export const jaSearch: DefaultTheme.AlgoliaSearchOptions["locales"] = {
112111
},
113112
},
114113
},
115-
};
114+
};

docs/.vitepress/theme/CustomLayout.vue

+20-16
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const { Layout } = DefaultTheme;
3939
</a></template
4040
>
4141

42-
<!-- Silver sponsor logos -->
42+
<!-- Sidebar sponsors -->
4343
<template #sidebar-nav-after>
4444
<div class="sidenav-sponsors">
4545
<h5>Gold Sponsors</h5>
@@ -58,16 +58,9 @@ const { Layout } = DefaultTheme;
5858
</a>
5959
</li>
6060
</ul>
61-
<h5 style="margin-block-start: 4rem">Hosting</h5>
62-
<div class="sidebar-hosting">
63-
<a href="https://www.netlify.com"
64-
><img
65-
width="73"
66-
height="32"
67-
src="https://www.netlify.com/v3/img/components/netlify-color-bg.svg"
68-
alt="Deploys by Netlify"
69-
/></a>
70-
</div>
61+
<p class="sidebar-hosting">
62+
Powered by <a href="https://netlify.com">Netlify</a>
63+
</p>
7164
</div>
7265
</template>
7366
</Layout>
@@ -159,11 +152,22 @@ const { Layout } = DefaultTheme;
159152
}
160153
161154
.sidebar-hosting {
162-
align-items: center;
163-
display: flex;
164-
justify-content: center;
165-
margin-block-start: 1rem;
166-
text-align: center;
155+
color: var(--vp-c-text-3);
156+
font-size: 0.75rem;
157+
font-weight: 500;
158+
letter-spacing: 0.0625em;
159+
margin-block-start: 2rem;
160+
text-transform: uppercase;
161+
162+
a {
163+
color: var(--vp-c-brand-1);
164+
text-decoration: underline;
165+
166+
&:hover,
167+
&:focus-visible {
168+
color: var(--vp-c-brand-2);
169+
}
170+
}
167171
}
168172
</style>
169173

docs/.vitepress/theme/style.css

-22
Original file line numberDiff line numberDiff line change
@@ -235,25 +235,3 @@ code {
235235
.home-sponsor .donate {
236236
display: inline-block;
237237
}
238-
239-
/* Home footer */
240-
.VPFooter .container .message {
241-
--badge-width: 8rem;
242-
243-
align-items: center;
244-
display: grid;
245-
justify-items: center;
246-
gap: 1.5rem;
247-
text-align: center;
248-
249-
@media (width >= 600px) {
250-
grid-template-columns: var(--badge-width) auto var(--badge-width);
251-
gap: 0;
252-
}
253-
}
254-
255-
.footer-hosting {
256-
display: inline-block;
257-
height: 2rem;
258-
width: 8rem;
259-
}

docs/.vitepress/zh.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ export default defineConfig({
5353
},
5454

5555
footer: {
56-
message: `<div class="footer-spacer"></div>
57-
<div class="footer-license">基于 <a href="https://github.com/openapi-ts/openapi-typescript/blob/main/packages/openapi-typescript/LICENSE">MIT</a> 许可发布</div>
58-
<a class="footer-hosting" href="https://www.netlify.com"><img src="https://www.netlify.com/v3/img/components/netlify-color-bg.svg" alt="Deploys by Netlify" /></a>`,
56+
message:
57+
'基于 <a href="https://github.com/openapi-ts/openapi-typescript/blob/main/packages/openapi-typescript/LICENSE">MIT</a> 许可发布',
5958
},
6059
},
6160
});

0 commit comments

Comments
 (0)