@tenphi/cookbook 0.25.0 → 0.25.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.
- package/docs/configuration.md +7 -1
- package/docs/deployment.md +7 -0
- package/docs/es/index.md +1 -1
- package/docs/index.md +1 -1
- package/docs/ja/index.md +1 -1
- package/docs/ru/index.md +1 -1
- package/docs/zh/index.md +1 -1
- package/package.json +3 -3
package/docs/configuration.md
CHANGED
|
@@ -507,6 +507,10 @@ Configure renderer-level Markdown options such as custom remark or rehype
|
|
|
507
507
|
plugins and Shiki languages through Astro's top-level `markdown` configuration.
|
|
508
508
|
Cookbook preserves those settings while adding its own build-time transforms.
|
|
509
509
|
|
|
510
|
+
GFM column alignment (`:--`, `:-:`, `--:`) becomes a `data-align` modifier on
|
|
511
|
+
table cells. Restyle it with `@own(align=right)` and similar states in
|
|
512
|
+
`theme.styles.MarkdownTable.Cell`.
|
|
513
|
+
|
|
510
514
|
Cookbook preserves custom metadata and supports custom schemas. See
|
|
511
515
|
[extending Cookbook](./plugins.md) for Astro Markdown plugins, native GitHub
|
|
512
516
|
alerts, the content query API, and styling limits.
|
|
@@ -612,7 +616,9 @@ build: {
|
|
|
612
616
|
`strict` makes missing internal links errors instead of warnings. `ci` makes
|
|
613
617
|
missing heading fragments errors and defaults to `true` when `CI=true`.
|
|
614
618
|
Cookbook derives its public base path from Astro's top-level `base` setting so
|
|
615
|
-
routes and assets cannot drift between two configurations.
|
|
619
|
+
routes and assets cannot drift between two configurations. Page URLs likewise
|
|
620
|
+
follow Astro's `trailingSlash` and `build.format`; see
|
|
621
|
+
[Deployment](./deployment.md#github-pages). An empty `cacheDir`
|
|
616
622
|
uses `~/.cache/cookbook`; set an explicit path to relocate downloaded package
|
|
617
623
|
artifacts. Package limits protect builds from unexpected registry artifacts;
|
|
618
624
|
raise them deliberately for a reviewed package.
|
package/docs/deployment.md
CHANGED
|
@@ -42,6 +42,13 @@ served at `https://owner.github.io/repository/`, set Astro's
|
|
|
42
42
|
`base: "/repository/"`; Cookbook derives the same base for its graph and
|
|
43
43
|
assets.
|
|
44
44
|
|
|
45
|
+
Page URLs follow Astro's `trailingSlash` and `build.format`. The default
|
|
46
|
+
directory output writes `guide/index.html`, so links, canonicals, and `llms.txt`
|
|
47
|
+
use `/guide/`. `build.format: "file"` writes `guide.html` and uses `/guide`,
|
|
48
|
+
while the home remains the directory index at the base. `trailingSlash` set to
|
|
49
|
+
`"always"` or `"never"` overrides both. Either way, readers follow the URL the
|
|
50
|
+
host serves directly instead of a redirect.
|
|
51
|
+
|
|
45
52
|
## Custom domains
|
|
46
53
|
|
|
47
54
|
Set Cookbook's canonical site metadata to the HTTPS origin. The integration
|
package/docs/es/index.md
CHANGED
|
@@ -5,7 +5,7 @@ template: splash
|
|
|
5
5
|
seo:
|
|
6
6
|
title: Cookbook — documentación junto al código y adaptada a tu producto
|
|
7
7
|
hero:
|
|
8
|
-
title: Documentación que permanece junto al código
|
|
8
|
+
title: Documentación que permanece junto al código
|
|
9
9
|
tagline: Cookbook es un kit de herramientas de documentación para Astro. Convierte el Markdown de tu repositorio o un paquete npm publicado en un sitio estático con búsqueda, y adapta los colores, la tipografía y los componentes a tu producto.
|
|
10
10
|
image:
|
|
11
11
|
html: '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 64 64" aria-hidden="true"><rect width="64" height="64" rx="14" fill="currentColor"/><path fill="#fff" d="M14.8 16c6.7.2 12.3 2 16.7 5.4v28.4c-4.4-3.1-10-4.7-16.6-4.9a3 3 0 0 1-2.9-3V19a3 3 0 0 1 2.8-3Z"/><path fill="#fff" d="M49.2 16c-6.7.2-12.3 2-16.7 5.4v28.4c4.4-3.1 10-4.7 16.6-4.9a3 3 0 0 0 2.9-3V19a3 3 0 0 0-2.8-3Z"/></svg>'
|
package/docs/index.md
CHANGED
|
@@ -5,7 +5,7 @@ template: splash
|
|
|
5
5
|
seo:
|
|
6
6
|
title: Cookbook — docs that stay with the code and fit your product
|
|
7
7
|
hero:
|
|
8
|
-
title: Documentation that stays with the code
|
|
8
|
+
title: Documentation that stays with the code
|
|
9
9
|
tagline: Cookbook is an Astro documentation toolkit. Turn your repository Markdown or a published npm package into a searchable static site, with colors, typography, and components that fit your product.
|
|
10
10
|
image:
|
|
11
11
|
html: '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 64 64" aria-hidden="true"><rect width="64" height="64" rx="14" fill="currentColor"/><path fill="#fff" d="M14.8 16c6.7.2 12.3 2 16.7 5.4v28.4c-4.4-3.1-10-4.7-16.6-4.9a3 3 0 0 1-2.9-3V19a3 3 0 0 1 2.8-3Z"/><path fill="#fff" d="M49.2 16c-6.7.2-12.3 2-16.7 5.4v28.4c4.4-3.1 10-4.7 16.6-4.9a3 3 0 0 0 2.9-3V19a3 3 0 0 0-2.8-3Z"/></svg>'
|
package/docs/ja/index.md
CHANGED
|
@@ -5,7 +5,7 @@ template: splash
|
|
|
5
5
|
seo:
|
|
6
6
|
title: Cookbook — コードとともに保ち、製品に合わせて整えるドキュメント
|
|
7
7
|
hero:
|
|
8
|
-
title:
|
|
8
|
+
title: コードと同じ場所にあるドキュメント
|
|
9
9
|
tagline: Cookbook は Astro 向けのドキュメントツールキットです。リポジトリの Markdown や公開済み npm パッケージを、検索できる静的サイトに変換し、色、タイポグラフィ、コンポーネントを製品に合わせて調整できます。
|
|
10
10
|
image:
|
|
11
11
|
html: '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 64 64" aria-hidden="true"><rect width="64" height="64" rx="14" fill="currentColor"/><path fill="#fff" d="M14.8 16c6.7.2 12.3 2 16.7 5.4v28.4c-4.4-3.1-10-4.7-16.6-4.9a3 3 0 0 1-2.9-3V19a3 3 0 0 1 2.8-3Z"/><path fill="#fff" d="M49.2 16c-6.7.2-12.3 2-16.7 5.4v28.4c4.4-3.1 10-4.7 16.6-4.9a3 3 0 0 0 2.9-3V19a3 3 0 0 0-2.8-3Z"/></svg>'
|
package/docs/ru/index.md
CHANGED
|
@@ -5,7 +5,7 @@ template: splash
|
|
|
5
5
|
seo:
|
|
6
6
|
title: Cookbook — документация рядом с кодом и в стиле вашего продукта
|
|
7
7
|
hero:
|
|
8
|
-
title: Документация рядом с
|
|
8
|
+
title: Документация рядом с кодом
|
|
9
9
|
tagline: Cookbook — инструментарий для документации на Astro. Превратите Markdown-файлы репозитория или опубликованный npm-пакет в статический сайт с поиском и настройте цвета, типографику и компоненты под свой продукт.
|
|
10
10
|
image:
|
|
11
11
|
html: '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 64 64" aria-hidden="true"><rect width="64" height="64" rx="14" fill="currentColor"/><path fill="#fff" d="M14.8 16c6.7.2 12.3 2 16.7 5.4v28.4c-4.4-3.1-10-4.7-16.6-4.9a3 3 0 0 1-2.9-3V19a3 3 0 0 1 2.8-3Z"/><path fill="#fff" d="M49.2 16c-6.7.2-12.3 2-16.7 5.4v28.4c4.4-3.1 10-4.7 16.6-4.9a3 3 0 0 0 2.9-3V19a3 3 0 0 0-2.8-3Z"/></svg>'
|
package/docs/zh/index.md
CHANGED
|
@@ -5,7 +5,7 @@ template: splash
|
|
|
5
5
|
seo:
|
|
6
6
|
title: Cookbook — 与代码保持同步、契合产品风格的文档
|
|
7
7
|
hero:
|
|
8
|
-
title:
|
|
8
|
+
title: 与代码放在一起的文档
|
|
9
9
|
tagline: Cookbook 是一套 Astro 文档工具。将仓库中的 Markdown 或已发布的 npm 包转换为可搜索的静态站点,再根据产品调整颜色、字体排版和组件。
|
|
10
10
|
image:
|
|
11
11
|
html: '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 64 64" aria-hidden="true"><rect width="64" height="64" rx="14" fill="currentColor"/><path fill="#fff" d="M14.8 16c6.7.2 12.3 2 16.7 5.4v28.4c-4.4-3.1-10-4.7-16.6-4.9a3 3 0 0 1-2.9-3V19a3 3 0 0 1 2.8-3Z"/><path fill="#fff" d="M49.2 16c-6.7.2-12.3 2-16.7 5.4v28.4c4.4-3.1 10-4.7 16.6-4.9a3 3 0 0 0 2.9-3V19a3 3 0 0 0-2.8-3Z"/></svg>'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tenphi/cookbook",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.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.25.
|
|
72
|
-
"@tenphi/renderer": "0.25.
|
|
71
|
+
"@tenphi/docs": "0.25.2",
|
|
72
|
+
"@tenphi/renderer": "0.25.2"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"astro": "^7.3.2"
|