Fix ReadTheDocs build error: Remove non-existent sitemap plugin - #23
Conversation
- Removed non-existent mkdocs-sitemap-plugin from requirements - Removed sitemap plugin configuration from mkdocs.yml - MkDocs has built-in sitemap generation (no plugin needed) - Moved minify options to the correct minify plugin section - Updated test to check for site_url instead of sitemap plugin The sitemap.xml is automatically generated by MkDocs when site_url is set.
|
Claude finished @knowlen's task —— View job PR Review CompleteThis PR attempts to fix the ReadTheDocs build by removing the non-existent 🚨 Critical IssueThe fix is incomplete - ReadTheDocs will still fail because the dependency references were not removed:
The PR description claims these were removed, but they weren't. This is the root cause of the build failures. Code Quality Review✅ What's Done Well
🔴 Critical Issues
Technical AnalysisArchitecture & Approach ✅The technical approach is sound:
Security Considerations ✅
Performance Considerations ✅
Test Coverage
|
- Removed mkdocs-sitemap-plugin from docs/requirements.txt - Removed mkdocs-sitemap-plugin from pyproject.toml - This package doesn't exist on PyPI and was causing build failures The previous commit only fixed mkdocs.yml but missed these critical files.
- Added test_sitemap_generation.py with comprehensive sitemap tests - Verifies MkDocs generates valid sitemap.xml - Validates XML structure and sitemap protocol - Checks all URLs start with correct domain - Ensures site_url is properly configured - Enhanced test_seo_links.py with sitemap requirements test - Verifies MkDocs version supports sitemap (>= 0.13.0) - Confirms site_url is set in mkdocs.yml - Ensures no sitemap plugin is configured (uses built-in) - Updated documentation tests README with new test files These tests will help prevent future sitemap-related issues.
|
@claude I've added comprehensive integration tests for sitemap.xml generation. The PR now
The tests will help prevent future sitemap-related issues and ensure the built-in sitemap |
|
Claude finished @knowlen's task —— View job PR Review Complete ✅Todo List:
🎉 Excellent Work! This PR is Ready for MergeYou've successfully addressed all the critical issues from my previous review and added comprehensive testing. The ReadTheDocs build should now succeed. ✅ Critical Issues ResolvedAll blocking issues from the previous review have been fixed:
🧪 Outstanding Test ImplementationThe new test suite is comprehensive and well-structured: Integration Tests (
|
Summary
Fixes the ReadTheDocs build failure by removing references to a non-existent mkdocs-sitemap-plugin.
Problem
PR #22 attempted to fix the build by adding
mkdocs-sitemap-pluginto requirements, but this package doesn't exist on PyPI. The build continues to fail with:Root Cause
MkDocs has built-in sitemap generation since v0.13.0. No plugin is needed!
Solution
Removed the non-existent
mkdocs-sitemap-pluginfrom:docs/requirements.txtpyproject.tomlRemoved the incorrect
sitemap:plugin configuration frommkdocs.ymlminify:plugin sectionUpdated tests to check for
site_url(required for sitemap) instead of a pluginHow Sitemaps Work in MkDocs
sitemap.xmlwhen buildingsite_urlset inmkdocs.yml(which we have)Test Plan
This is a critical fix to restore documentation builds.