@tobi-or-not/docpress 0.7.4 → 0.7.5
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/dist/cli.js +141 -141
- package/dist/cli.js.map +1 -1
- package/dist/templates/theme/index.ts +2 -1
- package/package.json +25 -25
- package/types/src/lib/git.d.ts +3 -0
- package/types/src/utils/functions.d.ts +14 -0
- package/types/src/utils/regex.d.ts +4 -14
package/types/src/lib/git.d.ts
CHANGED
|
@@ -113,4 +113,18 @@ export declare function loadConfigFile(configPath?: string): any;
|
|
|
113
113
|
* @returns Array of strings
|
|
114
114
|
*/
|
|
115
115
|
export declare function splitByComma(s: string): string[];
|
|
116
|
+
/**
|
|
117
|
+
* Replaces relative paths in markdown links with absolute URLs
|
|
118
|
+
*
|
|
119
|
+
* @param file - Path to the markdown file to process
|
|
120
|
+
* @param url - Base URL to use for absolute links
|
|
121
|
+
*/
|
|
122
|
+
export declare function replaceRelativePath(file: string, url: string): void;
|
|
123
|
+
/**
|
|
124
|
+
* Processes README files to fix various link formats
|
|
125
|
+
*
|
|
126
|
+
* @param file - Path to the README file to process
|
|
127
|
+
* @param url - Base URL to use for absolute links
|
|
128
|
+
*/
|
|
129
|
+
export declare function replaceReadmePath(file: string, url: string): void;
|
|
116
130
|
export {};
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* @param url - Base URL to use for absolute links
|
|
6
|
-
*/
|
|
7
|
-
export declare function replaceRelativePath(file: string, url: string): void;
|
|
8
|
-
/**
|
|
9
|
-
* Processes README files to fix various link formats
|
|
10
|
-
*
|
|
11
|
-
* @param file - Path to the README file to process
|
|
12
|
-
* @param url - Base URL to use for absolute links
|
|
13
|
-
*/
|
|
14
|
-
export declare function replaceReadmePath(file: string, url: string): void;
|
|
1
|
+
export declare const relativePathRegex: RegExp;
|
|
2
|
+
export declare const readmePathRegex: RegExp;
|
|
3
|
+
export declare const readmeDocsPathRegex: RegExp;
|
|
4
|
+
export declare const removeIdxRegex: RegExp;
|