Skip to content

Commit ffc3a01

Browse files
committed
ci: autfix
1 parent 24fb592 commit ffc3a01

32 files changed

+15
-33
lines changed

.github/workflows/update-external-docs.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,25 @@ jobs:
1919
with:
2020
persist-credentials: false
2121

22+
- name: Set up Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: lts/*
26+
27+
- name: Install dependencies
28+
working-directory: astro
29+
run: npm ci
30+
2231
- name: Run scripts
2332
working-directory: .github/scripts
2433
run: |
2534
bash ./get-contributing.sh
2635
bash ./get-readmes.sh
2736
37+
- name: Fix formatting
38+
working-directory: astro
39+
run: npm run fix
40+
2841
- name: Create Pull Request
2942
uses: gr2m/create-or-update-pull-request-action@v1
3043
env:
@@ -37,7 +50,7 @@ jobs:
3750
3851
cc: @expressjs/docs-wg
3952
labels: docs
40-
branch: external-docs
53+
branch: bot/update-external-docs
4154

4255
synchronize-with-crowdin:
4356
runs-on: ubuntu-latest

astro/src/content/docs/en/4x/guide/behind-proxies.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ description: Learn how to configure Express.js applications to work correctly be
55

66
import Alert from '@components/primitives/Alert/Alert.astro';
77

8-
98
When running an Express app behind a reverse proxy, some of the Express APIs may return different values than expected. In order to adjust for this, the `trust proxy` application setting may be used to expose information provided by the reverse proxy in the Express APIs. The most common issue is express APIs that expose the client's IP address may instead show an internal IP address of the reverse proxy.
109

1110
<Alert type="info">

astro/src/content/docs/en/4x/guide/debugging.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ description: Learn how to enable and use debugging logs in Express.js applicatio
55

66
import Alert from '@components/primitives/Alert/Alert.astro';
77

8-
98
To see all the internal logs used in Express, set the `DEBUG` environment variable to
109
`express:*` when launching your app.
1110

astro/src/content/docs/en/4x/guide/error-handling.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ description: Understand how Express.js handles errors in synchronous and asynchr
55

66
import Alert from '@components/primitives/Alert/Alert.astro';
77

8-
98
_Error Handling_ refers to how Express catches and processes errors that
109
occur both synchronously and asynchronously. Express comes with a default error
1110
handler so you don't need to write your own to get started.

astro/src/content/docs/en/4x/guide/routing.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ description: Learn how to define and use routes in Express.js applications, incl
55

66
import Alert from '@components/primitives/Alert/Alert.astro';
77

8-
98
_Routing_ refers to how an application's endpoints (URIs) respond to client requests.
109
For an introduction to routing, see [Basic routing](/en/starter/basic-routing).
1110

astro/src/content/docs/en/4x/guide/using-middleware.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ description: Learn how to use middleware in Express.js applications, including a
55

66
import Alert from '@components/primitives/Alert/Alert.astro';
77

8-
98
Express is a routing and middleware web framework that has minimal functionality of its own: An Express application is essentially a series of middleware function calls.
109

1110
_Middleware_ functions are functions that have access to the [request object](/en/5x/api#req) (`req`), the [response object](/en/5x/api#res) (`res`), and the next middleware function in the application's request-response cycle. The next middleware function is commonly denoted by a variable named `next`.

astro/src/content/docs/en/4x/guide/using-template-engines.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ description: Discover how to integrate and use template engines like Pug, Handle
55

66
import Alert from '@components/primitives/Alert/Alert.astro';
77

8-
98
A _template engine_ enables you to use static template files in your application. At runtime, the template engine replaces
109
variables in a template file with actual values, and transforms the template into an HTML file sent to the client.
1110
This approach makes it easier to design an HTML page.

astro/src/content/docs/en/4x/guide/writing-middleware.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ description: Learn how to write custom middleware functions for Express.js appli
55

66
import Alert from '@components/primitives/Alert/Alert.astro';
77

8-
98
_Middleware_ functions are functions that have access to the [request object](/en/5x/api#req) (`req`), the [response object](/en/5x/api#res) (`res`), and the `next` function in the application's request-response cycle. The `next` function is a function in the Express router which, when invoked, executes the middleware succeeding the current middleware.
109

1110
Middleware functions can perform the following tasks:

astro/src/content/docs/en/4x/starter/basic-routing.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ description: Learn the fundamentals of routing in Express.js applications, inclu
55

66
import Alert from '@components/primitives/Alert/Alert.astro';
77

8-
98
_Routing_ refers to determining how an application responds to a client request to a particular endpoint, which is a URI (or path) and a specific HTTP request method (GET, POST, and so on).
109

1110
Each route can have one or more handler functions, which are executed when the route is matched.

astro/src/content/docs/en/4x/starter/generator.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ description: Learn how to use the Express application generator tool to quickly
55

66
import Alert from '@components/primitives/Alert/Alert.astro';
77

8-
98
Use the application generator tool, `express-generator`, to quickly create an application skeleton.
109

1110
You can run the application generator with the `npx` command (available in Node.js 8.2.0).

0 commit comments

Comments
 (0)