@docusaurus/plugin-content-docs 3.8.1-canary-6350 → 3.8.1-canary-6352

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/lib/index.js CHANGED
@@ -11,7 +11,6 @@ exports.default = pluginContentDocs;
11
11
  const tslib_1 = require("tslib");
12
12
  const path_1 = tslib_1.__importDefault(require("path"));
13
13
  const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
14
- const logger_1 = tslib_1.__importDefault(require("@docusaurus/logger"));
15
14
  const utils_1 = require("@docusaurus/utils");
16
15
  const utils_validation_1 = require("@docusaurus/utils-validation");
17
16
  const mdx_loader_1 = require("@docusaurus/mdx-loader");
@@ -94,16 +93,12 @@ async function pluginContentDocs(context, options) {
94
93
  markdownConfig: siteConfig.markdown,
95
94
  resolveMarkdownLink: ({ linkPathname, sourceFilePath }) => {
96
95
  const version = (0, version_1.getVersionFromSourceFilePath)(sourceFilePath, versionsMetadata);
97
- const permalink = (0, utils_1.resolveMarkdownLinkPathname)(linkPathname, {
96
+ return (0, utils_1.resolveMarkdownLinkPathname)(linkPathname, {
98
97
  sourceFilePath,
99
98
  sourceToPermalink: contentHelpers.sourceToPermalink,
100
99
  siteDir,
101
100
  contentPaths: version,
102
101
  });
103
- if (permalink === null) {
104
- logger_1.default.report(siteConfig.onBrokenMarkdownLinks) `Docs markdown link couldn't be resolved: (url=${linkPathname}) in source file path=${sourceFilePath} for version number=${version.versionName}`;
105
- }
106
- return permalink;
107
102
  },
108
103
  },
109
104
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/plugin-content-docs",
3
- "version": "3.8.1-canary-6350",
3
+ "version": "3.8.1-canary-6352",
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.8.1-canary-6350",
39
- "@docusaurus/logger": "3.8.1-canary-6350",
40
- "@docusaurus/mdx-loader": "3.8.1-canary-6350",
41
- "@docusaurus/module-type-aliases": "3.8.1-canary-6350",
42
- "@docusaurus/theme-common": "3.8.1-canary-6350",
43
- "@docusaurus/types": "3.8.1-canary-6350",
44
- "@docusaurus/utils": "3.8.1-canary-6350",
45
- "@docusaurus/utils-common": "3.8.1-canary-6350",
46
- "@docusaurus/utils-validation": "3.8.1-canary-6350",
38
+ "@docusaurus/core": "3.8.1-canary-6352",
39
+ "@docusaurus/logger": "3.8.1-canary-6352",
40
+ "@docusaurus/mdx-loader": "3.8.1-canary-6352",
41
+ "@docusaurus/module-type-aliases": "3.8.1-canary-6352",
42
+ "@docusaurus/theme-common": "3.8.1-canary-6352",
43
+ "@docusaurus/types": "3.8.1-canary-6352",
44
+ "@docusaurus/utils": "3.8.1-canary-6352",
45
+ "@docusaurus/utils-common": "3.8.1-canary-6352",
46
+ "@docusaurus/utils-validation": "3.8.1-canary-6352",
47
47
  "@types/react-router-config": "^5.0.7",
48
48
  "combine-promises": "^1.1.0",
49
49
  "fs-extra": "^11.1.1",
@@ -67,5 +67,5 @@
67
67
  "engines": {
68
68
  "node": ">=18.0"
69
69
  },
70
- "gitHead": "76f391c678f4d51cad345f9ac4bd53a1b44b7f90"
70
+ "gitHead": "a3190d2cdcb4d4ab6704dbd8de92868ef67165cb"
71
71
  }
package/src/index.ts CHANGED
@@ -7,7 +7,6 @@
7
7
 
8
8
  import path from 'path';
9
9
  import fs from 'fs-extra';
10
- import logger from '@docusaurus/logger';
11
10
  import {
12
11
  normalizeUrl,
13
12
  docuHash,
@@ -158,18 +157,12 @@ export default async function pluginContentDocs(
158
157
  sourceFilePath,
159
158
  versionsMetadata,
160
159
  );
161
- const permalink = resolveMarkdownLinkPathname(linkPathname, {
160
+ return resolveMarkdownLinkPathname(linkPathname, {
162
161
  sourceFilePath,
163
162
  sourceToPermalink: contentHelpers.sourceToPermalink,
164
163
  siteDir,
165
164
  contentPaths: version,
166
165
  });
167
- if (permalink === null) {
168
- logger.report(
169
- siteConfig.onBrokenMarkdownLinks,
170
- )`Docs markdown link couldn't be resolved: (url=${linkPathname}) in source file path=${sourceFilePath} for version number=${version.versionName}`;
171
- }
172
- return permalink;
173
166
  },
174
167
  },
175
168
  });