fumadocs-core 15.2.7 → 15.2.9

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.
@@ -877,7 +877,6 @@ function remarkSteps({
877
877
  if (!("children" in parent) || parent.type === "heading") return;
878
878
  if (parent.data && "_fd_step" in parent.data) return "skip";
879
879
  let startIdx = -1;
880
- let lastNumber = 0;
881
880
  let i = 0;
882
881
  const onEnd = () => {
883
882
  if (startIdx === -1) return;
@@ -909,11 +908,8 @@ function remarkSteps({
909
908
  onEnd();
910
909
  continue;
911
910
  }
912
- const num = Number(match[1]);
913
911
  head.value = match[2];
914
- if (startIdx !== -1 && num !== lastNumber + 1) onEnd();
915
912
  if (startIdx === -1) startIdx = i;
916
- lastNumber = num;
917
913
  }
918
914
  onEnd();
919
915
  });
@@ -132,13 +132,15 @@ interface LoaderOutput<Config extends LoaderConfig> {
132
132
  } | undefined;
133
133
  _i18n?: I18nConfig;
134
134
  /**
135
- * Get list of pages from language, empty if language hasn't specified
135
+ * Get list of pages from language
136
136
  *
137
137
  * @param language - If empty, the default language will be used
138
138
  */
139
139
  getPages: (language?: string) => Page<Config['source']['pageData']>[];
140
140
  getLanguages: () => LanguageEntry<Config['source']['pageData']>[];
141
141
  /**
142
+ * Get page with slugs
143
+ *
142
144
  * @param language - If empty, the default language will be used
143
145
  */
144
146
  getPage: (slugs: string[] | undefined, language?: string) => Page<Config['source']['pageData']> | undefined;
@@ -146,6 +148,9 @@ interface LoaderOutput<Config extends LoaderConfig> {
146
148
  getNodeMeta: (node: Folder$1, language?: string) => Meta<Config['source']['metaData']> | undefined;
147
149
  /**
148
150
  * generate static params for Next.js SSG
151
+ *
152
+ * @param slug - customise parameter name for slugs
153
+ * @param lang - customise parameter name for lang
149
154
  */
150
155
  generateParams: <TSlug extends string = 'slug', TLang extends string = 'lang'>(slug?: TSlug, lang?: TLang) => (Record<TSlug, string[]> & Record<TLang, string>)[];
151
156
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-core",
3
- "version": "15.2.7",
3
+ "version": "15.2.9",
4
4
  "description": "The library for building a documentation website in Next.js",
5
5
  "keywords": [
6
6
  "NextJs",
@@ -78,7 +78,7 @@
78
78
  ],
79
79
  "dependencies": {
80
80
  "@formatjs/intl-localematcher": "^0.6.1",
81
- "@orama/orama": "^3.1.4",
81
+ "@orama/orama": "^3.1.6",
82
82
  "@shikijs/rehype": "^3.2.2",
83
83
  "@shikijs/transformers": "^3.2.2",
84
84
  "github-slugger": "^2.0.0",
@@ -97,19 +97,19 @@
97
97
  "@algolia/client-search": "4.24.0",
98
98
  "@mdx-js/mdx": "^3.1.0",
99
99
  "@oramacloud/client": "^2.1.4",
100
- "@tanstack/react-router": "^1.115.2",
100
+ "@tanstack/react-router": "^1.116.0",
101
101
  "@types/estree-jsx": "^1.0.5",
102
102
  "@types/hast": "^3.0.4",
103
103
  "@types/mdast": "^4.0.3",
104
104
  "@types/negotiator": "^0.6.3",
105
- "@types/node": "22.14.0",
106
- "@types/react": "^19.1.0",
105
+ "@types/node": "22.14.1",
106
+ "@types/react": "^19.1.2",
107
107
  "@types/react-dom": "^19.1.2",
108
108
  "algoliasearch": "4.24.0",
109
109
  "mdast-util-mdx-jsx": "^3.2.0",
110
110
  "mdast-util-mdxjs-esm": "^2.0.1",
111
- "next": "^15.3.0",
112
- "react-router": "^7.5.0",
111
+ "next": "^15.3.1",
112
+ "react-router": "^7.5.1",
113
113
  "remark-mdx": "^3.1.0",
114
114
  "remark-rehype": "^11.1.2",
115
115
  "typescript": "^5.8.3",