Skip to content

Commit

Permalink
fix: use example title if it is available (#1418)
Browse files Browse the repository at this point in the history
TypeDoc was updated recently to parse the example title correctly
so use if it is available
  • Loading branch information
achingbrain committed Nov 27, 2023
1 parent 9356a7d commit a1d1fe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/docs/readme-updater-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ ${
.map(item => {
if (item.tag === '@example') {
return `
## Example
## Example${item.name ? ` - ${item.name}` : ''}
${
item.content
Expand Down

0 comments on commit a1d1fe7

Please sign in to comment.