@tenphi/cookbook 0.25.0 → 0.25.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.
- package/docs/configuration.md +7 -1
- package/docs/deployment.md +7 -0
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tenphi/cookbook",
|
|
3
|
-
"version": "0.25.
|
|
3
|
+
"version": "0.25.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.25.
|
|
72
|
-
"@tenphi/renderer": "0.25.
|
|
71
|
+
"@tenphi/docs": "0.25.1",
|
|
72
|
+
"@tenphi/renderer": "0.25.1"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"astro": "^7.3.2"
|