File tree 4 files changed +24
-12
lines changed
4 files changed +24
-12
lines changed Original file line number Diff line number Diff line change 4
4
5
5
- Added ` gitRevision:short ` placeholder option to ` --sourceLinkTemplate ` option, #2529 .
6
6
Links generated by TypeDoc will now default to using the non-short git revision.
7
+ - Moved "Generated by TypeDoc" footer into a ` <footer> ` tag, added ` footer.begin ` and ` footer.end `
8
+ render hooks for use by custom plugins, #2532 .
7
9
8
10
### Bug Fixes
9
11
Original file line number Diff line number Diff line change @@ -81,6 +81,16 @@ export interface RendererHooks {
81
81
* Applied immediately after calling `context.pageSidebar`.
82
82
*/
83
83
"pageSidebar.end" : [ DefaultThemeRenderContext ] ;
84
+
85
+ /**
86
+ * Applied immediately before the "Generated by TypeDoc" link in the footer.
87
+ */
88
+ "footer.begin" : [ DefaultThemeRenderContext ] ;
89
+
90
+ /**
91
+ * Applied immediately after the "Generated by TypeDoc" link in the footer.
92
+ */
93
+ "footer.end" : [ DefaultThemeRenderContext ] ;
84
94
}
85
95
86
96
/**
Original file line number Diff line number Diff line change @@ -3,15 +3,18 @@ import type { DefaultThemeRenderContext } from "../DefaultThemeRenderContext";
3
3
4
4
export function footer ( context : DefaultThemeRenderContext ) {
5
5
const hideGenerator = context . options . getValue ( "hideGenerator" ) ;
6
- if ( ! hideGenerator )
7
- return (
8
- < div class = "tsd-generator" >
9
- < p >
6
+ return (
7
+ < footer >
8
+ { context . hook ( "footer.begin" ) }
9
+ { hideGenerator || (
10
+ < p class = "tsd-generator" >
10
11
{ "Generated using " }
11
12
< a href = "https://typedoc.org/" target = "_blank" >
12
13
TypeDoc
13
14
</ a >
14
15
</ p >
15
- </ div >
16
- ) ;
16
+ ) }
17
+ { context . hook ( "footer.end" ) }
18
+ </ footer >
19
+ ) ;
17
20
}
Original file line number Diff line number Diff line change @@ -327,17 +327,14 @@ dd {
327
327
}
328
328
329
329
/* Footer */
330
- . tsd-generator {
330
+ footer {
331
331
border-top : 1px solid var (--color-accent );
332
332
padding-top : 1rem ;
333
333
padding-bottom : 1rem ;
334
334
max-height : 3.5rem ;
335
335
}
336
-
337
- .tsd-generator > p {
338
- margin-top : 0 ;
339
- margin-bottom : 0 ;
340
- padding : 0 1rem ;
336
+ .tsd-generator {
337
+ margin : 0 1em ;
341
338
}
342
339
343
340
.container-main {
You can’t perform that action at this time.
0 commit comments