SmartGen Docs Troubleshooting
Your reading session

Page 49 of 68

Troubleshooting

Troubleshooting Guide & Common Solutions

This guide provides diagnostic procedures and verified solutions for common issues encountered during local development, theme customization, and CI/CD deployments with SmartGen Docs [1].

Common Issues and Diagnostic Table

Symptom / Error Probable Root Cause Corrective Action
Sitemap appears blank or invalid Missing root XML declarations or newline serialization issues Verify that site/sitemap.xml is generated correctly and test with Python's xml.etree.ElementTree [2].
Styles switcher button missing Active theme missing style_switcher.html or script partials Ensure theme templates include the shared partials and rebuild all themes using build_all_themes.py [3].
GitHub Pages 404 on assets Jekyll overriding underscore or namespaced static directories Ensure site/.nojekyll is touched during build to prevent Jekyll from filtering static assets [4].
Broken internal Markdown links Relative links pointing to .md instead of .html SmartGen automatically rewrites internal .md links, but ensure anchor paths are correctly formatted [5].
Playwright screenshot tests fail Chromium browser binaries missing in container Run python -m playwright install chromium after installing the screenshots extra [6].

References