diff --git a/.ddev/commands/web/build-docs b/.ddev/commands/web/build-docs index 754876e7..058fff7a 100755 --- a/.ddev/commands/web/build-docs +++ b/.ddev/commands/web/build-docs @@ -19,8 +19,11 @@ echo "${bold}${green}🔧 Building user documentation...${reset}" cd /var/www/html/docs echo -# Run the build -make html +# Run a clean build so changes to static assets (CSS, JS, images) are +# always picked up. In some incremental rebuild scenarios (e.g. timestamp +# sync issues on shared volumes), Sphinx can otherwise serve stale files +# from build/html/_static after a static-only edit. +make clean html # Success message echo diff --git a/docs/_static/tablefix.css b/docs/_static/tablefix.css index 68ce4a0c..4cc15736 100644 --- a/docs/_static/tablefix.css +++ b/docs/_static/tablefix.css @@ -3,6 +3,15 @@ white-space: normal; } +.wy-table-responsive table { + table-layout: fixed; +} + +.wy-table-responsive table td code, +.wy-table-responsive table th code { + white-space: normal; + overflow-wrap: anywhere; + .wy-table-responsive { margin-bottom: 24px; max-width: 100%;