Skip to main content

Public exports

Exact package entry points, runtime values, and TypeScript types published by Ginko Docs.

Ginko Docs publishes four entry points. Import only from these paths; files inside the package are implementation details.

Entry pointPublic surface
@lupinum/ginko-docsNuxt layer entry used in extends
@lupinum/ginko-docs/contentdefineGinkoDocsConfig and its TypeScript option type
@lupinum/ginko-docs/app-configApp-configuration types
@lupinum/ginko-docs/componentsBuilt-in tag map, component policy, component names, and related types

Nuxt layer entry

Add the root export to Nuxt's extends array:

nuxt.config.ts
export default defineNuxtConfig({
  extends: ["@lupinum/ginko-docs"],
});

The entry is the layer configuration, not a collection of application composables. It installs the layer's modules, routes, layouts, components, styles, and defaults through Nuxt's layer mechanism.

Content entry

content.config.ts
import { defineGinkoDocsConfig } from "@lupinum/ginko-docs/content";
import type { GinkoDocsContentOptions } from "@lupinum/ginko-docs/content";
ExportKindPurpose
defineGinkoDocsConfigFunctionCreates the docs-only or docs-and-blog Ginko Content configuration
GinkoDocsContentOptionsTypeFactory input with site, locale, and blog options

The package maps TypeScript tooling to content.ts and JavaScript runtimes to the generated content.js. Consumers use the same entry point for both; do not import either source file directly.

App-config types

App-config types
import type {
  GinkoDocsAppConfig,
  GinkoDocsHeroCodeTab,
  GinkoDocsHeroMedia,
  GinkoDocsLink,
  GinkoDocsLocalizedText,
  GinkoDocsNeutralPalette,
  GinkoDocsPrimaryPalette,
} from "@lupinum/ginko-docs/app-config";

This entry exports types only:

ExportDescribes
GinkoDocsLocalizedTextA string or { en: string; de?: string } localized values
GinkoDocsNeutralPaletteBuilt-in and custom neutral-palette names
GinkoDocsPrimaryPaletteBuilt-in and custom primary-palette names
GinkoDocsLinkLocalized label and destination with optional icon and description
GinkoDocsHeroCodeTabOne tab in landing-page code media
GinkoDocsHeroMediaImage, code, or code-tabs hero media union
GinkoDocsAppConfigComplete ginkoDocs app-configuration shape

Layer defaults are merged through Nuxt; this entry does not export a runtime defaults object.

Component entry

nuxt.config.ts
import {
  ginkoDocsComponentNames,
  ginkoDocsComponentPolicy,
  ginkoDocsComponentTags,
} from "@lupinum/ginko-docs/components";
import type { GinkoDocsComponentName, GinkoDocsComponentTag } from "@lupinum/ginko-docs/components";
ExportKindPurpose
ginkoDocsComponentTagsRuntime objectMaps all 33 authored tag names to Vue component names
ginkoDocsComponentPolicyRuntime objectDeclares allowed static props, slots, component kinds, and media fields
ginkoDocsComponentNamesRuntime arrayUnique Vue component names referenced by the tag map
GinkoDocsComponentTagTypeUnion of the 33 authored tag names
GinkoDocsComponentNameTypeUnion of mapped component names

Merge ginkoDocsComponentTags when adding tags. Use ginkoDocsComponentPolicy when another integration needs the complete built-in portability contract; Nuxt already receives that policy from the layer.

Type augmentation

The package ships Nuxt schema augmentation for AppConfig.ginkoDocs and AppConfigInput.ginkoDocs. In normal Nuxt usage, defineAppConfig() receives the merged type after the layer is installed. Import GinkoDocsAppConfig explicitly only when a standalone helper or library needs the type.