@tenphi/cookbook 0.19.0 → 0.19.1

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
@@ -951,6 +951,9 @@ for the close button. The inset divider above the tabs belongs to `TopNavigation
951
951
 
952
952
  The desktop table of contents is hidden below 72rem. Set
953
953
  `tableOfContents: { mobile: true }` to show an optional compact disclosure there.
954
+ On desktop, the current section is marked as the page scrolls and its link stays
955
+ visible in a long contents list. Customize its appearance with
956
+ `theme.styles.TableOfContents.CurrentLink`.
954
957
  `MobileTableOfContents` owns its summary and links; `TableOfContentsLayout`
955
958
  controls placement. `Layout` controls shared
956
959
  navigation dimensions and the drawer's scroll lock; `PageFrame` styles the
@@ -1192,7 +1195,11 @@ snippets. The padding follows the `code` preset's line height. Override it with
1192
1195
 
1193
1196
  Shiki classifies code; Tasty renders every token using Glaze's semantic syntax
1194
1197
  colors. Customize token rules with `theme.styles.SyntaxHighlight`, or their
1195
- colors with `theme.palette` (for example `syntax-keyword`). Code fences, including
1198
+ colors with `theme.palette` (for example `syntax-keyword`). The default
1199
+ `syntax-bg` stays white in light mode and takes a slight brand-hued tint, close
1200
+ to the page background's saturation, in dark mode. Set
1201
+ `theme.palette["syntax-bg"]` to give code its own color seed;
1202
+ syntax text and token contrast resolve against that surface. Code fences, including
1196
1203
  MDX and diff blocks, use classes without inline style attributes. Custom Shiki
1197
1204
  transformers should emit classes; unsupported inline declarations fail with a
1198
1205
  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.1",
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.1",
72
+ "@tenphi/renderer": "0.19.1"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "astro": "^7.3.2"