@lexibase/rdx-types 2.2.0 → 2.4.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 +19 -0
- package/dist/content.d.ts +9 -0
- package/dist/index.d.ts +1 -0
- package/dist/plugins.d.ts +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/config.d.ts
CHANGED
|
@@ -21,12 +21,31 @@ export type RDXConfig = {
|
|
|
21
21
|
* @defaultValue false
|
|
22
22
|
*/
|
|
23
23
|
search?: boolean
|
|
24
|
+
/** Syntax highlighting for Markdown code blocks. */
|
|
25
|
+
syntaxHighlighting?: {
|
|
26
|
+
/** Project-relative TextMate JSON files keyed by the fence language. */
|
|
27
|
+
languages?: Record<string, string>
|
|
28
|
+
/** Bundled Shiki theme names for each site appearance. */
|
|
29
|
+
themes?: {
|
|
30
|
+
/** @defaultValue 'github-light' */
|
|
31
|
+
light?: string
|
|
32
|
+
/** @defaultValue 'github-dark' */
|
|
33
|
+
dark?: string
|
|
34
|
+
}
|
|
35
|
+
}
|
|
24
36
|
/**
|
|
25
37
|
* Enable floating heading navigation on documentation pages.
|
|
26
38
|
* Hidden when a page has too few sections to navigate.
|
|
27
39
|
* @defaultValue false
|
|
28
40
|
*/
|
|
29
41
|
TOC?: boolean
|
|
42
|
+
/** Link live documentation pages to their source editor. Omit or set false to hide the link. */
|
|
43
|
+
editPage?:
|
|
44
|
+
| false
|
|
45
|
+
| {
|
|
46
|
+
/** Absolute HTTP(S) edit URL up to the RDX project root, including the branch and any monorepo subdirectory. */
|
|
47
|
+
baseUrl: string
|
|
48
|
+
}
|
|
30
49
|
/**
|
|
31
50
|
* Default HTML and social-preview description of the project.
|
|
32
51
|
* This does not replace descriptions authored in documents or the homepage.
|
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
package/dist/plugins.d.ts
CHANGED
|
@@ -93,8 +93,10 @@ export type RdxProject = {
|
|
|
93
93
|
config: ResolvedRdxConfig
|
|
94
94
|
sources: RdxContentSource[]
|
|
95
95
|
commands: RdxPluginCommand[]
|
|
96
|
-
/** Project-relative files
|
|
96
|
+
/** Project-relative files needed when serving deployed documentation. */
|
|
97
97
|
runtimeFiles: string[]
|
|
98
|
+
/** Parsed project-owned TextMate grammars, registered under their fence names. */
|
|
99
|
+
syntaxGrammars?: { name: string; scopeName: string; patterns: unknown[] }[]
|
|
98
100
|
localization?: RdxLocalization
|
|
99
101
|
/** Selected locale on a request-scoped view, never a global mutable setting. */
|
|
100
102
|
locale?: RdxLocale
|