Documentation framework support
Tell EkLine which documentation framework you use, and it checks the text inside that framework’s MDX components.
Why framework support matters
Section titled “Why framework support matters”Frameworks like Mintlify use custom MDX components for layout. These components often hold prose you want checked.
The problem: Without the framework option, EkLine may skip the text inside custom components.
The solution: Set the framework option. EkLine then checks the text inside the framework’s components.
Example: Mintlify Note component
Section titled “Example: Mintlify Note component”Without framework configuration:
<Note> Users shoud configure there API keys before proceeding.</Note>EkLine might skip this content entirely, missing two spelling and grammar errors.
With framework: "mintlify":
EkLine detects that <Note> is a prose component and checks the content, catching:
- “shoud” → “should”
- “there” → “their”
Supported frameworks
Section titled “Supported frameworks”EkLine accepts these framework values:
| Framework | Value |
|---|---|
| Mintlify | mintlify |
| Astro | astro |
| Fern | fern |
| Docusaurus | docusaurus |
| GitBook | gitbook |
Mintlify
Section titled “Mintlify”EkLine checks the prose inside Mintlify components.
Configuration
Section titled “Configuration”Create an ekline.config.json file in your project root:
{ "contentDirectory": ["."], "framework": "mintlify", "excludeDirectories": ["node_modules"]}ekline-cli --ek-token YOUR_TOKEN --framework mintlifyProse components
Section titled “Prose components”EkLine checks content inside these Mintlify components:
<Note>,<Tip>,<Warning>,<Info>— Callout boxes<Card>— Card components with content<Accordion>,<AccordionGroup>— Expandable sections<Update>— Changelog entries<Step>,<Steps>— Step-by-step instructions<Expandable>— Expandable content<Tab>,<Tabs>— Tabbed content
Skipped code components
Section titled “Skipped code components”EkLine skips these components because they contain code, not prose:
<CodeGroup>— Code examples<Snippet>— Reusable code snippets<Frame>— Image and video frames
Example configuration
Section titled “Example configuration”For a typical Mintlify project, your ekline.config.json might look like:
{ "contentDirectory": ["."], "framework": "mintlify", "styleGuide": "google", "excludeDirectories": ["node_modules", "api-reference"], "excludeFiles": ["mint.json"]}Other frameworks
Section titled “Other frameworks”For Astro, Fern, Docusaurus, and GitBook, create an ekline.config.json file and set the framework option:
{ "contentDirectory": ["src/content/docs"], "framework": "astro", "excludeDirectories": ["node_modules", "dist"]}{ "contentDirectory": ["fern/docs"], "framework": "fern", "excludeDirectories": ["node_modules"]}{ "contentDirectory": ["docs"], "framework": "docusaurus", "excludeDirectories": ["node_modules", "build"]}{ "contentDirectory": ["."], "framework": "gitbook", "excludeDirectories": ["node_modules"]}Troubleshooting
Section titled “Troubleshooting”Content inside components not being checked
Section titled “Content inside components not being checked”-
Check that
frameworkis set in yourekline.config.jsonfile:ekline.config.json {"framework": "mintlify"} -
Check for typos — the value is case-sensitive:
Correct:
{ "framework": "mintlify" }Wrong:
{ "framework": "Mintlify" } -
Check that the component holds prose: Not every component holds prose. EkLine skips code blocks, images, and similar components.
Framework not recognized
Section titled “Framework not recognized”If you see a warning that the framework value isn’t recognized, use one of the supported values: mintlify, astro, fern, docusaurus, or gitbook.
Request a framework
Section titled “Request a framework”Need a different framework or specific components? Contact us and tell us how your docs are set up.
Next steps
Section titled “Next steps”- CLI Reference — All CLI options and configuration
- GitHub Actions — Set up automated PR reviews
- Custom Rules — Configure style guides and terminology
Built on Potluck Docs, our open source template.