@gitbook/api 0.158.0 → 0.159.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/client.d.ts +79 -0
- package/dist/constants.d.ts +1 -0
- package/dist/index.cjs +73 -1
- package/dist/index.js +71 -1
- package/package.json +1 -1
- package/spec/openapi.json +134 -0
- package/spec/openapi.yaml +106 -0
package/dist/client.d.ts
CHANGED
|
@@ -5181,6 +5181,76 @@ export declare enum CustomizationIconsStyle {
|
|
|
5181
5181
|
Light = "light",
|
|
5182
5182
|
Thin = "thin"
|
|
5183
5183
|
}
|
|
5184
|
+
export declare enum CustomizationCodeTheme {
|
|
5185
|
+
DefaultLight = "default-light",
|
|
5186
|
+
DefaultDark = "default-dark",
|
|
5187
|
+
MonochromeLight = "monochrome-light",
|
|
5188
|
+
MonochromeDark = "monochrome-dark",
|
|
5189
|
+
Andromeeda = "andromeeda",
|
|
5190
|
+
AuroraX = "aurora-x",
|
|
5191
|
+
AyuDark = "ayu-dark",
|
|
5192
|
+
CatppuccinFrappe = "catppuccin-frappe",
|
|
5193
|
+
CatppuccinLatte = "catppuccin-latte",
|
|
5194
|
+
CatppuccinMacchiato = "catppuccin-macchiato",
|
|
5195
|
+
CatppuccinMocha = "catppuccin-mocha",
|
|
5196
|
+
DarkPlus = "dark-plus",
|
|
5197
|
+
Dracula = "dracula",
|
|
5198
|
+
DraculaSoft = "dracula-soft",
|
|
5199
|
+
EverforestDark = "everforest-dark",
|
|
5200
|
+
EverforestLight = "everforest-light",
|
|
5201
|
+
GithubDark = "github-dark",
|
|
5202
|
+
GithubDarkDefault = "github-dark-default",
|
|
5203
|
+
GithubDarkDimmed = "github-dark-dimmed",
|
|
5204
|
+
GithubDarkHighContrast = "github-dark-high-contrast",
|
|
5205
|
+
GithubLight = "github-light",
|
|
5206
|
+
GithubLightDefault = "github-light-default",
|
|
5207
|
+
GithubLightHighContrast = "github-light-high-contrast",
|
|
5208
|
+
GruvboxDarkHard = "gruvbox-dark-hard",
|
|
5209
|
+
GruvboxDarkMedium = "gruvbox-dark-medium",
|
|
5210
|
+
GruvboxDarkSoft = "gruvbox-dark-soft",
|
|
5211
|
+
GruvboxLightHard = "gruvbox-light-hard",
|
|
5212
|
+
GruvboxLightMedium = "gruvbox-light-medium",
|
|
5213
|
+
GruvboxLightSoft = "gruvbox-light-soft",
|
|
5214
|
+
Houston = "houston",
|
|
5215
|
+
KanagawaDragon = "kanagawa-dragon",
|
|
5216
|
+
KanagawaLotus = "kanagawa-lotus",
|
|
5217
|
+
KanagawaWave = "kanagawa-wave",
|
|
5218
|
+
Laserwave = "laserwave",
|
|
5219
|
+
LightPlus = "light-plus",
|
|
5220
|
+
MaterialTheme = "material-theme",
|
|
5221
|
+
MaterialThemeDarker = "material-theme-darker",
|
|
5222
|
+
MaterialThemeLighter = "material-theme-lighter",
|
|
5223
|
+
MaterialThemeOcean = "material-theme-ocean",
|
|
5224
|
+
MaterialThemePalenight = "material-theme-palenight",
|
|
5225
|
+
MinDark = "min-dark",
|
|
5226
|
+
MinLight = "min-light",
|
|
5227
|
+
Monokai = "monokai",
|
|
5228
|
+
NightOwl = "night-owl",
|
|
5229
|
+
Nord = "nord",
|
|
5230
|
+
OneDarkPro = "one-dark-pro",
|
|
5231
|
+
OneLight = "one-light",
|
|
5232
|
+
Plastic = "plastic",
|
|
5233
|
+
Poimandres = "poimandres",
|
|
5234
|
+
Red = "red",
|
|
5235
|
+
RosePine = "rose-pine",
|
|
5236
|
+
RosePineDawn = "rose-pine-dawn",
|
|
5237
|
+
RosePineMoon = "rose-pine-moon",
|
|
5238
|
+
SlackDark = "slack-dark",
|
|
5239
|
+
SlackOchin = "slack-ochin",
|
|
5240
|
+
SnazzyLight = "snazzy-light",
|
|
5241
|
+
SolarizedDark = "solarized-dark",
|
|
5242
|
+
SolarizedLight = "solarized-light",
|
|
5243
|
+
Synthwave84 = "synthwave-84",
|
|
5244
|
+
TokyoNight = "tokyo-night",
|
|
5245
|
+
Vesper = "vesper",
|
|
5246
|
+
VitesseBlack = "vitesse-black",
|
|
5247
|
+
VitesseDark = "vitesse-dark",
|
|
5248
|
+
VitesseLight = "vitesse-light"
|
|
5249
|
+
}
|
|
5250
|
+
export interface CustomizationThemedCodeTheme {
|
|
5251
|
+
light: CustomizationCodeTheme;
|
|
5252
|
+
dark: CustomizationCodeTheme;
|
|
5253
|
+
}
|
|
5184
5254
|
/**
|
|
5185
5255
|
* - `default`: No background, content sits directly against sidebar edge.
|
|
5186
5256
|
* - `filled`: Muted background color that extends to sidebar edges.
|
|
@@ -5375,6 +5445,10 @@ export interface SiteCustomizationSettings {
|
|
|
5375
5445
|
*/
|
|
5376
5446
|
background: CustomizationBackground;
|
|
5377
5447
|
icons: CustomizationIconsStyle;
|
|
5448
|
+
codeTheme: {
|
|
5449
|
+
default: CustomizationThemedCodeTheme;
|
|
5450
|
+
openapi: CustomizationThemedCodeTheme;
|
|
5451
|
+
};
|
|
5378
5452
|
sidebar: {
|
|
5379
5453
|
/**
|
|
5380
5454
|
* - `default`: No background, content sits directly against sidebar edge.
|
|
@@ -13046,6 +13120,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
13046
13120
|
search?: CustomizationSearchStyle | null;
|
|
13047
13121
|
/** The style of background to use. Set to null to reset the override. */
|
|
13048
13122
|
background?: CustomizationBackground | null;
|
|
13123
|
+
/** The code theme to use. Set to null to reset the override. */
|
|
13124
|
+
codeTheme?: {
|
|
13125
|
+
default?: CustomizationThemedCodeTheme | null;
|
|
13126
|
+
openapi?: CustomizationThemedCodeTheme | null;
|
|
13127
|
+
};
|
|
13049
13128
|
};
|
|
13050
13129
|
/** @deprecated */
|
|
13051
13130
|
internationalization?: {
|
package/dist/constants.d.ts
CHANGED
|
@@ -114,6 +114,7 @@ export declare const CUSTOMIZATION_DEFAULT_FONT_ENUM: ["ABCFavorit", "Inter", "R
|
|
|
114
114
|
export declare const CUSTOMIZATION_DEFAULT_MONOSPACE_FONT_ENUM: ["FiraCode", "IBMPlexMono", "JetBrainsMono", "SourceCodePro", "RobotoMono", "SpaceMono", "DMMono", "Inconsolata"];
|
|
115
115
|
export declare const CUSTOMIZATION_BACKGROUND_ENUM: ["plain", "match"];
|
|
116
116
|
export declare const CUSTOMIZATION_ICONS_STYLE_ENUM: ["regular", "solid", "duotone", "light", "thin"];
|
|
117
|
+
export declare const CUSTOMIZATION_CODE_THEME_ENUM: ["default-light", "default-dark", "monochrome-light", "monochrome-dark", "andromeeda", "aurora-x", "ayu-dark", "catppuccin-frappe", "catppuccin-latte", "catppuccin-macchiato", "catppuccin-mocha", "dark-plus", "dracula", "dracula-soft", "everforest-dark", "everforest-light", "github-dark", "github-dark-default", "github-dark-dimmed", "github-dark-high-contrast", "github-light", "github-light-default", "github-light-high-contrast", "gruvbox-dark-hard", "gruvbox-dark-medium", "gruvbox-dark-soft", "gruvbox-light-hard", "gruvbox-light-medium", "gruvbox-light-soft", "houston", "kanagawa-dragon", "kanagawa-lotus", "kanagawa-wave", "laserwave", "light-plus", "material-theme", "material-theme-darker", "material-theme-lighter", "material-theme-ocean", "material-theme-palenight", "min-dark", "min-light", "monokai", "night-owl", "nord", "one-dark-pro", "one-light", "plastic", "poimandres", "red", "rose-pine", "rose-pine-dawn", "rose-pine-moon", "slack-dark", "slack-ochin", "snazzy-light", "solarized-dark", "solarized-light", "synthwave-84", "tokyo-night", "vesper", "vitesse-black", "vitesse-dark", "vitesse-light"];
|
|
117
118
|
export declare const CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM: ["default", "filled"];
|
|
118
119
|
export declare const CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM: ["default", "pill", "line"];
|
|
119
120
|
export declare const CUSTOMIZATION_SEARCH_STYLE_ENUM: ["prominent", "subtle"];
|
package/dist/index.cjs
CHANGED
|
@@ -227,6 +227,7 @@ __export(src_exports, {
|
|
|
227
227
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH: () => CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH,
|
|
228
228
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH: () => CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH,
|
|
229
229
|
CUSTOMIZATION_BACKGROUND_ENUM: () => CUSTOMIZATION_BACKGROUND_ENUM,
|
|
230
|
+
CUSTOMIZATION_CODE_THEME_ENUM: () => CUSTOMIZATION_CODE_THEME_ENUM,
|
|
230
231
|
CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH: () => CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH,
|
|
231
232
|
CUSTOMIZATION_CORNERS_ENUM: () => CUSTOMIZATION_CORNERS_ENUM,
|
|
232
233
|
CUSTOMIZATION_DEFAULT_FONT_ENUM: () => CUSTOMIZATION_DEFAULT_FONT_ENUM,
|
|
@@ -264,6 +265,7 @@ __export(src_exports, {
|
|
|
264
265
|
CustomHostnameSslStatus: () => CustomHostnameSslStatus,
|
|
265
266
|
CustomizationAIMode: () => CustomizationAIMode,
|
|
266
267
|
CustomizationBackground: () => CustomizationBackground,
|
|
268
|
+
CustomizationCodeTheme: () => CustomizationCodeTheme,
|
|
267
269
|
CustomizationCorners: () => CustomizationCorners,
|
|
268
270
|
CustomizationDefaultFont: () => CustomizationDefaultFont,
|
|
269
271
|
CustomizationDefaultMonospaceFont: () => CustomizationDefaultMonospaceFont,
|
|
@@ -453,7 +455,7 @@ module.exports = __toCommonJS(src_exports);
|
|
|
453
455
|
|
|
454
456
|
// package.json
|
|
455
457
|
var name = "@gitbook/api";
|
|
456
|
-
var version = "0.
|
|
458
|
+
var version = "0.159.0";
|
|
457
459
|
|
|
458
460
|
// src/client.ts
|
|
459
461
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -1047,6 +1049,73 @@ var CustomizationIconsStyle = /* @__PURE__ */ ((CustomizationIconsStyle2) => {
|
|
|
1047
1049
|
CustomizationIconsStyle2["Thin"] = "thin";
|
|
1048
1050
|
return CustomizationIconsStyle2;
|
|
1049
1051
|
})(CustomizationIconsStyle || {});
|
|
1052
|
+
var CustomizationCodeTheme = /* @__PURE__ */ ((CustomizationCodeTheme2) => {
|
|
1053
|
+
CustomizationCodeTheme2["DefaultLight"] = "default-light";
|
|
1054
|
+
CustomizationCodeTheme2["DefaultDark"] = "default-dark";
|
|
1055
|
+
CustomizationCodeTheme2["MonochromeLight"] = "monochrome-light";
|
|
1056
|
+
CustomizationCodeTheme2["MonochromeDark"] = "monochrome-dark";
|
|
1057
|
+
CustomizationCodeTheme2["Andromeeda"] = "andromeeda";
|
|
1058
|
+
CustomizationCodeTheme2["AuroraX"] = "aurora-x";
|
|
1059
|
+
CustomizationCodeTheme2["AyuDark"] = "ayu-dark";
|
|
1060
|
+
CustomizationCodeTheme2["CatppuccinFrappe"] = "catppuccin-frappe";
|
|
1061
|
+
CustomizationCodeTheme2["CatppuccinLatte"] = "catppuccin-latte";
|
|
1062
|
+
CustomizationCodeTheme2["CatppuccinMacchiato"] = "catppuccin-macchiato";
|
|
1063
|
+
CustomizationCodeTheme2["CatppuccinMocha"] = "catppuccin-mocha";
|
|
1064
|
+
CustomizationCodeTheme2["DarkPlus"] = "dark-plus";
|
|
1065
|
+
CustomizationCodeTheme2["Dracula"] = "dracula";
|
|
1066
|
+
CustomizationCodeTheme2["DraculaSoft"] = "dracula-soft";
|
|
1067
|
+
CustomizationCodeTheme2["EverforestDark"] = "everforest-dark";
|
|
1068
|
+
CustomizationCodeTheme2["EverforestLight"] = "everforest-light";
|
|
1069
|
+
CustomizationCodeTheme2["GithubDark"] = "github-dark";
|
|
1070
|
+
CustomizationCodeTheme2["GithubDarkDefault"] = "github-dark-default";
|
|
1071
|
+
CustomizationCodeTheme2["GithubDarkDimmed"] = "github-dark-dimmed";
|
|
1072
|
+
CustomizationCodeTheme2["GithubDarkHighContrast"] = "github-dark-high-contrast";
|
|
1073
|
+
CustomizationCodeTheme2["GithubLight"] = "github-light";
|
|
1074
|
+
CustomizationCodeTheme2["GithubLightDefault"] = "github-light-default";
|
|
1075
|
+
CustomizationCodeTheme2["GithubLightHighContrast"] = "github-light-high-contrast";
|
|
1076
|
+
CustomizationCodeTheme2["GruvboxDarkHard"] = "gruvbox-dark-hard";
|
|
1077
|
+
CustomizationCodeTheme2["GruvboxDarkMedium"] = "gruvbox-dark-medium";
|
|
1078
|
+
CustomizationCodeTheme2["GruvboxDarkSoft"] = "gruvbox-dark-soft";
|
|
1079
|
+
CustomizationCodeTheme2["GruvboxLightHard"] = "gruvbox-light-hard";
|
|
1080
|
+
CustomizationCodeTheme2["GruvboxLightMedium"] = "gruvbox-light-medium";
|
|
1081
|
+
CustomizationCodeTheme2["GruvboxLightSoft"] = "gruvbox-light-soft";
|
|
1082
|
+
CustomizationCodeTheme2["Houston"] = "houston";
|
|
1083
|
+
CustomizationCodeTheme2["KanagawaDragon"] = "kanagawa-dragon";
|
|
1084
|
+
CustomizationCodeTheme2["KanagawaLotus"] = "kanagawa-lotus";
|
|
1085
|
+
CustomizationCodeTheme2["KanagawaWave"] = "kanagawa-wave";
|
|
1086
|
+
CustomizationCodeTheme2["Laserwave"] = "laserwave";
|
|
1087
|
+
CustomizationCodeTheme2["LightPlus"] = "light-plus";
|
|
1088
|
+
CustomizationCodeTheme2["MaterialTheme"] = "material-theme";
|
|
1089
|
+
CustomizationCodeTheme2["MaterialThemeDarker"] = "material-theme-darker";
|
|
1090
|
+
CustomizationCodeTheme2["MaterialThemeLighter"] = "material-theme-lighter";
|
|
1091
|
+
CustomizationCodeTheme2["MaterialThemeOcean"] = "material-theme-ocean";
|
|
1092
|
+
CustomizationCodeTheme2["MaterialThemePalenight"] = "material-theme-palenight";
|
|
1093
|
+
CustomizationCodeTheme2["MinDark"] = "min-dark";
|
|
1094
|
+
CustomizationCodeTheme2["MinLight"] = "min-light";
|
|
1095
|
+
CustomizationCodeTheme2["Monokai"] = "monokai";
|
|
1096
|
+
CustomizationCodeTheme2["NightOwl"] = "night-owl";
|
|
1097
|
+
CustomizationCodeTheme2["Nord"] = "nord";
|
|
1098
|
+
CustomizationCodeTheme2["OneDarkPro"] = "one-dark-pro";
|
|
1099
|
+
CustomizationCodeTheme2["OneLight"] = "one-light";
|
|
1100
|
+
CustomizationCodeTheme2["Plastic"] = "plastic";
|
|
1101
|
+
CustomizationCodeTheme2["Poimandres"] = "poimandres";
|
|
1102
|
+
CustomizationCodeTheme2["Red"] = "red";
|
|
1103
|
+
CustomizationCodeTheme2["RosePine"] = "rose-pine";
|
|
1104
|
+
CustomizationCodeTheme2["RosePineDawn"] = "rose-pine-dawn";
|
|
1105
|
+
CustomizationCodeTheme2["RosePineMoon"] = "rose-pine-moon";
|
|
1106
|
+
CustomizationCodeTheme2["SlackDark"] = "slack-dark";
|
|
1107
|
+
CustomizationCodeTheme2["SlackOchin"] = "slack-ochin";
|
|
1108
|
+
CustomizationCodeTheme2["SnazzyLight"] = "snazzy-light";
|
|
1109
|
+
CustomizationCodeTheme2["SolarizedDark"] = "solarized-dark";
|
|
1110
|
+
CustomizationCodeTheme2["SolarizedLight"] = "solarized-light";
|
|
1111
|
+
CustomizationCodeTheme2["Synthwave84"] = "synthwave-84";
|
|
1112
|
+
CustomizationCodeTheme2["TokyoNight"] = "tokyo-night";
|
|
1113
|
+
CustomizationCodeTheme2["Vesper"] = "vesper";
|
|
1114
|
+
CustomizationCodeTheme2["VitesseBlack"] = "vitesse-black";
|
|
1115
|
+
CustomizationCodeTheme2["VitesseDark"] = "vitesse-dark";
|
|
1116
|
+
CustomizationCodeTheme2["VitesseLight"] = "vitesse-light";
|
|
1117
|
+
return CustomizationCodeTheme2;
|
|
1118
|
+
})(CustomizationCodeTheme || {});
|
|
1050
1119
|
var CustomizationSidebarBackgroundStyle = /* @__PURE__ */ ((CustomizationSidebarBackgroundStyle2) => {
|
|
1051
1120
|
CustomizationSidebarBackgroundStyle2["Default"] = "default";
|
|
1052
1121
|
CustomizationSidebarBackgroundStyle2["Filled"] = "filled";
|
|
@@ -4135,6 +4204,7 @@ var CUSTOMIZATION_DEFAULT_FONT_ENUM = ["ABCFavorit", "Inter", "Roboto", "RobotoS
|
|
|
4135
4204
|
var CUSTOMIZATION_DEFAULT_MONOSPACE_FONT_ENUM = ["FiraCode", "IBMPlexMono", "JetBrainsMono", "SourceCodePro", "RobotoMono", "SpaceMono", "DMMono", "Inconsolata"];
|
|
4136
4205
|
var CUSTOMIZATION_BACKGROUND_ENUM = ["plain", "match"];
|
|
4137
4206
|
var CUSTOMIZATION_ICONS_STYLE_ENUM = ["regular", "solid", "duotone", "light", "thin"];
|
|
4207
|
+
var CUSTOMIZATION_CODE_THEME_ENUM = ["default-light", "default-dark", "monochrome-light", "monochrome-dark", "andromeeda", "aurora-x", "ayu-dark", "catppuccin-frappe", "catppuccin-latte", "catppuccin-macchiato", "catppuccin-mocha", "dark-plus", "dracula", "dracula-soft", "everforest-dark", "everforest-light", "github-dark", "github-dark-default", "github-dark-dimmed", "github-dark-high-contrast", "github-light", "github-light-default", "github-light-high-contrast", "gruvbox-dark-hard", "gruvbox-dark-medium", "gruvbox-dark-soft", "gruvbox-light-hard", "gruvbox-light-medium", "gruvbox-light-soft", "houston", "kanagawa-dragon", "kanagawa-lotus", "kanagawa-wave", "laserwave", "light-plus", "material-theme", "material-theme-darker", "material-theme-lighter", "material-theme-ocean", "material-theme-palenight", "min-dark", "min-light", "monokai", "night-owl", "nord", "one-dark-pro", "one-light", "plastic", "poimandres", "red", "rose-pine", "rose-pine-dawn", "rose-pine-moon", "slack-dark", "slack-ochin", "snazzy-light", "solarized-dark", "solarized-light", "synthwave-84", "tokyo-night", "vesper", "vitesse-black", "vitesse-dark", "vitesse-light"];
|
|
4138
4208
|
var CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM = ["default", "filled"];
|
|
4139
4209
|
var CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM = ["default", "pill", "line"];
|
|
4140
4210
|
var CUSTOMIZATION_SEARCH_STYLE_ENUM = ["prominent", "subtle"];
|
|
@@ -4305,6 +4375,7 @@ var GitBookAPI = class extends Api {
|
|
|
4305
4375
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH,
|
|
4306
4376
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH,
|
|
4307
4377
|
CUSTOMIZATION_BACKGROUND_ENUM,
|
|
4378
|
+
CUSTOMIZATION_CODE_THEME_ENUM,
|
|
4308
4379
|
CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH,
|
|
4309
4380
|
CUSTOMIZATION_CORNERS_ENUM,
|
|
4310
4381
|
CUSTOMIZATION_DEFAULT_FONT_ENUM,
|
|
@@ -4342,6 +4413,7 @@ var GitBookAPI = class extends Api {
|
|
|
4342
4413
|
CustomHostnameSslStatus,
|
|
4343
4414
|
CustomizationAIMode,
|
|
4344
4415
|
CustomizationBackground,
|
|
4416
|
+
CustomizationCodeTheme,
|
|
4345
4417
|
CustomizationCorners,
|
|
4346
4418
|
CustomizationDefaultFont,
|
|
4347
4419
|
CustomizationDefaultMonospaceFont,
|
package/dist/index.js
CHANGED
|
@@ -172,7 +172,7 @@ var require_node = __commonJS({
|
|
|
172
172
|
|
|
173
173
|
// package.json
|
|
174
174
|
var name = "@gitbook/api";
|
|
175
|
-
var version = "0.
|
|
175
|
+
var version = "0.159.0";
|
|
176
176
|
|
|
177
177
|
// src/client.ts
|
|
178
178
|
var import_event_iterator = __toESM(require_node(), 1);
|
|
@@ -766,6 +766,73 @@ var CustomizationIconsStyle = /* @__PURE__ */ ((CustomizationIconsStyle2) => {
|
|
|
766
766
|
CustomizationIconsStyle2["Thin"] = "thin";
|
|
767
767
|
return CustomizationIconsStyle2;
|
|
768
768
|
})(CustomizationIconsStyle || {});
|
|
769
|
+
var CustomizationCodeTheme = /* @__PURE__ */ ((CustomizationCodeTheme2) => {
|
|
770
|
+
CustomizationCodeTheme2["DefaultLight"] = "default-light";
|
|
771
|
+
CustomizationCodeTheme2["DefaultDark"] = "default-dark";
|
|
772
|
+
CustomizationCodeTheme2["MonochromeLight"] = "monochrome-light";
|
|
773
|
+
CustomizationCodeTheme2["MonochromeDark"] = "monochrome-dark";
|
|
774
|
+
CustomizationCodeTheme2["Andromeeda"] = "andromeeda";
|
|
775
|
+
CustomizationCodeTheme2["AuroraX"] = "aurora-x";
|
|
776
|
+
CustomizationCodeTheme2["AyuDark"] = "ayu-dark";
|
|
777
|
+
CustomizationCodeTheme2["CatppuccinFrappe"] = "catppuccin-frappe";
|
|
778
|
+
CustomizationCodeTheme2["CatppuccinLatte"] = "catppuccin-latte";
|
|
779
|
+
CustomizationCodeTheme2["CatppuccinMacchiato"] = "catppuccin-macchiato";
|
|
780
|
+
CustomizationCodeTheme2["CatppuccinMocha"] = "catppuccin-mocha";
|
|
781
|
+
CustomizationCodeTheme2["DarkPlus"] = "dark-plus";
|
|
782
|
+
CustomizationCodeTheme2["Dracula"] = "dracula";
|
|
783
|
+
CustomizationCodeTheme2["DraculaSoft"] = "dracula-soft";
|
|
784
|
+
CustomizationCodeTheme2["EverforestDark"] = "everforest-dark";
|
|
785
|
+
CustomizationCodeTheme2["EverforestLight"] = "everforest-light";
|
|
786
|
+
CustomizationCodeTheme2["GithubDark"] = "github-dark";
|
|
787
|
+
CustomizationCodeTheme2["GithubDarkDefault"] = "github-dark-default";
|
|
788
|
+
CustomizationCodeTheme2["GithubDarkDimmed"] = "github-dark-dimmed";
|
|
789
|
+
CustomizationCodeTheme2["GithubDarkHighContrast"] = "github-dark-high-contrast";
|
|
790
|
+
CustomizationCodeTheme2["GithubLight"] = "github-light";
|
|
791
|
+
CustomizationCodeTheme2["GithubLightDefault"] = "github-light-default";
|
|
792
|
+
CustomizationCodeTheme2["GithubLightHighContrast"] = "github-light-high-contrast";
|
|
793
|
+
CustomizationCodeTheme2["GruvboxDarkHard"] = "gruvbox-dark-hard";
|
|
794
|
+
CustomizationCodeTheme2["GruvboxDarkMedium"] = "gruvbox-dark-medium";
|
|
795
|
+
CustomizationCodeTheme2["GruvboxDarkSoft"] = "gruvbox-dark-soft";
|
|
796
|
+
CustomizationCodeTheme2["GruvboxLightHard"] = "gruvbox-light-hard";
|
|
797
|
+
CustomizationCodeTheme2["GruvboxLightMedium"] = "gruvbox-light-medium";
|
|
798
|
+
CustomizationCodeTheme2["GruvboxLightSoft"] = "gruvbox-light-soft";
|
|
799
|
+
CustomizationCodeTheme2["Houston"] = "houston";
|
|
800
|
+
CustomizationCodeTheme2["KanagawaDragon"] = "kanagawa-dragon";
|
|
801
|
+
CustomizationCodeTheme2["KanagawaLotus"] = "kanagawa-lotus";
|
|
802
|
+
CustomizationCodeTheme2["KanagawaWave"] = "kanagawa-wave";
|
|
803
|
+
CustomizationCodeTheme2["Laserwave"] = "laserwave";
|
|
804
|
+
CustomizationCodeTheme2["LightPlus"] = "light-plus";
|
|
805
|
+
CustomizationCodeTheme2["MaterialTheme"] = "material-theme";
|
|
806
|
+
CustomizationCodeTheme2["MaterialThemeDarker"] = "material-theme-darker";
|
|
807
|
+
CustomizationCodeTheme2["MaterialThemeLighter"] = "material-theme-lighter";
|
|
808
|
+
CustomizationCodeTheme2["MaterialThemeOcean"] = "material-theme-ocean";
|
|
809
|
+
CustomizationCodeTheme2["MaterialThemePalenight"] = "material-theme-palenight";
|
|
810
|
+
CustomizationCodeTheme2["MinDark"] = "min-dark";
|
|
811
|
+
CustomizationCodeTheme2["MinLight"] = "min-light";
|
|
812
|
+
CustomizationCodeTheme2["Monokai"] = "monokai";
|
|
813
|
+
CustomizationCodeTheme2["NightOwl"] = "night-owl";
|
|
814
|
+
CustomizationCodeTheme2["Nord"] = "nord";
|
|
815
|
+
CustomizationCodeTheme2["OneDarkPro"] = "one-dark-pro";
|
|
816
|
+
CustomizationCodeTheme2["OneLight"] = "one-light";
|
|
817
|
+
CustomizationCodeTheme2["Plastic"] = "plastic";
|
|
818
|
+
CustomizationCodeTheme2["Poimandres"] = "poimandres";
|
|
819
|
+
CustomizationCodeTheme2["Red"] = "red";
|
|
820
|
+
CustomizationCodeTheme2["RosePine"] = "rose-pine";
|
|
821
|
+
CustomizationCodeTheme2["RosePineDawn"] = "rose-pine-dawn";
|
|
822
|
+
CustomizationCodeTheme2["RosePineMoon"] = "rose-pine-moon";
|
|
823
|
+
CustomizationCodeTheme2["SlackDark"] = "slack-dark";
|
|
824
|
+
CustomizationCodeTheme2["SlackOchin"] = "slack-ochin";
|
|
825
|
+
CustomizationCodeTheme2["SnazzyLight"] = "snazzy-light";
|
|
826
|
+
CustomizationCodeTheme2["SolarizedDark"] = "solarized-dark";
|
|
827
|
+
CustomizationCodeTheme2["SolarizedLight"] = "solarized-light";
|
|
828
|
+
CustomizationCodeTheme2["Synthwave84"] = "synthwave-84";
|
|
829
|
+
CustomizationCodeTheme2["TokyoNight"] = "tokyo-night";
|
|
830
|
+
CustomizationCodeTheme2["Vesper"] = "vesper";
|
|
831
|
+
CustomizationCodeTheme2["VitesseBlack"] = "vitesse-black";
|
|
832
|
+
CustomizationCodeTheme2["VitesseDark"] = "vitesse-dark";
|
|
833
|
+
CustomizationCodeTheme2["VitesseLight"] = "vitesse-light";
|
|
834
|
+
return CustomizationCodeTheme2;
|
|
835
|
+
})(CustomizationCodeTheme || {});
|
|
769
836
|
var CustomizationSidebarBackgroundStyle = /* @__PURE__ */ ((CustomizationSidebarBackgroundStyle2) => {
|
|
770
837
|
CustomizationSidebarBackgroundStyle2["Default"] = "default";
|
|
771
838
|
CustomizationSidebarBackgroundStyle2["Filled"] = "filled";
|
|
@@ -3854,6 +3921,7 @@ var CUSTOMIZATION_DEFAULT_FONT_ENUM = ["ABCFavorit", "Inter", "Roboto", "RobotoS
|
|
|
3854
3921
|
var CUSTOMIZATION_DEFAULT_MONOSPACE_FONT_ENUM = ["FiraCode", "IBMPlexMono", "JetBrainsMono", "SourceCodePro", "RobotoMono", "SpaceMono", "DMMono", "Inconsolata"];
|
|
3855
3922
|
var CUSTOMIZATION_BACKGROUND_ENUM = ["plain", "match"];
|
|
3856
3923
|
var CUSTOMIZATION_ICONS_STYLE_ENUM = ["regular", "solid", "duotone", "light", "thin"];
|
|
3924
|
+
var CUSTOMIZATION_CODE_THEME_ENUM = ["default-light", "default-dark", "monochrome-light", "monochrome-dark", "andromeeda", "aurora-x", "ayu-dark", "catppuccin-frappe", "catppuccin-latte", "catppuccin-macchiato", "catppuccin-mocha", "dark-plus", "dracula", "dracula-soft", "everforest-dark", "everforest-light", "github-dark", "github-dark-default", "github-dark-dimmed", "github-dark-high-contrast", "github-light", "github-light-default", "github-light-high-contrast", "gruvbox-dark-hard", "gruvbox-dark-medium", "gruvbox-dark-soft", "gruvbox-light-hard", "gruvbox-light-medium", "gruvbox-light-soft", "houston", "kanagawa-dragon", "kanagawa-lotus", "kanagawa-wave", "laserwave", "light-plus", "material-theme", "material-theme-darker", "material-theme-lighter", "material-theme-ocean", "material-theme-palenight", "min-dark", "min-light", "monokai", "night-owl", "nord", "one-dark-pro", "one-light", "plastic", "poimandres", "red", "rose-pine", "rose-pine-dawn", "rose-pine-moon", "slack-dark", "slack-ochin", "snazzy-light", "solarized-dark", "solarized-light", "synthwave-84", "tokyo-night", "vesper", "vitesse-black", "vitesse-dark", "vitesse-light"];
|
|
3857
3925
|
var CUSTOMIZATION_SIDEBAR_BACKGROUND_STYLE_ENUM = ["default", "filled"];
|
|
3858
3926
|
var CUSTOMIZATION_SIDEBAR_LIST_STYLE_ENUM = ["default", "pill", "line"];
|
|
3859
3927
|
var CUSTOMIZATION_SEARCH_STYLE_ENUM = ["prominent", "subtle"];
|
|
@@ -4023,6 +4091,7 @@ export {
|
|
|
4023
4091
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MAX_LENGTH,
|
|
4024
4092
|
CUSTOMIZATION_ANNOUNCEMENT_MESSAGE_MIN_LENGTH,
|
|
4025
4093
|
CUSTOMIZATION_BACKGROUND_ENUM,
|
|
4094
|
+
CUSTOMIZATION_CODE_THEME_ENUM,
|
|
4026
4095
|
CUSTOMIZATION_CONTENT_LINK_TITLE_MAX_LENGTH,
|
|
4027
4096
|
CUSTOMIZATION_CORNERS_ENUM,
|
|
4028
4097
|
CUSTOMIZATION_DEFAULT_FONT_ENUM,
|
|
@@ -4060,6 +4129,7 @@ export {
|
|
|
4060
4129
|
CustomHostnameSslStatus,
|
|
4061
4130
|
CustomizationAIMode,
|
|
4062
4131
|
CustomizationBackground,
|
|
4132
|
+
CustomizationCodeTheme,
|
|
4063
4133
|
CustomizationCorners,
|
|
4064
4134
|
CustomizationDefaultFont,
|
|
4065
4135
|
CustomizationDefaultMonospaceFont,
|
package/package.json
CHANGED
package/spec/openapi.json
CHANGED
|
@@ -14819,6 +14819,40 @@
|
|
|
14819
14819
|
]
|
|
14820
14820
|
}
|
|
14821
14821
|
]
|
|
14822
|
+
},
|
|
14823
|
+
"codeTheme": {
|
|
14824
|
+
"description": "The code theme to use. Set to null to reset the override.",
|
|
14825
|
+
"type": "object",
|
|
14826
|
+
"properties": {
|
|
14827
|
+
"default": {
|
|
14828
|
+
"oneOf": [
|
|
14829
|
+
{
|
|
14830
|
+
"$ref": "#/components/schemas/CustomizationThemedCodeTheme"
|
|
14831
|
+
},
|
|
14832
|
+
{
|
|
14833
|
+
"type": "string",
|
|
14834
|
+
"nullable": true,
|
|
14835
|
+
"enum": [
|
|
14836
|
+
null
|
|
14837
|
+
]
|
|
14838
|
+
}
|
|
14839
|
+
]
|
|
14840
|
+
},
|
|
14841
|
+
"openapi": {
|
|
14842
|
+
"oneOf": [
|
|
14843
|
+
{
|
|
14844
|
+
"$ref": "#/components/schemas/CustomizationThemedCodeTheme"
|
|
14845
|
+
},
|
|
14846
|
+
{
|
|
14847
|
+
"type": "string",
|
|
14848
|
+
"nullable": true,
|
|
14849
|
+
"enum": [
|
|
14850
|
+
null
|
|
14851
|
+
]
|
|
14852
|
+
}
|
|
14853
|
+
]
|
|
14854
|
+
}
|
|
14855
|
+
}
|
|
14822
14856
|
}
|
|
14823
14857
|
}
|
|
14824
14858
|
},
|
|
@@ -34157,6 +34191,90 @@
|
|
|
34157
34191
|
"thin"
|
|
34158
34192
|
]
|
|
34159
34193
|
},
|
|
34194
|
+
"CustomizationCodeTheme": {
|
|
34195
|
+
"type": "string",
|
|
34196
|
+
"enum": [
|
|
34197
|
+
"default-light",
|
|
34198
|
+
"default-dark",
|
|
34199
|
+
"monochrome-light",
|
|
34200
|
+
"monochrome-dark",
|
|
34201
|
+
"andromeeda",
|
|
34202
|
+
"aurora-x",
|
|
34203
|
+
"ayu-dark",
|
|
34204
|
+
"catppuccin-frappe",
|
|
34205
|
+
"catppuccin-latte",
|
|
34206
|
+
"catppuccin-macchiato",
|
|
34207
|
+
"catppuccin-mocha",
|
|
34208
|
+
"dark-plus",
|
|
34209
|
+
"dracula",
|
|
34210
|
+
"dracula-soft",
|
|
34211
|
+
"everforest-dark",
|
|
34212
|
+
"everforest-light",
|
|
34213
|
+
"github-dark",
|
|
34214
|
+
"github-dark-default",
|
|
34215
|
+
"github-dark-dimmed",
|
|
34216
|
+
"github-dark-high-contrast",
|
|
34217
|
+
"github-light",
|
|
34218
|
+
"github-light-default",
|
|
34219
|
+
"github-light-high-contrast",
|
|
34220
|
+
"gruvbox-dark-hard",
|
|
34221
|
+
"gruvbox-dark-medium",
|
|
34222
|
+
"gruvbox-dark-soft",
|
|
34223
|
+
"gruvbox-light-hard",
|
|
34224
|
+
"gruvbox-light-medium",
|
|
34225
|
+
"gruvbox-light-soft",
|
|
34226
|
+
"houston",
|
|
34227
|
+
"kanagawa-dragon",
|
|
34228
|
+
"kanagawa-lotus",
|
|
34229
|
+
"kanagawa-wave",
|
|
34230
|
+
"laserwave",
|
|
34231
|
+
"light-plus",
|
|
34232
|
+
"material-theme",
|
|
34233
|
+
"material-theme-darker",
|
|
34234
|
+
"material-theme-lighter",
|
|
34235
|
+
"material-theme-ocean",
|
|
34236
|
+
"material-theme-palenight",
|
|
34237
|
+
"min-dark",
|
|
34238
|
+
"min-light",
|
|
34239
|
+
"monokai",
|
|
34240
|
+
"night-owl",
|
|
34241
|
+
"nord",
|
|
34242
|
+
"one-dark-pro",
|
|
34243
|
+
"one-light",
|
|
34244
|
+
"plastic",
|
|
34245
|
+
"poimandres",
|
|
34246
|
+
"red",
|
|
34247
|
+
"rose-pine",
|
|
34248
|
+
"rose-pine-dawn",
|
|
34249
|
+
"rose-pine-moon",
|
|
34250
|
+
"slack-dark",
|
|
34251
|
+
"slack-ochin",
|
|
34252
|
+
"snazzy-light",
|
|
34253
|
+
"solarized-dark",
|
|
34254
|
+
"solarized-light",
|
|
34255
|
+
"synthwave-84",
|
|
34256
|
+
"tokyo-night",
|
|
34257
|
+
"vesper",
|
|
34258
|
+
"vitesse-black",
|
|
34259
|
+
"vitesse-dark",
|
|
34260
|
+
"vitesse-light"
|
|
34261
|
+
]
|
|
34262
|
+
},
|
|
34263
|
+
"CustomizationThemedCodeTheme": {
|
|
34264
|
+
"type": "object",
|
|
34265
|
+
"properties": {
|
|
34266
|
+
"light": {
|
|
34267
|
+
"$ref": "#/components/schemas/CustomizationCodeTheme"
|
|
34268
|
+
},
|
|
34269
|
+
"dark": {
|
|
34270
|
+
"$ref": "#/components/schemas/CustomizationCodeTheme"
|
|
34271
|
+
}
|
|
34272
|
+
},
|
|
34273
|
+
"required": [
|
|
34274
|
+
"light",
|
|
34275
|
+
"dark"
|
|
34276
|
+
]
|
|
34277
|
+
},
|
|
34160
34278
|
"CustomizationSidebarBackgroundStyle": {
|
|
34161
34279
|
"type": "string",
|
|
34162
34280
|
"description": "- `default`: No background, content sits directly against sidebar edge.\n- `filled`: Muted background color that extends to sidebar edges.\n",
|
|
@@ -34481,6 +34599,21 @@
|
|
|
34481
34599
|
"icons": {
|
|
34482
34600
|
"$ref": "#/components/schemas/CustomizationIconsStyle"
|
|
34483
34601
|
},
|
|
34602
|
+
"codeTheme": {
|
|
34603
|
+
"type": "object",
|
|
34604
|
+
"properties": {
|
|
34605
|
+
"default": {
|
|
34606
|
+
"$ref": "#/components/schemas/CustomizationThemedCodeTheme"
|
|
34607
|
+
},
|
|
34608
|
+
"openapi": {
|
|
34609
|
+
"$ref": "#/components/schemas/CustomizationThemedCodeTheme"
|
|
34610
|
+
}
|
|
34611
|
+
},
|
|
34612
|
+
"required": [
|
|
34613
|
+
"default",
|
|
34614
|
+
"openapi"
|
|
34615
|
+
]
|
|
34616
|
+
},
|
|
34484
34617
|
"sidebar": {
|
|
34485
34618
|
"type": "object",
|
|
34486
34619
|
"properties": {
|
|
@@ -34512,6 +34645,7 @@
|
|
|
34512
34645
|
"links",
|
|
34513
34646
|
"font",
|
|
34514
34647
|
"monospaceFont",
|
|
34648
|
+
"codeTheme",
|
|
34515
34649
|
"background",
|
|
34516
34650
|
"icons",
|
|
34517
34651
|
"sidebar",
|
package/spec/openapi.yaml
CHANGED
|
@@ -8380,6 +8380,24 @@ paths:
|
|
|
8380
8380
|
nullable: true
|
|
8381
8381
|
enum:
|
|
8382
8382
|
- null
|
|
8383
|
+
codeTheme:
|
|
8384
|
+
description: The code theme to use. Set to null to reset the override.
|
|
8385
|
+
type: object
|
|
8386
|
+
properties:
|
|
8387
|
+
default:
|
|
8388
|
+
oneOf:
|
|
8389
|
+
- $ref: "#/components/schemas/CustomizationThemedCodeTheme"
|
|
8390
|
+
- type: string
|
|
8391
|
+
nullable: true
|
|
8392
|
+
enum:
|
|
8393
|
+
- null
|
|
8394
|
+
openapi:
|
|
8395
|
+
oneOf:
|
|
8396
|
+
- $ref: "#/components/schemas/CustomizationThemedCodeTheme"
|
|
8397
|
+
- type: string
|
|
8398
|
+
nullable: true
|
|
8399
|
+
enum:
|
|
8400
|
+
- null
|
|
8383
8401
|
internationalization:
|
|
8384
8402
|
type: object
|
|
8385
8403
|
deprecated: true
|
|
@@ -21043,6 +21061,83 @@ components:
|
|
|
21043
21061
|
- duotone
|
|
21044
21062
|
- light
|
|
21045
21063
|
- thin
|
|
21064
|
+
CustomizationCodeTheme:
|
|
21065
|
+
type: string
|
|
21066
|
+
enum:
|
|
21067
|
+
- default-light
|
|
21068
|
+
- default-dark
|
|
21069
|
+
- monochrome-light
|
|
21070
|
+
- monochrome-dark
|
|
21071
|
+
- andromeeda
|
|
21072
|
+
- aurora-x
|
|
21073
|
+
- ayu-dark
|
|
21074
|
+
- catppuccin-frappe
|
|
21075
|
+
- catppuccin-latte
|
|
21076
|
+
- catppuccin-macchiato
|
|
21077
|
+
- catppuccin-mocha
|
|
21078
|
+
- dark-plus
|
|
21079
|
+
- dracula
|
|
21080
|
+
- dracula-soft
|
|
21081
|
+
- everforest-dark
|
|
21082
|
+
- everforest-light
|
|
21083
|
+
- github-dark
|
|
21084
|
+
- github-dark-default
|
|
21085
|
+
- github-dark-dimmed
|
|
21086
|
+
- github-dark-high-contrast
|
|
21087
|
+
- github-light
|
|
21088
|
+
- github-light-default
|
|
21089
|
+
- github-light-high-contrast
|
|
21090
|
+
- gruvbox-dark-hard
|
|
21091
|
+
- gruvbox-dark-medium
|
|
21092
|
+
- gruvbox-dark-soft
|
|
21093
|
+
- gruvbox-light-hard
|
|
21094
|
+
- gruvbox-light-medium
|
|
21095
|
+
- gruvbox-light-soft
|
|
21096
|
+
- houston
|
|
21097
|
+
- kanagawa-dragon
|
|
21098
|
+
- kanagawa-lotus
|
|
21099
|
+
- kanagawa-wave
|
|
21100
|
+
- laserwave
|
|
21101
|
+
- light-plus
|
|
21102
|
+
- material-theme
|
|
21103
|
+
- material-theme-darker
|
|
21104
|
+
- material-theme-lighter
|
|
21105
|
+
- material-theme-ocean
|
|
21106
|
+
- material-theme-palenight
|
|
21107
|
+
- min-dark
|
|
21108
|
+
- min-light
|
|
21109
|
+
- monokai
|
|
21110
|
+
- night-owl
|
|
21111
|
+
- nord
|
|
21112
|
+
- one-dark-pro
|
|
21113
|
+
- one-light
|
|
21114
|
+
- plastic
|
|
21115
|
+
- poimandres
|
|
21116
|
+
- red
|
|
21117
|
+
- rose-pine
|
|
21118
|
+
- rose-pine-dawn
|
|
21119
|
+
- rose-pine-moon
|
|
21120
|
+
- slack-dark
|
|
21121
|
+
- slack-ochin
|
|
21122
|
+
- snazzy-light
|
|
21123
|
+
- solarized-dark
|
|
21124
|
+
- solarized-light
|
|
21125
|
+
- synthwave-84
|
|
21126
|
+
- tokyo-night
|
|
21127
|
+
- vesper
|
|
21128
|
+
- vitesse-black
|
|
21129
|
+
- vitesse-dark
|
|
21130
|
+
- vitesse-light
|
|
21131
|
+
CustomizationThemedCodeTheme:
|
|
21132
|
+
type: object
|
|
21133
|
+
properties:
|
|
21134
|
+
light:
|
|
21135
|
+
$ref: "#/components/schemas/CustomizationCodeTheme"
|
|
21136
|
+
dark:
|
|
21137
|
+
$ref: "#/components/schemas/CustomizationCodeTheme"
|
|
21138
|
+
required:
|
|
21139
|
+
- light
|
|
21140
|
+
- dark
|
|
21046
21141
|
CustomizationSidebarBackgroundStyle:
|
|
21047
21142
|
type: string
|
|
21048
21143
|
description: |
|
|
@@ -21293,6 +21388,16 @@ components:
|
|
|
21293
21388
|
$ref: "#/components/schemas/CustomizationBackground"
|
|
21294
21389
|
icons:
|
|
21295
21390
|
$ref: "#/components/schemas/CustomizationIconsStyle"
|
|
21391
|
+
codeTheme:
|
|
21392
|
+
type: object
|
|
21393
|
+
properties:
|
|
21394
|
+
default:
|
|
21395
|
+
$ref: "#/components/schemas/CustomizationThemedCodeTheme"
|
|
21396
|
+
openapi:
|
|
21397
|
+
$ref: "#/components/schemas/CustomizationThemedCodeTheme"
|
|
21398
|
+
required:
|
|
21399
|
+
- default
|
|
21400
|
+
- openapi
|
|
21296
21401
|
sidebar:
|
|
21297
21402
|
type: object
|
|
21298
21403
|
properties:
|
|
@@ -21317,6 +21422,7 @@ components:
|
|
|
21317
21422
|
- links
|
|
21318
21423
|
- font
|
|
21319
21424
|
- monospaceFont
|
|
21425
|
+
- codeTheme
|
|
21320
21426
|
- background
|
|
21321
21427
|
- icons
|
|
21322
21428
|
- sidebar
|