-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(core): fix display of index descriptions in tables
- Loading branch information
Showing
10 changed files
with
313 additions
and
169 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
"typedoc-plugin-markdown": patch | ||
'typedoc-plugin-markdown': patch | ||
--- | ||
|
||
- Remove superfluous quotes from prop names (#619) | ||
- Fix display of index descriptions in tables (#619) |
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
30 changes: 30 additions & 0 deletions
30
packages/typedoc-plugin-markdown/test/fixtures/custom-plugins/stub-groups-theme.mjs
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,30 @@ | ||
// @ts-check | ||
import { MarkdownTheme, MarkdownThemeContext } from 'typedoc-plugin-markdown'; | ||
|
||
/** | ||
* @param {import('typedoc-plugin-markdown').MarkdownApplication} app | ||
*/ | ||
export function load(app) { | ||
app.renderer.defineTheme('stub-groups', StubPartialsTheme); | ||
} | ||
|
||
class StubPartialsTheme extends MarkdownTheme { | ||
/** | ||
* @param {import('typedoc-plugin-markdown').MarkdownPageEvent} page | ||
*/ | ||
getRenderContext(page) { | ||
return new MyMarkdownThemeContext(this, page, this.application.options); | ||
} | ||
} | ||
|
||
class MyMarkdownThemeContext extends MarkdownThemeContext { | ||
partials = { | ||
...this.partials, | ||
declaration: () => { | ||
return `_DECLARATION_MEMBER_PARTIAL_`; | ||
}, | ||
signature: () => { | ||
return `_SIGNATURE_MEMBER_PARTIAL_`; | ||
}, | ||
}; | ||
} |
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
Oops, something went wrong.