@tenphi/cookbook 0.19.0 → 0.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -98,6 +98,8 @@ tableOfContents: { mobile: true, minHeadingLevel: 2, maxHeadingLevel: 3 }
98
98
  The same frontmatter field can change heading levels or set `mobile: false` on
99
99
  one page. `tableOfContents: false` disables both versions. Selecting a mobile
100
100
  contents link closes the disclosure and moves keyboard focus to the heading.
101
+ The desktop contents list highlights the current section and scrolls its own
102
+ list when the active link moves out of view.
101
103
  Customize `theme.styles.MobileTableOfContents` and `TableOfContentsLayout`.
102
104
 
103
105
  ## Hero images
@@ -521,10 +521,12 @@ and mobile menu. On wider layouts, heading permalinks sit to the left of the
521
521
  heading and are revealed on heading hover or keyboard focus. On mobile they
522
522
  stay visible and inline so the target is not clipped by the narrower content
523
523
  gutter. Customize the behavior with `MarkdownHeading.Link`,
524
- `MarkdownHeading.RevealedLink`, and `MarkdownHeading.LinkIcon`. Activating a
525
- heading link copies the full page URL with that section’s fragment, without
526
- scrolling or changing the current URL. A checkmark and screen-reader status
527
- confirm the copy; clipboard failures are announced. Modified clicks and links
524
+ `MarkdownHeading.RevealedLink`, and `MarkdownHeading.LinkIcon`. The `#` icon
525
+ scales with its heading and stays centered in the link target across heading
526
+ levels and screen widths. Activating a heading link copies the full page URL
527
+ with that section’s fragment without scrolling or changing the current URL. A
528
+ checkmark and screen-reader status confirm the copy; clipboard failures are
529
+ announced. Modified clicks and links
528
530
  without JavaScript retain native anchor behavior. Customize the confirmation
529
531
  with `MarkdownHeading.CopiedLink`, `MarkdownHeading.CopiedLinkIcon` (the hidden
530
532
  original icon), and `MarkdownHeading.CopiedIcon` (the checkmark).
@@ -951,6 +953,9 @@ for the close button. The inset divider above the tabs belongs to `TopNavigation
951
953
 
952
954
  The desktop table of contents is hidden below 72rem. Set
953
955
  `tableOfContents: { mobile: true }` to show an optional compact disclosure there.
956
+ On desktop, the current section is marked as the page scrolls and its link stays
957
+ visible in a long contents list. Customize its appearance with
958
+ `theme.styles.TableOfContents.CurrentLink`.
954
959
  `MobileTableOfContents` owns its summary and links; `TableOfContentsLayout`
955
960
  controls placement. `Layout` controls shared
956
961
  navigation dimensions and the drawer's scroll lock; `PageFrame` styles the
@@ -1192,7 +1197,11 @@ snippets. The padding follows the `code` preset's line height. Override it with
1192
1197
 
1193
1198
  Shiki classifies code; Tasty renders every token using Glaze's semantic syntax
1194
1199
  colors. Customize token rules with `theme.styles.SyntaxHighlight`, or their
1195
- colors with `theme.palette` (for example `syntax-keyword`). Code fences, including
1200
+ colors with `theme.palette` (for example `syntax-keyword`). The default
1201
+ `syntax-bg` stays white in light mode and takes a slight brand-hued tint, close
1202
+ to the page background's saturation, in dark mode. Set
1203
+ `theme.palette["syntax-bg"]` to give code its own color seed;
1204
+ syntax text and token contrast resolve against that surface. Code fences, including
1196
1205
  MDX and diff blocks, use classes without inline style attributes. Custom Shiki
1197
1206
  transformers should emit classes; unsupported inline declarations fail with a
1198
1207
  configuration hint.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenphi/cookbook",
3
- "version": "0.19.0",
3
+ "version": "0.19.2",
4
4
  "description": "Repository-native static documentation for Astro",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -68,8 +68,8 @@
68
68
  "author": "Andrey Yamanov",
69
69
  "license": "MIT",
70
70
  "dependencies": {
71
- "@tenphi/docs": "0.19.0",
72
- "@tenphi/renderer": "0.19.0"
71
+ "@tenphi/docs": "0.19.2",
72
+ "@tenphi/renderer": "0.19.2"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "astro": "^7.3.2"