File tree 7 files changed +52
-9
lines changed
7 files changed +52
-9
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import zh from "./zh";
4
4
import ja from "./ja" ;
5
5
import shared from "./shared" ;
6
6
import { transformerTwoslash } from "@shikijs/vitepress-twoslash" ;
7
- import { ModuleKind , ModuleResolutionKind } from "typescript" ;
7
+ import { ModuleResolutionKind } from "typescript" ;
8
8
9
9
// https://vitepress.dev/reference/site-config
10
10
export default defineConfig ( {
Original file line number Diff line number Diff line change @@ -138,8 +138,9 @@ export default defineConfig({
138
138
} ,
139
139
] ,
140
140
footer : {
141
- message :
142
- 'Released under the <a href="https://github.com/openapi-ts/openapi-typescript/blob/main/packages/openapi-typescript/LICENSE">MIT License</a>.' ,
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>` ,
143
144
} ,
144
145
} ,
145
146
} ) ;
Original file line number Diff line number Diff line change @@ -64,8 +64,9 @@ export default defineConfig({
64
64
sidebarMenuLabel : "メニュー" ,
65
65
returnToTopLabel : "最上部に戻る" ,
66
66
footer : {
67
- message :
68
- '<a href="https://github.com/openapi-ts/openapi-typescript/blob/main/packages/openapi-typescript/LICENSE">MITライセンス</a> に基づいて配布されています。' ,
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>` ,
69
70
} ,
70
71
} ,
71
72
} ) ;
@@ -111,4 +112,4 @@ export const jaSearch: DefaultTheme.AlgoliaSearchOptions["locales"] = {
111
112
} ,
112
113
} ,
113
114
} ,
114
- } ;
115
+ } ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ const shared: UserConfig = {
26
26
themeConfig : {
27
27
siteTitle : false ,
28
28
logo : "/assets/openapi-ts.svg" ,
29
- outline : ' deep' ,
29
+ outline : " deep" ,
30
30
search : {
31
31
provider : "algolia" ,
32
32
options : {
Original file line number Diff line number Diff line change @@ -58,6 +58,16 @@ const { Layout } = DefaultTheme;
58
58
</a >
59
59
</li >
60
60
</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
71
</div >
62
72
</template >
63
73
</Layout >
@@ -147,6 +157,14 @@ const { Layout } = DefaultTheme;
147
157
height : 3rem ;
148
158
width : auto ;
149
159
}
160
+
161
+ .sidebar-hosting {
162
+ align-items : center ;
163
+ display : flex ;
164
+ justify-content : center ;
165
+ margin-block-start : 1rem ;
166
+ text-align : center ;
167
+ }
150
168
</style >
151
169
152
170
<style >
Original file line number Diff line number Diff line change @@ -235,3 +235,25 @@ code {
235
235
.home-sponsor .donate {
236
236
display : inline-block;
237
237
}
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
+ }
Original file line number Diff line number Diff line change @@ -53,8 +53,9 @@ export default defineConfig({
53
53
} ,
54
54
55
55
footer : {
56
- message :
57
- '基于 <a href="https://github.com/openapi-ts/openapi-typescript/blob/main/packages/openapi-typescript/LICENSE">MIT</a> 许可发布' ,
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>` ,
58
59
} ,
59
60
} ,
60
61
} ) ;
You can’t perform that action at this time.
0 commit comments