@lukoweb/apitogo 0.1.5 → 0.1.7
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/cli/cli.js
CHANGED
|
@@ -3,7 +3,7 @@ import type { BuildConfig } from "./validators/BuildSchema.js";
|
|
|
3
3
|
import type { AuthenticationConfig, ZudokuConfig } from "./validators/ZudokuConfig.js";
|
|
4
4
|
export type ZudokuBuildConfig = BuildConfig;
|
|
5
5
|
export type LoadedConfig = ConfigWithMeta;
|
|
6
|
-
export type { ZudokuConfig };
|
|
6
|
+
export type { ZudokuConfig as ApitogoConfig };
|
|
7
7
|
export type ClerkAuthenticationConfig = Extract<AuthenticationConfig, {
|
|
8
8
|
type: "clerk";
|
|
9
9
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { ApitogoConfig, ZudokuBuildConfig } from "./config/config.js";
|
|
2
2
|
export { createPlugin } from "./config/create-plugin.js";
|
|
3
3
|
export type { InputNavigation as Navigation } from "./config/validators/InputNavigationSchema.js";
|
|
4
4
|
export type { SlotType } from "./lib/components/context/SlotProvider.js";
|
package/package.json
CHANGED
package/src/app/main.tsx
CHANGED
|
@@ -42,6 +42,9 @@ export const shikiReady: Promise<HighlighterCore> =
|
|
|
42
42
|
export const convertZudokuConfigToOptions = (
|
|
43
43
|
config: ZudokuConfig,
|
|
44
44
|
): ZudokuContextOptions => {
|
|
45
|
+
const siteTitle =
|
|
46
|
+
config.metadata?.applicationName ?? config.site?.title ?? "APIToGo";
|
|
47
|
+
|
|
45
48
|
return {
|
|
46
49
|
basePath: config.basePath,
|
|
47
50
|
canonicalUrlOrigin: config.canonicalUrlOrigin,
|
|
@@ -57,7 +60,9 @@ export const convertZudokuConfigToOptions = (
|
|
|
57
60
|
slots: config.slots,
|
|
58
61
|
metadata: {
|
|
59
62
|
favicon: "https://cdn.zudoku.dev/logos/favicon.svg",
|
|
60
|
-
|
|
63
|
+
applicationName: siteTitle,
|
|
64
|
+
defaultTitle: siteTitle,
|
|
65
|
+
title: `%s - ${siteTitle}`,
|
|
61
66
|
...config.metadata,
|
|
62
67
|
},
|
|
63
68
|
header: {
|
package/src/config/config.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type {
|
|
|
7
7
|
|
|
8
8
|
export type ZudokuBuildConfig = BuildConfig;
|
|
9
9
|
export type LoadedConfig = ConfigWithMeta;
|
|
10
|
-
export type { ZudokuConfig };
|
|
10
|
+
export type { ZudokuConfig as ApitogoConfig };
|
|
11
11
|
|
|
12
12
|
export type ClerkAuthenticationConfig = Extract<
|
|
13
13
|
AuthenticationConfig,
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { ApitogoConfig, ZudokuBuildConfig } from "./config/config.js";
|
|
2
2
|
export { createPlugin } from "./config/create-plugin.js";
|
|
3
3
|
export type { InputNavigation as Navigation } from "./config/validators/InputNavigationSchema.js";
|
|
4
4
|
export type { SlotType } from "./lib/components/context/SlotProvider.js";
|