Commit 80ba146
committed
fix(docs): blank comments whole, and fail loudly when subBlock parsing breaks
blankStringsAndComments kept the first and last character of every match.
That is correct for a quoted string, where both are delimiters, but for a
'//' comment the last character is arbitrary source text -- so a
commented-out '// options: [' left an unbalanced bracket inside the
subBlocks span, findMatchingClose returned -1, and the extractor reported
that the block exposes nothing.
google_drive lost three user-settable mimeType rows that way. The block
renders mimeType as an Export Format dropdown.
A parse failure and 'this block exposes nothing' were indistinguishable,
and the fallback was the destructive branch. Parsing now throws a
SubBlockParseError when the bracket scan fails or when an array holding
literal objects yields no ids; the call site reports it and exits non-zero
in both generate and check mode rather than dropping the page.1 parent fc5d754 commit 80ba146
3 files changed
Lines changed: 112 additions & 7 deletions
File tree
- apps/docs/content/docs/en/integrations
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| 156 | + | |
156 | 157 | | |
157 | 158 | | |
158 | 159 | | |
| |||
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
| 284 | + | |
283 | 285 | | |
284 | 286 | | |
285 | 287 | | |
| |||
349 | 351 | | |
350 | 352 | | |
351 | 353 | | |
| 354 | + | |
352 | 355 | | |
353 | 356 | | |
354 | 357 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
651 | 662 | | |
652 | 663 | | |
653 | 664 | | |
| |||
662 | 673 | | |
663 | 674 | | |
664 | 675 | | |
665 | | - | |
| 676 | + | |
666 | 677 | | |
667 | 678 | | |
668 | 679 | | |
669 | 680 | | |
670 | 681 | | |
671 | 682 | | |
672 | | - | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
673 | 688 | | |
674 | 689 | | |
675 | 690 | | |
| |||
705 | 720 | | |
706 | 721 | | |
707 | 722 | | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
708 | 735 | | |
709 | 736 | | |
710 | 737 | | |
| |||
882 | 909 | | |
883 | 910 | | |
884 | 911 | | |
885 | | - | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
886 | 923 | | |
887 | 924 | | |
888 | 925 | | |
| |||
1396 | 1433 | | |
1397 | 1434 | | |
1398 | 1435 | | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
1399 | 1448 | | |
1400 | | - | |
1401 | | - | |
1402 | | - | |
1403 | | - | |
| 1449 | + | |
1404 | 1450 | | |
1405 | 1451 | | |
1406 | 1452 | | |
| |||
4132 | 4178 | | |
4133 | 4179 | | |
4134 | 4180 | | |
| 4181 | + | |
| 4182 | + | |
| 4183 | + | |
| 4184 | + | |
| 4185 | + | |
| 4186 | + | |
| 4187 | + | |
| 4188 | + | |
| 4189 | + | |
4135 | 4190 | | |
4136 | 4191 | | |
4137 | 4192 | | |
| |||
0 commit comments