Skip to content

Production Deploy fails: llms-full.txt contains MDX import statements #576

Closed

Description

@lowlydba

Production Deploy on main failed in the "Validate build output" step: https://github.com/OvertureMaps/docs/actions/runs/38621275159/job/116049567200

FAIL src/__tests__/llms-output.test.js > llms-full.txt build output > llms-full.txt does not contain MDX import statements
AssertionError: expected '# Overture Documentation\n\nThis file…' not to match /^import\s+.+from\s+['"]/m

Root cause: the Buildings guide has five MDX imports on one line (docs/guides/buildings/index.mdx, line 7). After the docusaurus-plugin-llms 0.6.0 to 0.6.1 bump, the plugin's excludeImports only strips an import that sits on its own line, so that line is left in llms-full.txt.

Reproduced locally on main with npm run build, then npx vitest run.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions