Skip to content

Commit 3e337fa

Browse files
author
Felix Hennig
committed
formatting
1 parent 3560fcb commit 3e337fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/helpers/versioned.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// A helper to generate the correct link stub from the current page.
22
// if we're already in the same component, generate a link that links to the same version too.
33
// targetComponentName: string - name of the component where to link to
4-
// pageInfo: Object - the 'page' template object: https://docs.antora.org/antora-ui-default/templates/#template-variables
4+
// pageInfo: Object - the 'page' template object: https://docs.antora.org/antora-ui-default/templates
55
// path: string - the rest of the link path, inside the target component
66
module.exports = (targetComponentName, pageInfo, path) => {
77
// if either the current page is not part of the component or of a different component
8-
// or of the same component with the latest version, link to the component and to 'stable',
8+
// or of the same component with the latest version, link to the component and to 'stable',
99
// the latest version
1010
if ((pageInfo.component === undefined) ||
1111
(targetComponentName !== pageInfo.component.name) ||

0 commit comments

Comments
 (0)