-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
213 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'typedoc-plugin-markdown': patch | ||
--- | ||
|
||
- Expose `mergeReadme` option |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
packages/typedoc-plugin-markdown/test/specs/__snapshots__/readme.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Readmes should get merged readme for members: (Output File Strategy "members") (Option Group "1") 1`] = ` | ||
"**typedoc-stubs** • [Exports](index.md) | ||
*** | ||
# MY README | ||
> Some block quote | ||
Some text. | ||
## Readme heading | ||
Some text. | ||
## typedoc-stubs | ||
Module commments | ||
### Functions | ||
- [someFunction](functions/someFunction.md) | ||
" | ||
`; | ||
|
||
exports[`Readmes should get merged readme for modules: (Output File Strategy "modules") (Option Group "1") 1`] = ` | ||
"**typedoc-stubs** • Exports | ||
*** | ||
# MY README | ||
> Some block quote | ||
Some text. | ||
## Contents | ||
- [Readme heading](index.md#readme-heading) | ||
- [typedoc-stubs](index.md#typedoc-stubs) | ||
- [Functions](index.md#functions) | ||
## Readme heading | ||
Some text. | ||
## typedoc-stubs | ||
Module commments | ||
### Functions | ||
#### someFunction() | ||
> **someFunction**(): \`void\` | ||
##### Returns | ||
\`void\` | ||
" | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/typedoc-plugin-markdown/test/specs/readme.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { | ||
FixtureOutputDir, | ||
FixtureOutputFileStrategy, | ||
} from '../__utils__/fixture-config'; | ||
import { expectFileToEqual } from '../__utils__/helpers'; | ||
|
||
describe(`Readmes`, () => { | ||
test(`should get merged readme for members`, () => { | ||
expectFileToEqual( | ||
FixtureOutputDir.Readme, | ||
FixtureOutputFileStrategy.Members, | ||
['index.md'], | ||
); | ||
}); | ||
|
||
test(`should get merged readme for modules`, () => { | ||
expectFileToEqual( | ||
FixtureOutputDir.Readme, | ||
FixtureOutputFileStrategy.Modules, | ||
['index.md'], | ||
); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* Module commments | ||
* | ||
* @module | ||
*/ | ||
|
||
export function someFunction() {} |