Skip to content

Commit 0b9955a

Browse files
committed
chore: fix 404 when refreshing on playwright pages
1 parent c83beda commit 0b9955a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

_plugins/docusaurus.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ def system!(*args)
5353
system!("mkdir -p _site/vitest/troubleshooting")
5454
system!("cp docusaurus/build/vitest/troubleshooting/index.html _site/vitest/troubleshooting")
5555

56+
system!("mkdir -p _site/playwright/guide")
57+
system!("cp docusaurus/build/playwright/guide/index.html _site/playwright/guide")
58+
59+
system!("mkdir -p _site/playwright/reference")
60+
system!("cp docusaurus/build/playwright/reference/index.html _site/playwright/reference")
61+
62+
system!("mkdir -p _site/playwright/cookbook")
63+
system!("cp docusaurus/build/playwright/cookbook/index.html _site/playwright/cookbook")
64+
65+
system!("mkdir -p _site/playwright/troubleshooting")
66+
system!("cp docusaurus/build/playwright/troubleshooting/index.html _site/playwright/troubleshooting")
67+
5668
system!("mkdir -p _site/integration")
5769
system!("cp docusaurus/build/integration/index.html _site/integration") # redirect to /
5870
system!("cp docusaurus/build/index.html _site")

0 commit comments

Comments
 (0)