@lexibase/rdx-types 2.1.0 → 2.3.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/README.md +1 -1
- package/dist/config.d.ts +14 -3
- package/dist/content.d.ts +9 -0
- package/dist/index.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/config.d.ts
CHANGED
|
@@ -27,6 +27,13 @@ export type RDXConfig = {
|
|
|
27
27
|
* @defaultValue false
|
|
28
28
|
*/
|
|
29
29
|
TOC?: boolean
|
|
30
|
+
/** Link live documentation pages to their source editor. Omit or set false to hide the link. */
|
|
31
|
+
editPage?:
|
|
32
|
+
| false
|
|
33
|
+
| {
|
|
34
|
+
/** Absolute HTTP(S) edit URL up to the RDX project root, including the branch and any monorepo subdirectory. */
|
|
35
|
+
baseUrl: string
|
|
36
|
+
}
|
|
30
37
|
/**
|
|
31
38
|
* Default HTML and social-preview description of the project.
|
|
32
39
|
* This does not replace descriptions authored in documents or the homepage.
|
|
@@ -68,12 +75,16 @@ export type RDXConfig = {
|
|
|
68
75
|
*/
|
|
69
76
|
title?: string
|
|
70
77
|
/**
|
|
71
|
-
*
|
|
72
|
-
*
|
|
78
|
+
* Image URL from public/, e.g. '/images/logo.png' or '/images/logo.svg',
|
|
79
|
+
* or an imported React component accepting className. Pass the component
|
|
80
|
+
* itself rather than JSX. Defaults to the RDX logo.
|
|
81
|
+
* Images retain their proportions and original colors in both themes.
|
|
82
|
+
* @example
|
|
83
|
+
* logo: '/images/logo.png'
|
|
73
84
|
* @example
|
|
74
85
|
* logo: MyLogo
|
|
75
86
|
*/
|
|
76
|
-
logo?: ComponentType<{ className?: string }>
|
|
87
|
+
logo?: string | ComponentType<{ className?: string }>
|
|
77
88
|
/** Optional GitHub link and theme toggle. Omitted actions remain hidden. */
|
|
78
89
|
actions?: {
|
|
79
90
|
/** Show the system/light/dark theme switcher in the navbar. */
|
package/dist/content.d.ts
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
export type RdxPageHighlight = 'important' | 'new'
|
|
2
|
+
|
|
1
3
|
export type RdxDocFrontmatter = {
|
|
2
4
|
title?: string
|
|
3
5
|
description?: string
|
|
6
|
+
order?: number
|
|
7
|
+
navTitle?: string
|
|
8
|
+
/** Show a semantic highlight next to the page in the sidebar. */
|
|
9
|
+
highlighting?: RdxPageHighlight
|
|
10
|
+
/** @deprecated Use order. */
|
|
4
11
|
link_position?: number
|
|
5
12
|
[key: string]: unknown
|
|
6
13
|
}
|
|
@@ -8,6 +15,8 @@ export type RdxDocFrontmatter = {
|
|
|
8
15
|
export type RdxDocPage = {
|
|
9
16
|
slug: string
|
|
10
17
|
title: string
|
|
18
|
+
navTitle?: string
|
|
19
|
+
highlighting?: RdxPageHighlight
|
|
11
20
|
description: string
|
|
12
21
|
position: number
|
|
13
22
|
sourcePath: string
|
package/dist/index.d.ts
CHANGED