Skip to content

Version 1.5#52

Merged
robertmclaws merged 3 commits into
mainfrom
dev
Mar 11, 2026
Merged

Version 1.5#52
robertmclaws merged 3 commits into
mainfrom
dev

Conversation

@robertmclaws

@robertmclaws robertmclaws commented Mar 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • AOT (Ahead-of-Time) compilation support for Mintlify.Core, including MintlifyJsonContext source-generated serialization and AOT-compatibility pragma suppressions across all converters
  • ThemePairConfig base class for shared light/dark theme configuration patterns, used by ColorPairConfig, BackgroundImageConfig, FaviconConfig, LogoConfig, and Error404Config
  • DotNetDocs SDK now loads proper assemblies based on the loaded .NET SDK
  • Comprehensive test coverage with AotSerializationTests, ThemePairConfigTests, ThemePairInheritanceTests, and NewConfigTests

New Mintlify.Core Models

  • FontConfig — custom font configuration with URL, weight, and style
  • MetadataConfig — SEO and social metadata settings
  • ThemePairConfig — base class for light/dark theme value pairs
  • ThumbnailsConfig — social media thumbnail/OG image settings
  • ThumbnailFontsConfig — font configuration for auto-generated thumbnails

Integrations

  • AdobeConfig — Adobe Analytics integration
  • ClarityConfig — Microsoft Clarity integration
  • CookiesConfig — cookie consent banner configuration
  • FrontChatConfig — Front chat widget integration
  • IntercomConfig — Intercom messenger integration
  • KoalaConfig — Koala analytics integration
  • TelemetryConfig — Telemetry/analytics integration

Updated Mintlify.Core Models

New properties added to existing models:

  • ApiConfigUrl
  • ApiExamplesConfigAutogenerate
  • BackgroundImageConfig — now extends ThemePairConfig
  • ColorConfig — additional color properties
  • ColorPairConfig — now extends ThemePairConfig
  • ColorsConfig — additional theme colors
  • ContextualConfig — new properties
  • DocsJsonConfigFonts, Metadata, Styling, Thumbnails, Integrations
  • Error404Config — now extends ThemePairConfig
  • FaviconConfig — now extends ThemePairConfig
  • FontsConfig — new properties
  • IconConfig / IconsConfig — additional properties
  • IntegrationsConfig — all integration sub-configs
  • LogoConfig — now extends ThemePairConfig
  • NavbarLink — new properties
  • PostHogConfig — new properties
  • StylingConfig — new properties

Test plan

  • AOT serialization round-trip tests pass
  • ThemePairConfig inheritance tests verify base class behavior
  • New config model deserialization tests pass
  • Existing navigation and renderer tests unaffected

🤖 Generated with Claude Code

robertmclaws and others added 3 commits March 10, 2026 22:22
Consolidate 6 independent Light/Dark theme pair classes (ColorConfig,
ColorPairConfig, ColorsConfig, BackgroundImageConfig, LogoConfig,
FaviconConfig) under a shared ThemePairConfig base class for consistency.

Add AOT-compatible JSON serialization for .NET 8+ via source-generated
MintlifyJsonContext, wire it into MintlifyConstants, mark the assembly
as trimmable/AOT-compatible, remove reflection from NavigationPageConverter,
and suppress expected IL2026/IL3050 warnings in converters that operate
within the serialization pipeline.

Add 111 new tests covering ThemePairConfig, inheritance verification,
new config model serialization, and AOT round-trip correctness.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Trace warning when falling back to reflection
- Maybe the SDK will load the right versions of DotNetDocs in the right SDK environments this time.
@robertmclaws robertmclaws merged commit 2d4b2da into main Mar 11, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant