@brandon_m_behring/book-scaffold-astro 3.5.3 → 3.6.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/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AstroUserConfig, AstroIntegration } from 'astro';
2
- import { c as BookConfigOptions, f as BookScaffoldIntegrationOptions, E as volatilityLevels } from './types-CzXybcNA.js';
3
- export { A as AcademicChapter, B as BOOK_PRESETS, a as BOOK_PROFILES, b as BookConfigError, d as BookPreset, e as BookProfile, g as BookSchemasOptions, C as ChapterFor, h as CourseNotesChapter, M as MinimalChapter, P as ProfileDefinition, R as ResearchPortfolioChapter, i as RouteToggles, T as ToolsChapter, j as academicChapterSchema, k as academicParts, l as changeKinds, m as changelogSchema, n as chapterStatus, o as courseNotesChapterSchema, p as defineProfile, q as minimalChapterSchema, r as patternCategories, s as patternsSchema, t as researchPortfolioChapterSchema, u as resolvePreset, v as resolveProfile, w as sourceTiers, x as sourceTiersResearch, y as sourcesSchema, z as toolSlugs, D as toolsChapterSchema } from './types-CzXybcNA.js';
2
+ import { c as BookConfigOptions, f as BookScaffoldIntegrationOptions, E as volatilityLevels } from './types-DVbzso8w.js';
3
+ export { A as AcademicChapter, B as BOOK_PRESETS, a as BOOK_PROFILES, b as BookConfigError, d as BookPreset, e as BookProfile, g as BookSchemasOptions, C as ChapterFor, h as CourseNotesChapter, M as MinimalChapter, P as ProfileDefinition, R as ResearchPortfolioChapter, i as RouteToggles, T as ToolsChapter, j as academicChapterSchema, k as academicParts, l as changeKinds, m as changelogSchema, n as chapterStatus, o as courseNotesChapterSchema, p as defineProfile, q as minimalChapterSchema, r as patternCategories, s as patternsSchema, t as researchPortfolioChapterSchema, u as resolvePreset, v as resolveProfile, w as sourceTiers, x as sourceTiersResearch, y as sourcesSchema, z as toolSlugs, D as toolsChapterSchema } from './types-DVbzso8w.js';
4
4
  import 'astro/zod';
5
5
 
6
6
  declare function defineBookConfig(opts: BookConfigOptions): Promise<AstroUserConfig>;
package/dist/index.mjs CHANGED
@@ -588,6 +588,7 @@ async function defineBookConfig(opts) {
588
588
  "rehype-katex"
589
589
  );
590
590
  const { ssmMacros: ssmMacros2 } = await Promise.resolve().then(() => (init_katex_macros(), katex_macros_exports));
591
+ const macros = { ...ssmMacros2, ...opts.katexMacros ?? {} };
591
592
  remarkPlugins.push(remarkMath);
592
593
  rehypePlugins.push([
593
594
  rehypeKatex,
@@ -597,7 +598,7 @@ async function defineBookConfig(opts) {
597
598
  // for catching errors before deploy.
598
599
  strict: "error",
599
600
  trust: true,
600
- macros: ssmMacros2
601
+ macros
601
602
  }
602
603
  ]);
603
604
  }
@@ -638,6 +639,8 @@ async function defineBookConfig(opts) {
638
639
  extraIntegrations: _extraIntegrations,
639
640
  extraStyles: _extraStyles,
640
641
  markdown: _markdown,
642
+ katexMacros: _katexMacros,
643
+ // v3.6.0 (closes #22)
641
644
  ...rest
642
645
  } = opts;
643
646
  void _preset;
@@ -647,6 +650,7 @@ async function defineBookConfig(opts) {
647
650
  void _extraIntegrations;
648
651
  void _extraStyles;
649
652
  void _markdown;
653
+ void _katexMacros;
650
654
  const katexExternals = profile === "academic" ? [] : ["remark-math", "rehype-katex", "katex"];
651
655
  const config = {
652
656
  ...rest,
package/dist/schemas.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineCollection } from 'astro:content';
2
- import { g as BookSchemasOptions } from './types-CzXybcNA.js';
2
+ import { g as BookSchemasOptions } from './types-DVbzso8w.js';
3
3
  import 'astro';
4
4
  import 'astro/zod';
5
5
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@brandon_m_behring/book-scaffold-astro",
3
3
  "description": "Astro 6 + MDX toolkit for long-form technical books. Profile-aware (academic / tools / minimal); ships Tufte typography, KaTeX, BibTeX citations, Pagefind, Cloudflare Workers deploy. See PACKAGE_DESIGN.md for the API contract.",
4
- "version": "3.5.3",
4
+ "version": "3.6.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "author": "Brandon Behring",