Skip to content

Commit c300bbf

Browse files
committed
docs: Block /internal/ on every published docs version
The internal module is deleted on main, but the release branches still contain it and Antora publishes their content too. A forced netlify 404 covers all versions at the serving layer without backporting the deletion.
1 parent 3153f0d commit c300bbf

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

netlify.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@
77
to = "https://hub.stackable.tech/crds"
88
status = 301
99

10+
# The internal module is deleted on main but still exists on the release
11+
# branches; this blocks it for every published version without backports.
12+
[[redirects]]
13+
from = "/home/:version/internal/*"
14+
to = "/404.html"
15+
status = 404
16+
force = true
17+
1018
[[redirects]]
1119
from = "/home/stable/release_notes.html"
1220
to = "/home/stable/release-notes"

0 commit comments

Comments
 (0)