File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
packages/gatsby-theme-iterative/config/prismjs Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 11name : Update tool commands list for Prismjs
22on :
3+ workflow_dispatch :
34 schedule :
45 - cron : ' 0 10 * * 1-5'
56
Original file line number Diff line number Diff line change @@ -12,6 +12,11 @@ const repoList = {
1212
1313const paths = [ 'command-reference' , 'cli-reference' , 'ref' ]
1414
15+ const sortDashedCommand = ( a , b ) => {
16+ if ( a . split ( '-' ) [ 0 ] === b ) return - 1
17+ return 0
18+ }
19+
1520const getUrl = ( repo , branch = 'main' ) => {
1621 return `https://raw.githubusercontent.com/iterative/${ repo } /${ branch } /content/docs/sidebar.json`
1722}
@@ -47,6 +52,8 @@ const getCommands = async tool => {
4752 commands . push ( label )
4853 } )
4954
55+ commands . sort ( sortDashedCommand )
56+
5057 writeCommandsToFile ( commands , tool )
5158}
5259
You can’t perform that action at this time.
0 commit comments