Fix duplicate redirect paths causing Docusaurus build failure#77
Draft
Fix duplicate redirect paths causing Docusaurus build failure#77
Conversation
…tion - Extracted redirects from 50 markdown files - Generated 48 redirect configurations covering 200+ redirect paths - Updated docusaurus.config.js with complete redirect configuration - Included both .html and non-.html variants for all redirects - Applied special path mappings for renamed files - Validated JavaScript syntax Co-authored-by: yogeshnikam671 <60032699+yogeshnikam671@users.noreply.github.com>
- Fix inconsistent path naming (use hyphens throughout) - Fix missing leading slashes in redirect paths - Fix incorrect file count in documentation (48 files, not 50) - Ensure all redirect paths are absolute Co-authored-by: yogeshnikam671 <60032699+yogeshnikam671@users.noreply.github.com>
Co-authored-by: yogeshnikam671 <60032699+yogeshnikam671@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Configure all redirects for specmatic documentation
Configure redirects from docs.specmatic.io to Docusaurus-based documentation
Jan 31, 2026
CORRECTIONS: 1. Repository: Redirects belong in specmatic-documentation, not docs.specmatic.io 2. Path Format: Use underscores (contract_driven_development) not hyphens (contract-driven-development) Changes: - Created corrected docusaurus.config.js.CORRECTED with proper underscore paths - Verified all 40 unique redirect targets exist in specmatic-documentation - Fixed missing pages to redirect to appropriate alternatives - Removed incorrect files (docusaurus.config.js, REDIRECT_MIGRATION.md) - Created REDIRECT_FIX_README.md with complete documentation Co-authored-by: yogeshnikam671 <60032699+yogeshnikam671@users.noreply.github.com>
Co-authored-by: yogeshnikam671 <60032699+yogeshnikam671@users.noreply.github.com>
Co-authored-by: yogeshnikam671 <60032699+yogeshnikam671@users.noreply.github.com>
Co-authored-by: yogeshnikam671 <60032699+yogeshnikam671@users.noreply.github.com>
Copilot
AI
changed the title
Configure redirects from docs.specmatic.io to Docusaurus-based documentation
Correct redirect configuration: fix repository and path format
Jan 31, 2026
- Created READY_TO_USE_docusaurus.config.js for easy copy/paste - Added missing .html versions to all redirects (now 216 total paths) - All paths use correct underscore format (contract_driven_development) - All 40 unique targets verified to exist - JavaScript syntax validated - Created simple HOW_TO_USE.md instructions Co-authored-by: yogeshnikam671 <60032699+yogeshnikam671@users.noreply.github.com>
Co-authored-by: yogeshnikam671 <60032699+yogeshnikam671@users.noreply.github.com>
Co-authored-by: yogeshnikam671 <60032699+yogeshnikam671@users.noreply.github.com>
Copilot
AI
changed the title
Correct redirect configuration: fix repository and path format
Provide ready-to-use docusaurus.config.js with complete redirect coverage
Jan 31, 2026
- Removed duplicate /documentation/references paths - Fixed "EEXIST: file already exists" build error - Reduced from 48 to 47 redirect configurations - All 213 redirect paths are now unique - JavaScript syntax validated - Build should now succeed Co-authored-by: yogeshnikam671 <60032699+yogeshnikam671@users.noreply.github.com>
Co-authored-by: yogeshnikam671 <60032699+yogeshnikam671@users.noreply.github.com>
Copilot
AI
changed the title
Provide ready-to-use docusaurus.config.js with complete redirect coverage
Fix duplicate redirect paths causing Docusaurus build failure
Jan 31, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Docusaurus build failed with
EEXIST: file already existserror when attempting to create redirect files. The redirect configuration contained duplicate "from" paths across multiple redirect objects.Changes
/documentation/referencesand/documentation/references.html/docs/references/configuration/Impact
Example of removed duplication
Before: Two separate configurations redirecting to same target
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.