@lexibase/rdx-types 1.1.0 → 1.2.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/config.d.ts CHANGED
@@ -34,8 +34,9 @@ export type RDXConfig = {
34
34
  */
35
35
  description?: string
36
36
  /**
37
- * HTML document language, such as 'en' or 'pt-BR'.
38
- * This does not automatically translate the interface or documentation.
37
+ * HTML document language and built-in interface translations, such as 'en' or 'pt-BR'.
38
+ * Portuguese locales use Brazilian Portuguese labels; unsupported languages use English.
39
+ * Document content and author-provided labels remain as written.
39
40
  * @defaultValue 'en'
40
41
  */
41
42
  lang?: string
@@ -195,9 +196,9 @@ export type RdxMetadata = {
195
196
  }
196
197
  /** Optional Open Graph link previews. No fixed URL is applied to every page. */
197
198
  openGraph?: {
198
- /** Preview title override; defaults to metadata.applicationName. */
199
+ /** Site preview title; defaults to applicationName. Docs pages use their page title. */
199
200
  title?: string
200
- /** Preview description override; defaults to the root description. */
201
+ /** Site preview description; docs use their page description or the root description. */
201
202
  description?: string
202
203
  /** Optional site name shown by platforms that support it. */
203
204
  siteName?: string
@@ -221,9 +222,9 @@ export type RdxMetadata = {
221
222
  twitter?: {
222
223
  /** Text-oriented summary or a large-image preview card. */
223
224
  card?: 'summary' | 'summary_large_image'
224
- /** Card title override; defaults to metadata.applicationName. */
225
+ /** Site card title; defaults to applicationName. Docs pages use their page title. */
225
226
  title?: string
226
- /** Card description override; defaults to the root description. */
227
+ /** Site card description; docs use their page description or the root description. */
227
228
  description?: string
228
229
  /** Account associated with the site, usually '@account'. */
229
230
  site?: string
package/dist/plugins.d.ts CHANGED
@@ -7,6 +7,8 @@ export type RdxContentSource = {
7
7
  docsDir: string
8
8
  routePrefix: string
9
9
  badge?: string
10
+ /** Canonical route prefix to redirect this historical source to. */
11
+ redirectTo?: string
10
12
  }
11
13
 
12
14
  export type RdxPluginContext = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexibase/rdx-types",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "license": "MIT",
5
5
  "description": "Shared TypeScript types for RDX documentation projects.",
6
6
  "types": "./dist/index.d.ts",