From 90a41f3148a0a44d72c05b2d2ea0fd22d2ff1e34 Mon Sep 17 00:00:00 2001 From: farhan291 Date: Sun, 5 Oct 2025 15:07:57 +0530 Subject: [PATCH 1/2] Fix: Add missing API sections to non-English 4.x documentation - Added express, req, res, and router sections to all non-English versions - Fixed broken anchor links (#req.method, #res.send, #router, etc.) - Matches structure of English version (en/4x/api.html) - Affects: de, fr, es, it, ja, pt-br, zh-cn, zh-tw Closes #2068 --- de/4x/api.md | 12 ++++++++++++ es/4x/api.md | 12 ++++++++++++ fr/4x/api.md | 12 ++++++++++++ it/4x/api.md | 12 ++++++++++++ ja/4x/api.md | 12 ++++++++++++ pt-br/4x/api.md | 12 ++++++++++++ zh-cn/4x/api.md | 12 ++++++++++++ zh-tw/4x/api.md | 12 ++++++++++++ 8 files changed, 96 insertions(+) diff --git a/de/4x/api.md b/de/4x/api.md index 4db5c42322..30ef5a9bc5 100644 --- a/de/4x/api.md +++ b/de/4x/api.md @@ -19,7 +19,19 @@ Express 4.0 requires Node.js 0.10 or higher. {% include admonitions/note.html content=node-version %} + +{% include api/en/4x/express.md %} + {% include api/en/4x/app.md %} + +{% include api/en/4x/req.md %} + + +{% include api/en/4x/res.md %} + + +{% include api/en/4x/router.md %} + diff --git a/es/4x/api.md b/es/4x/api.md index 469f55025c..f0d3eb28d2 100644 --- a/es/4x/api.md +++ b/es/4x/api.md @@ -19,7 +19,19 @@ Express 4.0 requires Node.js 0.10 or higher. {% include admonitions/note.html content=node-version %} + +{% include api/en/4x/express.md %} + {% include api/en/4x/app.md %} + +{% include api/en/4x/req.md %} + + +{% include api/en/4x/res.md %} + + +{% include api/en/4x/router.md %} + diff --git a/fr/4x/api.md b/fr/4x/api.md index e00fcb0a74..8b88ae6910 100644 --- a/fr/4x/api.md +++ b/fr/4x/api.md @@ -19,7 +19,19 @@ Express 4.0 requires Node.js 0.10 or higher. {% include admonitions/note.html content=node-version %} + +{% include api/en/4x/express.md %} + {% include api/en/4x/app.md %} + +{% include api/en/4x/req.md %} + + +{% include api/en/4x/res.md %} + + +{% include api/en/4x/router.md %} + diff --git a/it/4x/api.md b/it/4x/api.md index f316c1c89d..275bb77019 100644 --- a/it/4x/api.md +++ b/it/4x/api.md @@ -19,7 +19,19 @@ Express 4.0 requires Node.js 0.10 or higher. {% include admonitions/note.html content=node-version %} + +{% include api/en/4x/express.md %} + {% include api/en/4x/app.md %} + +{% include api/en/4x/req.md %} + + +{% include api/en/4x/res.md %} + + +{% include api/en/4x/router.md %} + diff --git a/ja/4x/api.md b/ja/4x/api.md index f9e750ddf2..7f6d5c279e 100644 --- a/ja/4x/api.md +++ b/ja/4x/api.md @@ -19,7 +19,19 @@ Express 4.0 requires Node.js 0.10 or higher. {% include admonitions/note.html content=node-version %} + +{% include api/en/4x/express.md %} + {% include api/en/4x/app.md %} + +{% include api/en/4x/req.md %} + + +{% include api/en/4x/res.md %} + + +{% include api/en/4x/router.md %} + diff --git a/pt-br/4x/api.md b/pt-br/4x/api.md index 7adeb1cdf1..201b27280b 100644 --- a/pt-br/4x/api.md +++ b/pt-br/4x/api.md @@ -19,7 +19,19 @@ Express 4.0 requires Node.js 0.10 or higher. {% include admonitions/note.html content=node-version %} + +{% include api/en/4x/express.md %} + {% include api/en/4x/app.md %} + +{% include api/en/4x/req.md %} + + +{% include api/en/4x/res.md %} + + +{% include api/en/4x/router.md %} + diff --git a/zh-cn/4x/api.md b/zh-cn/4x/api.md index 0c9d85d85b..bf2e3287ea 100644 --- a/zh-cn/4x/api.md +++ b/zh-cn/4x/api.md @@ -19,7 +19,19 @@ Express 4.0 requires Node.js 0.10 or higher. {% include admonitions/note.html content=node-version %} + +{% include api/en/4x/express.md %} + {% include api/en/4x/app.md %} + +{% include api/en/4x/req.md %} + + +{% include api/en/4x/res.md %} + + +{% include api/en/4x/router.md %} + diff --git a/zh-tw/4x/api.md b/zh-tw/4x/api.md index f9b702a977..4de91fb03b 100644 --- a/zh-tw/4x/api.md +++ b/zh-tw/4x/api.md @@ -19,7 +19,19 @@ Express 4.0 requires Node.js 0.10 or higher. {% include admonitions/note.html content=node-version %} + +{% include api/en/4x/express.md %} + {% include api/en/4x/app.md %} + +{% include api/en/4x/req.md %} + + +{% include api/en/4x/res.md %} + + +{% include api/en/4x/router.md %} + From 7dec2548d4bb20b8c8f8f969b1ee8f88d3cba42d Mon Sep 17 00:00:00 2001 From: Sebastian Beltran Date: Sat, 13 Dec 2025 22:21:30 -0500 Subject: [PATCH 2/2] docs: add section anchors for API reference in 4.x and 5.x --- en/4x/api.md | 6 +++++- en/5x/api.md | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/en/4x/api.md b/en/4x/api.md index 5c45b6f859..e2c12f01ef 100644 --- a/en/4x/api.md +++ b/en/4x/api.md @@ -18,10 +18,14 @@ redirect_from: "/4x/api.html" {% include admonitions/note.html content=node-version %} + {% include api/en/4x/express.md %} + {% include api/en/4x/app.md %} + {% include api/en/4x/req.md %} + {% include api/en/4x/res.md %} + {% include api/en/4x/router.md %} - diff --git a/en/5x/api.md b/en/5x/api.md index e406b9c925..94d0a3c2d1 100644 --- a/en/5x/api.md +++ b/en/5x/api.md @@ -18,10 +18,15 @@ redirect_from: "/5x/api.html" {% include admonitions/note.html content=node-version %} + {% include api/en/5x/express.md %} + {% include api/en/5x/app.md %} + {% include api/en/5x/req.md %} + {% include api/en/5x/res.md %} + {% include api/en/5x/router.md %}