bunki 0.18.6 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -1
- package/dist/cli.js +474 -335
- package/dist/fragments/json-ld.njk +59 -0
- package/dist/fragments/og-image.njk +21 -0
- package/dist/fragments/pagination.njk +12 -0
- package/dist/fragments/share-buttons.njk +21 -0
- package/dist/index.js +0 -32874
- package/dist/utils/markdown/constants.d.ts +1 -0
- package/dist/utils/markdown/validators.d.ts +2 -2
- package/dist/utils/pagination.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Extracted for better code organization and performance
|
|
4
4
|
*/
|
|
5
5
|
export declare const RELATIVE_LINK_REGEX: RegExp;
|
|
6
|
+
export declare const SAME_DIR_LINK_REGEX: RegExp;
|
|
6
7
|
export declare const IMAGE_PATH_REGEX: RegExp;
|
|
7
8
|
export declare const IMAGE_PATH_ASSETS_DIR: RegExp;
|
|
8
9
|
export declare const IMAGE_PATH_ASSETS_SAME_DIR: RegExp;
|
|
@@ -14,7 +14,7 @@ export interface ValidationError {
|
|
|
14
14
|
* @param filePath - File path for error reporting
|
|
15
15
|
* @returns ValidationError if invalid, null if valid
|
|
16
16
|
*/
|
|
17
|
-
export declare function validateBusinessLocation(business:
|
|
17
|
+
export declare function validateBusinessLocation(business: unknown, filePath: string): ValidationError | null;
|
|
18
18
|
/**
|
|
19
19
|
* Validate that tags don't contain spaces (must use hyphens)
|
|
20
20
|
* @param tags - Array of tag strings
|
|
@@ -28,4 +28,4 @@ export declare function validateTags(tags: string[], filePath: string): Validati
|
|
|
28
28
|
* @param filePath - File path for error reporting
|
|
29
29
|
* @returns ValidationError if found, null otherwise
|
|
30
30
|
*/
|
|
31
|
-
export declare function checkDeprecatedLocationField(data:
|
|
31
|
+
export declare function checkDeprecatedLocationField(data: Record<string, unknown>, filePath: string): ValidationError | null;
|
|
@@ -20,7 +20,7 @@ export interface PaginationData {
|
|
|
20
20
|
* @param pagePath - Base path for pagination (e.g., "/", "/tags/tech/")
|
|
21
21
|
* @returns Pagination data object
|
|
22
22
|
*/
|
|
23
|
-
export declare function createPagination
|
|
23
|
+
export declare function createPagination(items: readonly unknown[], currentPage: number, pageSize: number, pagePath: string): PaginationData;
|
|
24
24
|
/**
|
|
25
25
|
* Get paginated slice of items for a specific page
|
|
26
26
|
* @param items - Array of items to paginate
|
package/package.json
CHANGED