Skip to content

Commit

Permalink
docs: fix umi docs sync script (#2052)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript authored Mar 24, 2024
1 parent 589e363 commit b2b40e2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/sync-from-umi.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,9 @@ const FILE_LIST = [
{ type: 'replace', value: [/@(\/extraRoutes)/g, '.$1'] },
// remove args from title
{ type: 'replace', value: [/(#+\s\w+)\([^)]+\)/g, '$1'] },
// remove HashAnchorCompat
// ref: https://github.com/umijs/umi/blob/8bfd4c761b3cc6209b9203c705842568c3ccbe62/docs/docs/docs/api/runtime-config.md#L183
{ type: 'replace', value: [/<HashAnchorCompat.+?<\/HashAnchorCompat>\n/g, ''] },
],
},
{
Expand Down

0 comments on commit b2b40e2

Please sign in to comment.