File tree Expand file tree Collapse file tree 10 files changed +19
-16
lines changed Expand file tree Collapse file tree 10 files changed +19
-16
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 44
55This 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
Original file line number Diff line number Diff line change @@ -26,3 +26,4 @@ export * from './transform-query/transform-query.hook.js'
2626export * from './transform-result/transform-result.hook.js'
2727export * from './traverse/traverse.hook.js'
2828export * from './unless/unless.hook.js'
29+ export * from './skippable/skippable.js'
Original file line number Diff line number Diff line change 11---
22title : skippable
3- category : utils
3+ category : hooks
44see : ["predicates", "utils/addSkip"]
55---
66
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ export * from './is-multi/is-multi.js'
44export * from './is-paginated/is-paginated.js'
55export * from './is-provider/is-provider.js'
66export * from './not/not.js'
7+ export * from './should-skip/should-skip.js'
78export * from './some/some.js'
Original file line number Diff line number Diff line change 11---
22title : isPaginated
33category : predicates
4- see : ["utils/getPaginated "]
4+ see : ["utils/getPaginate "]
55---
Original file line number Diff line number Diff line change 11---
2- title : contextToJSON
2+ title : contextToJson
33category : utils
44---
Original file line number Diff line number Diff line change @@ -9,7 +9,5 @@ export * from './get-result-is-array/get-result-is-array.js'
99export * from './iterate-find/iterate-find.js'
1010export * from './mutate-data/mutate-data.js'
1111export * from './mutate-result/mutate-result.js'
12- export * from '../predicates/should-skip/should-skip.js'
1312export * from './skip-result/skip-result.js'
14- export * from './skippable/skippable.js'
1513export * from './transform-params/transform-params.js'
You can’t perform that action at this time.
0 commit comments