Skip to content

Commit a7e2f46

Browse files
committed
Add Netlify config and redirects for the docs.
1 parent 4d466c8 commit a7e2f46

File tree

5 files changed

+41
-61
lines changed

5 files changed

+41
-61
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ insert_final_newline = true
77
trim_trailing_whitespace = true
88
indent_style = tab
99

10-
[*.yml]
10+
[{*.yml,*.toml}]
1111
indent_style = space
1212
indent_size = 2
1313

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
/CODE_OF_CONDUCT.md export-ignore
2323
/CONTRIBUTING.md export-ignore
2424
/docker-compose.yml export-ignore
25+
/netlify.toml export-ignore
2526
/package-lock.json export-ignore
2627
/package.json export-ignore
2728
/phpcs.xml.dist export-ignore

.github/workflows/deploy-docs.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

docs/CNAME

Lines changed: 0 additions & 1 deletion
This file was deleted.

netlify.toml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
[build]
2+
command = "npm run docs:build"
3+
publish = "docs/.vitepress/dist"
4+
5+
[[redirects]]
6+
from = "/docs/logging-variables/"
7+
to = "/wordpress-debugging/profiling-and-logging/"
8+
9+
[[redirects]]
10+
from = "/blog/2018/07/profiling-and-logging/"
11+
to = "/wordpress-debugging/profiling-and-logging/"
12+
13+
[[redirects]]
14+
from = "/blog/2019/02/clickable-stack-traces-and-function-names-in-query-monitor/"
15+
to = "/help/clickable-stack-traces-and-function-names/"
16+
17+
[[redirects]]
18+
from = "/docs/configuration-constants/"
19+
to = "/help/configuration-constants/"
20+
21+
[[redirects]]
22+
from = "/blog/2018/07/silencing-errors-from-plugins-and-themes/"
23+
to = "/help/silencing-errors/"
24+
25+
[[redirects]]
26+
from = "/docs/how-to-use/"
27+
to = "/wordpress-debugging/how-to-use/"
28+
29+
[[redirects]]
30+
from = "/blog/2019/02/new-features-in-query-monitor-3-3/"
31+
to = "/wordpress-debugging/related-hooks/"
32+
33+
[[redirects]]
34+
from = "/blog/2021/05/debugging-wordpress-rest-api-requests/"
35+
to = "/wordpress-debugging/rest-api-requests/"
36+
37+
[[redirects]]
38+
from = "/blog/2019/07/debugging-wordpress-template-part-loading/"
39+
to = "/wordpress-debugging/template-part-loading/"

0 commit comments

Comments
 (0)