@byline/cli 4.8.0 → 4.9.0
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/dist/templates/byline-examples/collections/docs/admin.tsx +1 -1
- package/dist/templates/byline-examples/collections/docs/hooks.ts +1 -1
- package/dist/templates/byline-examples/collections/docs/schema.ts +1 -1
- package/dist/templates/byline-examples/collections/media/schema.ts +1 -1
- package/dist/templates/byline-examples/collections/news/schema.ts +1 -1
- package/dist/templates/byline-examples/collections/news-categories/schema.ts +1 -1
- package/dist/templates/byline-examples/collections/pages/schema.ts +1 -1
- package/dist/templates/byline-examples/scripts/backfill-version-locales.ts +1 -1
- package/dist/templates/byline-examples/scripts/import-docs.ts +1 -1
- package/dist/templates/byline-examples/scripts/re-anchor.ts +1 -1
- package/dist/templates/byline-examples/server.config.ts +2 -2
- package/package.json +1 -1
|
@@ -96,7 +96,7 @@ export const DocsAdmin: CollectionAdminConfig = defineAdmin(Docs, {
|
|
|
96
96
|
* rebuilds this collection's search index; it self-gates on the
|
|
97
97
|
* `collections.docs.reindex` ability, so it only appears for actors who
|
|
98
98
|
* hold it. Drop this (and the `search` config in schema.ts) if you don't
|
|
99
|
-
* want search on this collection. See docs/
|
|
99
|
+
* want search on this collection. See docs/06-search/index.md.
|
|
100
100
|
*/
|
|
101
101
|
listActions: [ReindexButton],
|
|
102
102
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
* Indexing is background maintenance that runs from out-of-band write paths
|
|
47
47
|
* too (the import-docs script, seeds, migrations), where there is no HTTP
|
|
48
48
|
* request to read a session cookie from. See
|
|
49
|
-
* docs/
|
|
49
|
+
* docs/06-search/index.md.
|
|
50
50
|
*/
|
|
51
51
|
|
|
52
52
|
import { defineHooks } from '@byline/core'
|
|
@@ -47,7 +47,7 @@ export const Docs = defineCollection({
|
|
|
47
47
|
// mean" affordance that needs no indexing and no lifecycle hooks. Falls back
|
|
48
48
|
// to `useAsTitle` when omitted; declared explicitly here for guidance.
|
|
49
49
|
listSearch: ['title'],
|
|
50
|
-
// Search-*provider* config (docs/
|
|
50
|
+
// Search-*provider* config (docs/06-search/index.md) —
|
|
51
51
|
// distinct from `listSearch` above. Each key names the part a field plays in
|
|
52
52
|
// the index: `body` fields feed the full-text search vector (`title` is
|
|
53
53
|
// display-only unless listed here, so we include it and boost it into the
|
|
@@ -56,7 +56,7 @@ export const Media = defineCollection({
|
|
|
56
56
|
// mean" affordance that needs no indexing and no lifecycle hooks. Falls back
|
|
57
57
|
// to `useAsTitle` when omitted; declared explicitly here for guidance.
|
|
58
58
|
listSearch: ['title'],
|
|
59
|
-
// Search-*provider* config (docs/
|
|
59
|
+
// Search-*provider* config (docs/06-search/index.md) —
|
|
60
60
|
// distinct from `listSearch` above. This drives the pluggable SearchProvider
|
|
61
61
|
// (full-text search in @byline/search-postgres) and offers richer options:
|
|
62
62
|
// per-field weighting/`boost`, `facets`, `filters`, and `zones`. Unlike
|
|
@@ -36,7 +36,7 @@ export const News = defineCollection({
|
|
|
36
36
|
// mean" affordance that needs no indexing and no lifecycle hooks. Falls back
|
|
37
37
|
// to `useAsTitle` when omitted; declared explicitly here for guidance.
|
|
38
38
|
listSearch: ['title'],
|
|
39
|
-
// Search-*provider* config (docs/
|
|
39
|
+
// Search-*provider* config (docs/06-search/index.md) —
|
|
40
40
|
// distinct from `listSearch` above. This drives the pluggable SearchProvider
|
|
41
41
|
// (full-text search in @byline/search-postgres) and offers richer options:
|
|
42
42
|
// per-field weighting/`boost`, `facets`, `filters`, and `zones`. Unlike
|
|
@@ -27,7 +27,7 @@ export const NewsCategories = defineCollection({
|
|
|
27
27
|
// mean" affordance that needs no indexing and no lifecycle hooks. Falls back
|
|
28
28
|
// to `useAsTitle` when omitted; declared explicitly here for guidance.
|
|
29
29
|
listSearch: ['name'],
|
|
30
|
-
// Search-*provider* config (docs/
|
|
30
|
+
// Search-*provider* config (docs/06-search/index.md) —
|
|
31
31
|
// distinct from `listSearch` above. This drives the pluggable SearchProvider
|
|
32
32
|
// (full-text search in @byline/search-postgres) and offers richer options:
|
|
33
33
|
// per-field weighting/`boost`, `facets`, `filters`, and `zones`. Unlike
|
|
@@ -38,7 +38,7 @@ export const Pages = defineCollection({
|
|
|
38
38
|
// mean" affordance that needs no indexing and no lifecycle hooks. Falls back
|
|
39
39
|
// to `useAsTitle` when omitted; declared explicitly here for guidance.
|
|
40
40
|
listSearch: ['title'],
|
|
41
|
-
// Search-*provider* config (docs/
|
|
41
|
+
// Search-*provider* config (docs/06-search/index.md) —
|
|
42
42
|
// distinct from `listSearch` above. This drives the pluggable SearchProvider
|
|
43
43
|
// (full-text search in @byline/search-postgres) and offers richer options:
|
|
44
44
|
// per-field weighting/`boost`, `facets`, `filters`, and `zones`. Unlike
|
|
@@ -317,7 +317,7 @@ async function processFile(
|
|
|
317
317
|
// Advertise the imported locale (editorial available-locales set), merged
|
|
318
318
|
// with whatever is already advertised so a later-locale re-import doesn't
|
|
319
319
|
// clobber an earlier one. The public set is still gated by the version
|
|
320
|
-
// completeness ledger (intersection). See docs/
|
|
320
|
+
// completeness ledger (intersection). See docs/08-internationalization/index.md.
|
|
321
321
|
availableLocales: [...new Set([...(existing.availableLocales ?? []), locale])],
|
|
322
322
|
})
|
|
323
323
|
await walkToStatus(handle, result.documentId, workflowStatuses, defaultStatus, desiredStatus)
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* pnpm tsx byline/scripts/re-anchor.ts --to fr --collection pages
|
|
21
21
|
* pnpm tsx byline/scripts/re-anchor.ts --to fr --dry-run
|
|
22
22
|
*
|
|
23
|
-
* See docs/
|
|
23
|
+
* See docs/08-internationalization/index.md.
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
import '../load-env.js'
|
|
@@ -103,7 +103,7 @@ async function buildBylineCore(): Promise<BylineCore<AdminStore>> {
|
|
|
103
103
|
// host's Drizzle migration stream. We run it deliberately here, rather
|
|
104
104
|
// than relying on the driver's `autoMigrate` option, so startup DDL is an
|
|
105
105
|
// explicit, awaited step. Reuses the adapter's pool — no second
|
|
106
|
-
// connection. See docs/
|
|
106
|
+
// connection. See docs/06-search/index.md.
|
|
107
107
|
//
|
|
108
108
|
// Wrapped defensively: a migration failure degrades search but must not
|
|
109
109
|
// take down the whole app at boot. We log loudly and continue. (For
|
|
@@ -233,7 +233,7 @@ async function buildBylineCore(): Promise<BylineCore<AdminStore>> {
|
|
|
233
233
|
// `body` fields to indexable text for `buildSearchDocument`. Pure
|
|
234
234
|
// JSON walk, no client. Required by any collection that lists a
|
|
235
235
|
// richText field in its `search.body`. See
|
|
236
|
-
// docs/
|
|
236
|
+
// docs/06-search/index.md.
|
|
237
237
|
toText: lexicalEditorToTextServer(),
|
|
238
238
|
},
|
|
239
239
|
},
|