Skip to content

docs(cli): fix render examples that pass a file as the project dir#1974

Draft
miguel-heygen wants to merge 1 commit into
mainfrom
fix/docs-render-project-dir
Draft

docs(cli): fix render examples that pass a file as the project dir#1974
miguel-heygen wants to merge 1 commit into
mainfrom
fix/docs-render-project-dir

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

Problem

hyperframes render takes a project directory as its positional argument (default ., resolved via resolveProjectOrThrow); a specific composition file is selected with -c/--composition. But several docs showed the file as the positional argument:

  • docs/guides/claude-design-hyperframes.mdnpx hyperframes render index.html (twice)
  • packages/cli/README.mdnpx hyperframes render ./my-composition.html -o output.mp4

Following those examples, the CLI treats the .html file as the project directory and fails with Not a directory. Users hit this and had to discover the correct invocation by trial and error.

Fix

Docs-only. Correct the examples to render the project's index.html from the project directory (npx hyperframes render -o output.mp4), and show -c for pointing at a specific composition file. No code or behavior change.

Verification

The contract is in packages/cli/src/commands/render.ts (positional dir = "Project directory", -c = "Render a specific composition file") and packages/cli/src/utils/project.ts (resolveProjectOrThrow throws "Not a directory: " + dir for a file path). The corrected commands match the CLI's own built-in examples array.

The render command's positional argument is the project directory (default
"."), resolved via resolveProjectOrThrow; a specific composition file is
passed with -c/--composition. Several docs showed `hyperframes render
index.html` / `render ./my-composition.html`, which treats the HTML file as
the project dir and fails with "Not a directory". Correct the guide and the
cli README to render the project's index.html directly (or point at a file
with -c).
@mintlify

mintlify Bot commented Jul 6, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
hyperframes 🟢 Ready View Preview Jul 6, 2026, 2:43 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant