Skip to content

Conversation

@afarber
Copy link
Contributor

@afarber afarber commented Dec 6, 2025

Issue

Fixes #7274

The --polyglot flag was removed from documentation.js in 2017. When OSRM upgraded to v14 in PR #7141, this went unnoticed because documentation.js silently ignores unknown arguments (exits 0 after printing help).

This PR adds a simple script to extract JSDoc comments from the C++ file and feed them to documentation.js, replacing the old --polyglot functionality.

Note: The docbox HTML build (the second part of npm run docs) also fails due to ESM/CommonJS conflicts introduced when the project switched to "type": "module". That's tracked separately in the issue #7293.

Tasklist

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.

Documentation build fails with "Unknown argument: polyglot" error

1 participant