@eventcatalog/core 2.0.24 → 2.0.26

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @eventcatalog/core
2
2
 
3
+ ## 2.0.26
4
+
5
+ ### Patch Changes
6
+
7
+ - 3dc05d8: fix(core): fixed search, now set output path on build
8
+
9
+ ## 2.0.25
10
+
11
+ ### Patch Changes
12
+
13
+ - 109ce19: feat(core): added optimize flag to make eventcatalog work with large catalogs
14
+
3
15
  ## 2.0.24
4
16
 
5
17
  ### Patch Changes
package/astro.config.mjs CHANGED
@@ -2,22 +2,23 @@ import { defineConfig } from 'astro/config';
2
2
  import tailwind from '@astrojs/tailwind';
3
3
  import mdx from '@astrojs/mdx';
4
4
  import react from '@astrojs/react';
5
- // import { rehypeHeadingIds } from '@astrojs/markdown-remark';
6
- // import rehypeMinifyHtml from 'rehype-minify-html';
7
- import rehypeSlug from 'rehype-slug';
8
- import remarkGFM from 'remark-gfm';
9
5
  import pagefind from "astro-pagefind";
10
6
  import { mermaid } from "./src/remark-plugins/mermaid"
7
+ import { join } from 'node:path';
11
8
 
12
-
13
- import expressiveCode from 'astro-expressive-code';
9
+ /** @type {import('bin/eventcatalog.config').Config} */
14
10
  import config from './eventcatalog.config';
11
+ import expressiveCode from 'astro-expressive-code';
12
+
13
+ const coreDirectory = process.env.CATALOG_DIR || process.cwd();
15
14
 
16
15
  // https://astro.build/config
17
16
  export default defineConfig({
18
17
  base: config.base || '/',
19
18
  server: { port: config.port || 3000 },
20
19
 
20
+ outDir: join(coreDirectory, 'dist'),
21
+
21
22
  // https://docs.astro.build/en/reference/configuration-reference/#site
22
23
  site: config.homepageLink || 'https://eventcatalog.dev/',
23
24
 
@@ -30,27 +31,13 @@ export default defineConfig({
30
31
  react(),
31
32
  tailwind(),
32
33
  expressiveCode({
33
- // themes: ['github-light'],
34
34
  themes: ['github-light'],
35
35
  }),
36
36
 
37
37
  mdx({
38
- remarkPlugins: [
39
- // Add ids to headings
40
- // rehypeSlug,
41
- // remarkGFM
42
- ],
43
- // rehypePlugins: [rehypeMinifyHtml],
44
- // syntaxHighlight: 'shiki',
45
- // shikiConfig: {
46
- // theme: 'github-light',
47
- // langs: ['yaml']
48
- // },
49
-
38
+ // https://docs.astro.build/en/guides/integrations-guide/mdx/#optimize
39
+ optimize: config.mdxOptimize || false,
50
40
  remarkPlugins: [mermaid],
51
- // remarkRehype: {
52
- // footnoteLabel: 'Footnotes',
53
- // },
54
41
  gfm: false,
55
42
  }),
56
43
  pagefind(),
@@ -15,6 +15,7 @@ interface Config {
15
15
  src: string;
16
16
  text?: string;
17
17
  };
18
+ mdxOptimize?: boolean;
18
19
  docs: {
19
20
  sidebar: {
20
21
  showPageHeadings: true;
@@ -15,6 +15,7 @@ interface Config {
15
15
  src: string;
16
16
  text?: string;
17
17
  };
18
+ mdxOptimize?: boolean;
18
19
  docs: {
19
20
  sidebar: {
20
21
  showPageHeadings: true;
@@ -16,6 +16,7 @@ export interface Config {
16
16
  src: string;
17
17
  text?: string;
18
18
  };
19
+ mdxOptimize?: boolean;
19
20
  docs: {
20
21
  sidebar: {
21
22
  showPageHeadings: true;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eventcatalog/core",
3
3
  "type": "module",
4
- "version": "2.0.24",
4
+ "version": "2.0.26",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },