Skip to content

Commit e1553e4

Browse files
committed
docs: fix build
1 parent a417149 commit e1553e4

File tree

10 files changed

+19
-16
lines changed

10 files changed

+19
-16
lines changed

docs/.vitepress/plugins/utility.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,17 @@ export default (utility: Utility) => {
2121
]
2222

2323
if (utility.frontmatter?.see) {
24-
code.push(
25-
`See also: ${utility.frontmatter.see
26-
.map(
27-
(x) =>
28-
`[\`${x.split('/').pop()}\`](/${x.split('/').map(kebabCase).join('/')}.html)`,
29-
)
30-
.join(' ')}`,
31-
)
24+
const seeAlso = `See also: ${utility.frontmatter.see
25+
.map((x) => {
26+
const parts = x.split('/')
27+
const lastPart = parts.at(-1)
28+
return `[\`${lastPart}\`](/${parts.map(kebabCase).join('/')}${parts.length === 1 ? '/' : '.html'})`
29+
})
30+
.join(' ')}`
31+
32+
console.log(seeAlso)
33+
34+
code.push(seeAlso)
3235
}
3336

3437
code.push(`${utility.description}

docs/overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
This documentation has several parts:
66

7-
- [Hooks API](./hooks.md) - The API for the available hooks
8-
- [Utilities API](./utils.md) - The API for the available utility methods
9-
- [Predicates API](./predicates.md) - The API for the available predicates
7+
- [Hooks API](/hooks/) - The API for the available hooks
8+
- [Utilities API](/utils/) - The API for the available utility methods
9+
- [Predicates API](/predicates/) - The API for the available predicates

src/hooks/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ export * from './transform-query/transform-query.hook.js'
2626
export * from './transform-result/transform-result.hook.js'
2727
export * from './traverse/traverse.hook.js'
2828
export * from './unless/unless.hook.js'
29+
export * from './skippable/skippable.js'

src/utils/skippable/skippable.md renamed to src/hooks/skippable/skippable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: skippable
3-
category: utils
3+
category: hooks
44
see: ["predicates", "utils/addSkip"]
55
---
66

File renamed without changes.
File renamed without changes.

src/predicates/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ export * from './is-multi/is-multi.js'
44
export * from './is-paginated/is-paginated.js'
55
export * from './is-provider/is-provider.js'
66
export * from './not/not.js'
7+
export * from './should-skip/should-skip.js'
78
export * from './some/some.js'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
title: isPaginated
33
category: predicates
4-
see: ["utils/getPaginated"]
4+
see: ["utils/getPaginate"]
55
---
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
2-
title: contextToJSON
2+
title: contextToJson
33
category: utils
44
---

src/utils/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@ export * from './get-result-is-array/get-result-is-array.js'
99
export * from './iterate-find/iterate-find.js'
1010
export * from './mutate-data/mutate-data.js'
1111
export * from './mutate-result/mutate-result.js'
12-
export * from '../predicates/should-skip/should-skip.js'
1312
export * from './skip-result/skip-result.js'
14-
export * from './skippable/skippable.js'
1513
export * from './transform-params/transform-params.js'

0 commit comments

Comments
 (0)