Skip to content

Commit

Permalink
Merge pull request #9 from IgniteUI/dTsvetkov/utilize-additional-plug…
Browse files Browse the repository at this point in the history
…in-options

Utilize additional plugin options
  • Loading branch information
dkamburov authored Oct 31, 2023
2 parents 60165c9 + 39afbf8 commit c8a6cc8
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
},
"peerDependecies": {
"typedoc": "^0.23.21",
"typedoc-plugin-localization": "^3.0.1"
"typedoc-plugin-localization": "^3.0.2"
}
}
4 changes: 4 additions & 0 deletions src/partials/footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ import { footerEn } from './infrafoot';
import { footerJp } from './infrafoot.ja';

export function footer(context: DefaultThemeRenderContext, props: PageEvent<Reflection>) {
if (!context.options.getValue('name').includes('Ignite UI')) {
return;
}

return (
<footer>
<div class="container">
Expand Down
18 changes: 13 additions & 5 deletions src/partials/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,16 @@ import { navJp } from './infranav.ja';
const plugin = require('typedoc-plugin-localization');

export const header = (context: DefaultThemeRenderContext, props: PageEvent<Reflection>) => {
if (!context.options.getValue('name').includes('Ignite UI')) {
return;
}

const local = context.options.getValue('localize');
const useVersioning = context.options.getValue('versioning');
const product = context.options.getValue('product');
const link = local === 'jp' ?
'https://jp.infragistics.com/products/ignite-ui-angular' :
'https://www.infragistics.com/products/ignite-ui-angular';
`https://jp.infragistics.com/products/${product}` :
`https://www.infragistics.com/products/${product}`;

return (
<header class="tsd-header">
Expand All @@ -16,9 +22,11 @@ export const header = (context: DefaultThemeRenderContext, props: PageEvent<Refl
<div class="tsd-header-group">
<h1 class="tsd-header-logo">
<a href={link}>{props.project.name}</a>
<span class="version">
<select id="versions"></select>
</span>
{useVersioning &&
<span class="version">
<select id="versions"></select>
</span>
}
</h1>
<div class="tsd-nav-toggle">
<input id="tsd-toggle-cbx" type="checkbox" />
Expand Down
2 changes: 1 addition & 1 deletion src/partials/infrafoot.ja.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export function footerJp(context: DefaultThemeRenderContext, props: PageEvent<Re
</div>
</footer><footer id="footer">
<div id="footer-wrap" class="be-wrap clearfix">
<div id="copyright">© Copyright 2022 INFRAGISTICS. All Rights Reserved</div>
<div id="copyright">© Copyright 2023 INFRAGISTICS. All Rights Reserved</div>
</div>
</footer></>
)
Expand Down
2 changes: 1 addition & 1 deletion src/partials/infrafoot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function footerEn(context: DefaultThemeRenderContext, props: PageEvent<Re
</footer>
<footer id="footer">
<div id="footer-wrap" class="be-wrap clearfix">
<div id="copyright">© Copyright 2022 INFRAGISTICS. All Rights Reserved</div>
<div id="copyright">© Copyright 2023 INFRAGISTICS. All Rights Reserved</div>
</div>
</footer></>
)
Expand Down

0 comments on commit c8a6cc8

Please sign in to comment.