@lexibase/rdx-core 3.5.0 → 3.5.1

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.
@@ -2,25 +2,25 @@ import {
2
2
  collectPageRedirects,
3
3
  getDocsIndex,
4
4
  getSourceOptions
5
- } from "../chunk-LC6NZKLP.js";
5
+ } from "../chunk-4S2NYHNB.js";
6
6
  import {
7
- changelogPluginName,
8
- getContentSources,
9
- isFallbackPage,
10
- parseStaticDocument,
11
- readChangelog
12
- } from "../chunk-F5XY2FG4.js";
7
+ headingText
8
+ } from "../chunk-FPBRKD4M.js";
13
9
  import {
14
10
  RdxDocumentLinkError,
15
11
  createDocumentLinkResolver,
16
12
  readDocumentLinkField
17
13
  } from "../chunk-KRVOWYZS.js";
18
- import {
19
- headingText
20
- } from "../chunk-FPBRKD4M.js";
21
14
  import {
22
15
  remarkDocumentationComponents
23
16
  } from "../chunk-6WNFE2QG.js";
17
+ import {
18
+ changelogPluginName,
19
+ getContentSources,
20
+ isFallbackPage,
21
+ parseStaticDocument,
22
+ readChangelog
23
+ } from "../chunk-OOKOB72A.js";
24
24
 
25
25
  // src/check/index.ts
26
26
  import fs from "fs";
@@ -1,12 +1,12 @@
1
- import {
2
- parseStaticDocument
3
- } from "./chunk-F5XY2FG4.js";
4
1
  import {
5
2
  DEFAULT_POSITION,
6
3
  documentExtension,
7
4
  orderedName,
8
5
  slugFromRelativePath
9
6
  } from "./chunk-KRVOWYZS.js";
7
+ import {
8
+ parseStaticDocument
9
+ } from "./chunk-OOKOB72A.js";
10
10
 
11
11
  // src/content/page-redirects.ts
12
12
  function readRedirectFrom(value) {
@@ -68,7 +68,6 @@ function collectPageRedirects(sources, onError = (error) => {
68
68
  // src/content/index.ts
69
69
  import fs from "fs";
70
70
  import path from "path";
71
- import matter from "gray-matter";
72
71
  function getDocsRoot(docsDir = "docs") {
73
72
  return path.resolve(
74
73
  /* turbopackIgnore: true */
@@ -222,7 +221,7 @@ function getDocsIndex({ docsDir, fallbackDocsDir, fallbackOnly } = {}, onError)
222
221
  filePath,
223
222
  "utf8"
224
223
  );
225
- const parsed = onError ? parseStaticDocument(raw) : matter(raw);
224
+ const parsed = parseStaticDocument(raw);
226
225
  frontmatter = isRecord(parsed.data) ? parsed.data : {};
227
226
  redirectFrom = readRedirectFrom(frontmatter.redirectFrom);
228
227
  } catch (error) {
@@ -287,7 +286,7 @@ function getDocument(slug, { docsDir, fallbackDocsDir, fallbackOnly } = {}) {
287
286
  const sourcePath = candidates[0];
288
287
  if (!sourcePath)
289
288
  return fallbackDocsDir ? getDocument(slug, { docsDir: fallbackDocsDir }) : null;
290
- const parsed = matter(
289
+ const parsed = parseStaticDocument(
291
290
  fs.readFileSync(
292
291
  /* turbopackIgnore: true */
293
292
  sourcePath,
@@ -6,7 +6,7 @@ function parseStaticDocument(source) {
6
6
  const language = matter.language(text).name.toLowerCase();
7
7
  if (language && !["yaml", "yml", "json"].includes(language))
8
8
  throw new Error(
9
- "rdx check accepts YAML or JSON frontmatter, without executing document code."
9
+ "RDX accepts YAML or JSON frontmatter, without executing document code."
10
10
  );
11
11
  }
12
12
  return matter(source, {});
@@ -3,7 +3,7 @@ import {
3
3
  boundedProjectPath,
4
4
  inside,
5
5
  resolveProjectPath
6
- } from "./chunk-F5XY2FG4.js";
6
+ } from "./chunk-OOKOB72A.js";
7
7
 
8
8
  // src/config/index.ts
9
9
  import path6 from "path";
@@ -11,7 +11,7 @@ import {
11
11
  readDocumentDate,
12
12
  resolveConfig,
13
13
  snapshotDatesFilename
14
- } from "../chunk-PJCL6IZD.js";
14
+ } from "../chunk-TTL5UOXQ.js";
15
15
  import {
16
16
  RdxConfigError,
17
17
  changelogPluginName,
@@ -21,7 +21,7 @@ import {
21
21
  isChangelogVersion,
22
22
  readChangelog,
23
23
  resolveProjectPath
24
- } from "../chunk-F5XY2FG4.js";
24
+ } from "../chunk-OOKOB72A.js";
25
25
  export {
26
26
  RdxConfigError,
27
27
  builtDocumentDatesFilename,
package/dist/index.js CHANGED
@@ -6,12 +6,17 @@ import {
6
6
  getProjectDocsPaths,
7
7
  getSourceOptions,
8
8
  resolveDocsRoute
9
- } from "./chunk-LC6NZKLP.js";
9
+ } from "./chunk-4S2NYHNB.js";
10
+ import {
11
+ RdxDocumentLinkError,
12
+ createDocumentLinkResolver,
13
+ getRelatedDocumentLinks
14
+ } from "./chunk-KRVOWYZS.js";
10
15
  import {
11
16
  createRdxProject,
12
17
  defineConfig,
13
18
  resolveConfig
14
- } from "./chunk-PJCL6IZD.js";
19
+ } from "./chunk-TTL5UOXQ.js";
15
20
  import {
16
21
  RdxConfigError,
17
22
  getContentSources,
@@ -20,12 +25,7 @@ import {
20
25
  getLocalizedProject,
21
26
  isFallbackPage,
22
27
  resolveProjectPath
23
- } from "./chunk-F5XY2FG4.js";
24
- import {
25
- RdxDocumentLinkError,
26
- createDocumentLinkResolver,
27
- getRelatedDocumentLinks
28
- } from "./chunk-KRVOWYZS.js";
28
+ } from "./chunk-OOKOB72A.js";
29
29
 
30
30
  // src/content/base-path.ts
31
31
  function withBasePath(href, basePath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lexibase/rdx-core",
3
- "version": "3.5.0",
3
+ "version": "3.5.1",
4
4
  "description": "Content indexing and document utilities for RDX documentation projects.",
5
5
  "license": "MIT",
6
6
  "type": "module",