@tenphi/cookbook 0.21.2 → 0.21.4

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.
@@ -441,8 +441,8 @@ theme: {
441
441
  ```
442
442
 
443
443
  The default brand is `okhsl(266 68% 48%)`, a blue with 68% saturation.
444
- Controls use an `8px` radius and cards use `16px`. Onest is the default body
445
- and heading family; JetBrains Mono is used for code. `theme.fonts` loads Google
444
+ Controls use an `8px` radius and cards use `16px`. Onest Variable is the default body
445
+ and heading family; JetBrains Mono Variable is used for code. `theme.fonts` loads Google
446
446
  families by name or local files from `public/`. See
447
447
  [Fonts and typography](./fonts-and-typography.md) for both flows.
448
448
 
@@ -662,10 +662,31 @@ translations: {
662
662
 
663
663
  `navigation.<configured label>` translates named tabs and navigation groups.
664
664
  Automatically generated links use the title from the translated page.
665
- Cookbook message keys are `appearance`, `colorScheme`, `contrast`,
666
- `normalContrast`, `highContrast`, `auto`, `closeNavigation`, `primary`, `sections`,
667
- `chooseSection`, `headerLinks`, `more`, `closeMore`, `moreLinks`, `versions`,
668
- `documentationVersion`, `documentationVersions`, `version`, `home`,
669
- `generatedWith`, `viewSource`, `copyCode`, `codeCopied`, `codeCopyError`,
670
- `copyHeading`, `linkCopied`, `linkCopyError`, `notFound`, `notFoundDescription`,
671
- and `fallback`. Preserve `{heading}` in the `copyHeading` message.
665
+ The supported keys below keep independent overrides, including similar labels:
666
+ `auto` controls contrast, while `themeSelect.auto` controls color scheme;
667
+ `search.label` labels the search control, while `pagefind.search` supplies the
668
+ search input prompt. No migration or key renaming is needed.
669
+
670
+ | Keys | Controls or feedback |
671
+ | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
672
+ | `copyPage`, `viewMarkdown`, `pageCopied`, `pageCopyError` | Page Markdown actions and copy status. |
673
+ | `draftTitle`, `draftNotice` | Draft-page notice. |
674
+ | `searchError` | Search loading failure. |
675
+ | `appearance`, `colorScheme`, `contrast`, `normalContrast`, `highContrast`, `auto` | Appearance and contrast controls. |
676
+ | `closeNavigation`, `primary`, `sections`, `chooseSection` | Primary and mobile navigation. |
677
+ | `headerLinks`, `more`, `closeMore`, `moreLinks` | Header links and overflow menu. |
678
+ | `versions`, `documentationVersion`, `documentationVersions`, `version` | Version selection and package labels. |
679
+ | `home`, `generatedWith`, `viewSource` | Home, footer credit and preview source. |
680
+ | `copyCode`, `codeCopied`, `codeCopyError` | Code copy action and status. |
681
+ | `copyHeading`, `linkCopied`, `linkCopyError` | Heading link action and status. Preserve `{heading}` in `copyHeading`. |
682
+ | `notFound`, `notFoundDescription`, `fallback` | Missing-page and language fallback messages. |
683
+ | `sidebarNav.accessibleLabel`, `menuButton.accessibleLabel` | Sidebar navigation and menu accessible names. |
684
+ | `tableOfContents.onThisPage`, `languageSelect.accessibleLabel` | Contents heading and language selector. |
685
+ | `themeSelect.light`, `themeSelect.dark`, `themeSelect.auto` | Color-scheme options. |
686
+ | `search.label`, `search.ctrlKey`, `search.cancelLabel`, `search.devWarning` | Search control, shortcut, close action and development notice. |
687
+ | `page.nextLink`, `page.previousLink`, `page.editLink`, `page.lastUpdated`, `page.skipToContent` | Pagination, edit/update labels and skip link. |
688
+ | `pagefind.search`, `pagefind.clear_search`, `pagefind.zero_results`, `pagefind.many_results`, `pagefind.one_result` | Search input, clearing and result counts. Preserve `[COUNT]` in count messages. |
689
+
690
+ Custom component message keys are also preserved. Missing custom keys passed to
691
+ `Astro.locals.t(key)` return the key itself. Changing an override does not alter
692
+ other message keys, even when their default text is the same.
@@ -10,8 +10,14 @@ named presets to the rendered site.
10
10
 
11
11
  The base [typography presets](./upstream/tasty/docs/styles.md#preset) are
12
12
  `body`, `heading`, `h1` through `h6`, `navigation`, `small`, and `code`. Onest
13
- is self-hosted and used for body and heading text by default; JetBrains Mono is
14
- self-hosted for code.
13
+ Variable is self-hosted and used for body and heading text by default, with a
14
+ continuous weight range from `100` to `900`. This supports intermediate preset
15
+ weights such as `450` for navigation and `610` for headings. JetBrains Mono
16
+ Variable is self-hosted for code with weights from `100` to `800`.
17
+
18
+ Both default fonts bundle their Latin subset and require no Google Fonts
19
+ requests at build time or in the browser. For other character sets, configure
20
+ `theme.fonts` with a Google family or local files as described below.
15
21
 
16
22
  Specialized roles preserve the component sizes while sharing their base typography:
17
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tenphi/cookbook",
3
- "version": "0.21.2",
3
+ "version": "0.21.4",
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.21.2",
72
- "@tenphi/renderer": "0.21.2"
71
+ "@tenphi/docs": "0.21.4",
72
+ "@tenphi/renderer": "0.21.4"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "astro": "^7.3.2"