Repository navigation
Commit 71f6d36
claude: Auto-load orange-book extension for typst book projects
When a book project uses `format: typst` without specifying an extension,
automatically load the bundled orange-book extension as the default typst
book template. This provides a polished book appearance out-of-the-box.
Changes:
- render-contexts.ts: Auto-load orange-book in readExtensionFormat when
project type is book, format is typst, and no extension is specified
- extension.ts: Add subtree extension search to discoverExtensionPath,
export readSubtreeExtensions and builtinSubtreeExtensions
- output-typst.ts: Handle subtree extensions in stageTypstPackages for
proper Typst package staging
- Test now uses plain `typst` format instead of `orange-book-typst`,
relying on auto-loading; removed local _extensions (uses bundled)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent fa6b4c3 commit 71f6d36
176 files changed
Lines changed: 48 additions & 1881 deletions
File tree
- src
- command/render
- extension
- tests/docs/smoke-all/typst/orange-book
- _extensions/orange-book
- typst/packages/local/orange-book/0.7.1
- example
- fonts
- scripts
- tests
- heading-style
- long-part-title
- part-style-1
- sample-book
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| 67 | + | |
65 | 68 | | |
66 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
679 | 692 | | |
680 | | - | |
| 693 | + | |
681 | 694 | | |
682 | 695 | | |
683 | | - | |
| 696 | + | |
684 | 697 | | |
685 | 698 | | |
686 | 699 | | |
| |||
696 | 709 | | |
697 | 710 | | |
698 | 711 | | |
699 | | - | |
| 712 | + | |
700 | 713 | | |
701 | 714 | | |
702 | 715 | | |
| |||
707 | 720 | | |
708 | 721 | | |
709 | 722 | | |
710 | | - | |
| 723 | + | |
711 | 724 | | |
712 | 725 | | |
713 | 726 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| |||
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
306 | | - | |
| 306 | + | |
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| |||
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
631 | 649 | | |
632 | 650 | | |
633 | 651 | | |
| |||
661 | 679 | | |
662 | 680 | | |
663 | 681 | | |
664 | | - | |
| 682 | + | |
665 | 683 | | |
666 | 684 | | |
667 | 685 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments