Skip to content

Commit d553838

Browse files
authored
Merge pull request #600 from adiati98/chore/cherry-pick-842-userdocs-b5x
Cherry pick PR #842 to fix table overflow from user docs to branch 5.x
2 parents 1f35786 + eaf93c2 commit d553838

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.ddev/commands/web/build-docs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@ echo "${bold}${green}🔧 Building user documentation...${reset}"
1919
cd /var/www/html/docs
2020
echo
2121

22-
# Run the build
23-
make html
22+
# Run a clean build so changes to static assets (CSS, JS, images) are
23+
# always picked up. In some incremental rebuild scenarios (e.g. timestamp
24+
# sync issues on shared volumes), Sphinx can otherwise serve stale files
25+
# from build/html/_static after a static-only edit.
26+
make clean html
2427

2528
# Success message
2629
echo

docs/_static/tablefix.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
white-space: normal;
44
}
55

6+
.wy-table-responsive table {
7+
table-layout: fixed;
8+
}
9+
10+
.wy-table-responsive table td code,
11+
.wy-table-responsive table th code {
12+
white-space: normal;
13+
overflow-wrap: anywhere;
14+
615
.wy-table-responsive {
716
margin-bottom: 24px;
817
max-width: 100%;

0 commit comments

Comments
 (0)