Skip to content

Use relative paths to import other markdown files #350

@smol-ninja

Description

@smol-ninja

Using relative paths to import other markdown files make it easy to generate LLM-ready markdown files. The objective is to embed the content from imported files into the parent file. For example,

import AdmonitionSimpleCode from "../../../snippets/_admonition-simple-code.mdx";

<AdmonitionSimpleCode />

would be translated into

:::caution

The code in this guide is not production-ready, and is implemented in a simplistic manner for the purpose of learning.

:::

The LLM text plugins work well with relative imports.

Metadata

Metadata

Assignees

Labels

effort: lowEasy or tiny task that takes less than a day.priority: 1This is important. It should be dealt with shortly.type: refactorChange that neither fixes a bug nor adds a feature.work: clearSense-categorize-respond. The relationship between cause and effect is clear.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions