Skip to content

Commit 3dac1bb

Browse files
committed
Rebased off master and responded to PR comments
1 parent 03a7354 commit 3dac1bb

File tree

6 files changed

+173
-171
lines changed

6 files changed

+173
-171
lines changed

apps/api-extractor/src/api/IConfigFile.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ export interface IConfigDocModel {
144144
includeForgottenExports?: boolean;
145145

146146
/**
147-
* The URL to the `<projectFolder>` token where the project's source code can be viewed on a website like GitHub or
148-
* Azure DevOps.
147+
* The base URL where the project's source code can be viewed on a website such as GitHub or
148+
* Azure DevOps. This URL path corresponds to the `<projectFolder>` path on disk.
149149
*
150150
* @remarks
151151
* This URL is concatenated with the file paths serialized to the doc model to produce URL file paths to individual API items.

apps/api-extractor/src/generators/ApiModelGenerator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1138,6 +1138,6 @@ export class ApiModelGenerator {
11381138
pos: declaration.pos
11391139
});
11401140

1141-
return path.relative(this._collector.extractorConfig.projectFolder, sourceLocation.sourceFilePath);
1141+
return path.posix.relative(this._collector.extractorConfig.projectFolder, sourceLocation.sourceFilePath);
11421142
}
11431143
}

apps/api-extractor/src/schemas/api-extractor-template.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@
218218
// "includeForgottenExports": false,
219219

220220
/**
221-
* The URL to the `<projectFolder>` token where the project's source code can be viewed on a website like GitHub or
222-
* Azure DevOps.
221+
* The base URL where the project's source code can be viewed on a website such as GitHub or
222+
* Azure DevOps. This URL path corresponds to the `<projectFolder>` path on disk.
223223
*
224224
* This URL is concatenated with the file paths serialized to the doc model to produce URL file paths to individual API items.
225225
* For example, if the `projectFolderUrl` is "https://github.com/microsoft/rushstack/tree/main/apps/api-extractor" and an API

apps/api-extractor/src/schemas/api-extractor.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@
108108
"type": "boolean"
109109
},
110110
"projectFolderUrl": {
111-
"description": "The URL to the `<projectFolder>` token where the project's source code can be viewed on a website like GitHub or Azure DevOps. This URL is concatenated with the file paths serialized to the doc model to produce URL file paths to individual API items. For example, if the `projectFolderUrl` is \"https://github.com/microsoft/rushstack/tree/main/apps/api-extractor\" and an API item's file path is \"api/ExtractorConfig.ts\", the full URL file path would be \"https://github.com/microsoft/rushstack/tree/main/apps/api-extractor/api/ExtractorConfig.js\". Can be omitted if you don't need source code links in your API documentation reference.",
111+
"description": "The base URL where the project's source code can be viewed on a website such as GitHub or Azure DevOps. This URL path corresponds to the `<projectFolder>` path on disk. This URL is concatenated with the file paths serialized to the doc model to produce URL file paths to individual API items. For example, if the `projectFolderUrl` is \"https://github.com/microsoft/rushstack/tree/main/apps/api-extractor\" and an API item's file path is \"api/ExtractorConfig.ts\", the full URL file path would be \"https://github.com/microsoft/rushstack/tree/main/apps/api-extractor/api/ExtractorConfig.js\". Can be omitted if you don't need source code links in your API documentation reference.",
112112
"type": "string"
113113
}
114114
},

0 commit comments

Comments
 (0)