diff --git a/dist/components/index.d.ts b/dist/components/index.d.ts new file mode 100644 index 0000000..2349009 --- /dev/null +++ b/dist/components/index.d.ts @@ -0,0 +1,10 @@ +import { QuartzComponent } from '@quartz-community/types'; + +interface ExampleComponentOptions { + prefix?: string; + suffix?: string; + className?: string; +} +declare const _default: (opts?: ExampleComponentOptions) => QuartzComponent; + +export { _default as ExampleComponent, type ExampleComponentOptions }; diff --git a/dist/index.d.ts b/dist/index.d.ts new file mode 100644 index 0000000..38f24c0 --- /dev/null +++ b/dist/index.d.ts @@ -0,0 +1,21 @@ +import { QuartzTransformerPlugin, QuartzFilterPlugin, QuartzEmitterPlugin } from '@quartz-community/types'; +export { PageGenerator, PageMatcher, QuartzComponent, QuartzComponentConstructor, QuartzComponentProps, QuartzEmitterPlugin, QuartzFilterPlugin, QuartzPageTypePlugin, QuartzPageTypePluginInstance, QuartzTransformerPlugin, StringResource, VirtualPage } from '@quartz-community/types'; +import { ExampleTransformerOptions, ExampleFilterOptions, ExampleEmitterOptions } from './types.js'; +export { ExampleComponent, ExampleComponentOptions } from './components/index.js'; + +/** + * Example transformer showing remark/rehype usage and resource injection. + */ +declare const ExampleTransformer: QuartzTransformerPlugin>; + +/** + * Example filter that removes drafts, tagged pages, and excluded path prefixes. + */ +declare const ExampleFilter: QuartzFilterPlugin>; + +/** + * Example emitter that writes a JSON manifest of content metadata. + */ +declare const ExampleEmitter: QuartzEmitterPlugin>; + +export { ExampleEmitter, ExampleEmitterOptions, ExampleFilter, ExampleFilterOptions, ExampleTransformer, ExampleTransformerOptions }; diff --git a/dist/types.d.ts b/dist/types.d.ts new file mode 100644 index 0000000..75fc404 --- /dev/null +++ b/dist/types.d.ts @@ -0,0 +1,42 @@ +export { BuildCtx, CSSResource, ChangeEvent, JSResource, PageGenerator, PageMatcher, ProcessedContent, QuartzEmitterPlugin, QuartzEmitterPluginInstance, QuartzFilterPlugin, QuartzFilterPluginInstance, QuartzPageTypePlugin, QuartzPageTypePluginInstance, QuartzPluginData, QuartzTransformerPlugin, QuartzTransformerPluginInstance, StaticResources, VirtualPage } from '@quartz-community/types'; + +interface ExampleTransformerOptions { + /** Token used to highlight text, defaults to ==highlight== */ + highlightToken: string; + /** Add a CSS class to all headings in the rendered HTML. */ + headingClass: string; + /** Enable remark-gfm for tables/task lists. */ + enableGfm: boolean; + /** Enable adding slug IDs to headings. */ + addHeadingSlugs: boolean; +} +interface ExampleFilterOptions { + /** Allow pages marked draft: true to publish. */ + allowDrafts: boolean; + /** Exclude pages that contain any of these frontmatter tags. */ + excludeTags: string[]; + /** Exclude paths that start with any of these prefixes (relative to content root). */ + excludePathPrefixes: string[]; +} +interface ExampleEmitterOptions { + /** Filename to emit at the site root. */ + manifestSlug: string; + /** Whether to include the frontmatter block in the manifest. */ + includeFrontmatter: boolean; + /** Extra metadata to write at the top level of the manifest. */ + metadata: Record; + /** Optional hook to transform the emitted manifest JSON string. */ + transformManifest?: (json: string) => string; + /** Add a custom class to the emitted manifest