docs(nxdev): add sub-forlder context into devkit urls (#13920)
This commit is contained in:
parent
6718bf2a84
commit
e12922b029
File diff suppressed because it is too large
Load Diff
@ -4,13 +4,13 @@
|
|||||||
|
|
||||||
### Ng CLI Adapter Classes
|
### Ng CLI Adapter Classes
|
||||||
|
|
||||||
- [NxScopedHost](../../devkit/ngcli_adapter#nxscopedhost)
|
- [NxScopedHost](../../devkit/documents/ngcli_adapter#nxscopedhost)
|
||||||
|
|
||||||
### Functions
|
### Functions
|
||||||
|
|
||||||
- [mockSchematicsForTesting](../../devkit/ngcli_adapter#mockschematicsfortesting)
|
- [mockSchematicsForTesting](../../devkit/documents/ngcli_adapter#mockschematicsfortesting)
|
||||||
- [overrideCollectionResolutionForTesting](../../devkit/ngcli_adapter#overridecollectionresolutionfortesting)
|
- [overrideCollectionResolutionForTesting](../../devkit/documents/ngcli_adapter#overridecollectionresolutionfortesting)
|
||||||
- [wrapAngularDevkitSchematic](../../devkit/ngcli_adapter#wrapangulardevkitschematic)
|
- [wrapAngularDevkitSchematic](../../devkit/documents/ngcli_adapter#wrapangulardevkitschematic)
|
||||||
|
|
||||||
## Ng CLI Adapter Classes
|
## Ng CLI Adapter Classes
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ overrideCollectionResolutionForTesting({
|
|||||||
|
|
||||||
### wrapAngularDevkitSchematic
|
### wrapAngularDevkitSchematic
|
||||||
|
|
||||||
▸ **wrapAngularDevkitSchematic**(`collectionName`, `generatorName`): (`host`: [`Tree`](../../devkit/index#tree), `generatorOptions`: { [k: string]: `any`; }) => `Promise`<`any`\>
|
▸ **wrapAngularDevkitSchematic**(`collectionName`, `generatorName`): (`host`: [`Tree`](../../devkit/documents/index#tree), `generatorOptions`: { [k: string]: `any`; }) => `Promise`<`any`\>
|
||||||
|
|
||||||
#### Parameters
|
#### Parameters
|
||||||
|
|
||||||
@ -108,10 +108,10 @@ overrideCollectionResolutionForTesting({
|
|||||||
|
|
||||||
##### Parameters
|
##### Parameters
|
||||||
|
|
||||||
| Name | Type |
|
| Name | Type |
|
||||||
| :----------------- | :-------------------------------- |
|
| :----------------- | :------------------------------------------ |
|
||||||
| `host` | [`Tree`](../../devkit/index#tree) |
|
| `host` | [`Tree`](../../devkit/documents/index#tree) |
|
||||||
| `generatorOptions` | `Object` |
|
| `generatorOptions` | `Object` |
|
||||||
|
|
||||||
##### Returns
|
##### Returns
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -4,13 +4,13 @@
|
|||||||
|
|
||||||
### Ng CLI Adapter Classes
|
### Ng CLI Adapter Classes
|
||||||
|
|
||||||
- [NxScopedHost](../../devkit/ngcli_adapter#nxscopedhost)
|
- [NxScopedHost](../../devkit/documents/ngcli_adapter#nxscopedhost)
|
||||||
|
|
||||||
### Functions
|
### Functions
|
||||||
|
|
||||||
- [mockSchematicsForTesting](../../devkit/ngcli_adapter#mockschematicsfortesting)
|
- [mockSchematicsForTesting](../../devkit/documents/ngcli_adapter#mockschematicsfortesting)
|
||||||
- [overrideCollectionResolutionForTesting](../../devkit/ngcli_adapter#overridecollectionresolutionfortesting)
|
- [overrideCollectionResolutionForTesting](../../devkit/documents/ngcli_adapter#overridecollectionresolutionfortesting)
|
||||||
- [wrapAngularDevkitSchematic](../../devkit/ngcli_adapter#wrapangulardevkitschematic)
|
- [wrapAngularDevkitSchematic](../../devkit/documents/ngcli_adapter#wrapangulardevkitschematic)
|
||||||
|
|
||||||
## Ng CLI Adapter Classes
|
## Ng CLI Adapter Classes
|
||||||
|
|
||||||
@ -91,7 +91,7 @@ overrideCollectionResolutionForTesting({
|
|||||||
|
|
||||||
### wrapAngularDevkitSchematic
|
### wrapAngularDevkitSchematic
|
||||||
|
|
||||||
▸ **wrapAngularDevkitSchematic**(`collectionName`, `generatorName`): (`host`: [`Tree`](../../devkit/index#tree), `generatorOptions`: { [k: string]: `any`; }) => `Promise`<`any`\>
|
▸ **wrapAngularDevkitSchematic**(`collectionName`, `generatorName`): (`host`: [`Tree`](../../devkit/documents/index#tree), `generatorOptions`: { [k: string]: `any`; }) => `Promise`<`any`\>
|
||||||
|
|
||||||
#### Parameters
|
#### Parameters
|
||||||
|
|
||||||
@ -108,10 +108,10 @@ overrideCollectionResolutionForTesting({
|
|||||||
|
|
||||||
##### Parameters
|
##### Parameters
|
||||||
|
|
||||||
| Name | Type |
|
| Name | Type |
|
||||||
| :----------------- | :-------------------------------- |
|
| :----------------- | :------------------------------------------ |
|
||||||
| `host` | [`Tree`](../../devkit/index#tree) |
|
| `host` | [`Tree`](../../devkit/documents/index#tree) |
|
||||||
| `generatorOptions` | `Object` |
|
| `generatorOptions` | `Object` |
|
||||||
|
|
||||||
##### Returns
|
##### Returns
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,16 @@ export default class NrwlMarkdownTheme extends MarkdownTheme {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render(page: PageEvent<Reflection>): string {
|
render(page: PageEvent<Reflection>): string {
|
||||||
return super.render(page).replace(/.md#/gi, '#');
|
return (
|
||||||
|
super
|
||||||
|
.render(page)
|
||||||
|
.replace(/.md#/gi, '#')
|
||||||
|
/**
|
||||||
|
* Hack: This is the simplest way to update the urls and make them work
|
||||||
|
* in the `/packages/[name]/documents/[index|ngcli_adapter] context.
|
||||||
|
*/
|
||||||
|
.replace(/\/devkit\//gi, '/devkit/documents/')
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
get mappings() {
|
get mappings() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user