@docusaurus/plugin-content-docs 3.10.1-canary-6610 → 3.10.1-canary-6612

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.
@@ -1,3 +1,9 @@
1
+ /**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
1
7
  import type { DocFrontMatter } from '@docusaurus/plugin-content-docs';
2
8
  export declare const DocFrontMatterSchema: import("joi").ObjectSchema<DocFrontMatter>;
3
9
  export declare function validateDocFrontMatter(frontMatter: {
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DocFrontMatterSchema = void 0;
4
- exports.validateDocFrontMatter = validateDocFrontMatter;
5
2
  /**
6
3
  * Copyright (c) Facebook, Inc. and its affiliates.
7
4
  *
8
5
  * This source code is licensed under the MIT license found in the
9
6
  * LICENSE file in the root directory of this source tree.
10
7
  */
8
+ /* eslint-disable camelcase */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.DocFrontMatterSchema = void 0;
11
+ exports.validateDocFrontMatter = validateDocFrontMatter;
11
12
  const utils_validation_1 = require("@docusaurus/utils-validation");
12
13
  // NOTE: we don't add any default value on purpose here
13
14
  // We don't want default values to magically appear in doc metadata and props
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-content-docs",
3
- "version": "3.10.1-canary-6610",
3
+ "version": "3.10.1-canary-6612",
4
4
  "description": "Docs plugin for Docusaurus.",
5
5
  "main": "lib/index.js",
6
6
  "sideEffects": false,
@@ -35,15 +35,15 @@
35
35
  },
36
36
  "license": "MIT",
37
37
  "dependencies": {
38
- "@docusaurus/core": "3.10.1-canary-6610",
39
- "@docusaurus/logger": "3.10.1-canary-6610",
40
- "@docusaurus/mdx-loader": "3.10.1-canary-6610",
41
- "@docusaurus/module-type-aliases": "3.10.1-canary-6610",
42
- "@docusaurus/theme-common": "3.10.1-canary-6610",
43
- "@docusaurus/types": "3.10.1-canary-6610",
44
- "@docusaurus/utils": "3.10.1-canary-6610",
45
- "@docusaurus/utils-common": "3.10.1-canary-6610",
46
- "@docusaurus/utils-validation": "3.10.1-canary-6610",
38
+ "@docusaurus/core": "3.10.1-canary-6612",
39
+ "@docusaurus/logger": "3.10.1-canary-6612",
40
+ "@docusaurus/mdx-loader": "3.10.1-canary-6612",
41
+ "@docusaurus/module-type-aliases": "3.10.1-canary-6612",
42
+ "@docusaurus/theme-common": "3.10.1-canary-6612",
43
+ "@docusaurus/types": "3.10.1-canary-6612",
44
+ "@docusaurus/utils": "3.10.1-canary-6612",
45
+ "@docusaurus/utils-common": "3.10.1-canary-6612",
46
+ "@docusaurus/utils-validation": "3.10.1-canary-6612",
47
47
  "@types/react-router-config": "^5.0.7",
48
48
  "combine-promises": "^1.1.0",
49
49
  "fs-extra": "^11.2.0",
@@ -67,5 +67,5 @@
67
67
  "engines": {
68
68
  "node": ">=24.14"
69
69
  },
70
- "gitHead": "0d5acb95facc8da12797122d99a202673d130b93"
70
+ "gitHead": "4d0d5252d3de5fa3ae601808796280171962535e"
71
71
  }
@@ -138,7 +138,7 @@ export const useDocsData = (pluginId: string | undefined): GlobalPluginData => {
138
138
  `You are using a feature of the Docusaurus docs plugin, but this plugin does not seem to be enabled${
139
139
  pluginId === 'Default' ? '' : ` (pluginId=${pluginId}`
140
140
  }`,
141
- {cause: error as Error},
141
+ {cause: error},
142
142
  );
143
143
  }
144
144
  };
package/src/docs.ts CHANGED
@@ -258,7 +258,7 @@ export async function processDocMetadata(args: {
258
258
  } catch (err) {
259
259
  throw new Error(
260
260
  `Can't process doc metadata for doc at path path=${args.docFile.filePath} in version name=${args.versionMetadata.versionName}`,
261
- {cause: err as Error},
261
+ {cause: err},
262
262
  );
263
263
  }
264
264
  }
@@ -4,6 +4,8 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
+ /* eslint-disable camelcase */
8
+
7
9
  import {
8
10
  JoiFrontMatter as Joi, // Custom instance for front matter
9
11
  URISchema,