From 24297bad21dce2d6824507d92a782ceca5eb189b Mon Sep 17 00:00:00 2001 From: Exelo Date: Sun, 22 Nov 2026 13:13:09 +0100 Subject: [PATCH 1/2] docs: give the readme header links an accessible name for mint a11y Write the logo and badge links as markdown links around the same images, so the rendered html is unchanged and mint a11y no longer flags them. Closes #526 --- README.md | 20 ++++++++++---------- modules/ecs/README.md | 24 ++++++++++++------------ modules/editor/README.md | 24 ++++++++++++------------ modules/graphics-2d/README.md | 24 ++++++++++++------------ modules/graphics-3d/README.md | 24 ++++++++++++------------ modules/input/README.md | 24 ++++++++++++------------ modules/music/README.md | 24 ++++++++++++------------ modules/network/README.md | 24 ++++++++++++------------ modules/scene/README.md | 24 ++++++++++++------------ modules/sound/README.md | 24 ++++++++++++------------ packages/asset/README.md | 24 ++++++++++++------------ packages/common/README.md | 24 ++++++++++++------------ packages/core/README.md | 24 ++++++++++++------------ packages/env/README.md | 24 ++++++++++++------------ utils/eslint-config/README.md | 24 ++++++++++++------------ utils/prettier-config/README.md | 24 ++++++++++++------------ 16 files changed, 190 insertions(+), 190 deletions(-) diff --git a/README.md b/README.md index 9e7785e..4648370 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,14 @@
-
-

- NanoForge -

-
-

- Tests status - Last commit - Contributors -

+
+ +[NanoForge](https://github.com/NanoForge-dev) + +
+ +[Tests status](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml) +[Last commit](https://github.com/NanoForge-dev/Engine/commits/main) +[Contributors](https://github.com/NanoForge-dev/Engine/graphs/contributors) +
## About diff --git a/modules/ecs/README.md b/modules/ecs/README.md index 24498e5..aae86ea 100644 --- a/modules/ecs/README.md +++ b/modules/ecs/README.md @@ -1,16 +1,16 @@
-
-

- NanoForge -

-
-

- npm version - npm downloads - Tests status - Last commit - Contributors -

+
+ +[NanoForge](https://github.com/NanoForge-dev) + +
+ +[npm version](https://www.npmjs.com/package/@nanoforge-dev/ecs) +[npm downloads](https://www.npmjs.com/package/@nanoforge-dev/ecs) +[Tests status](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml) +[Last commit](https://github.com/NanoForge-dev/Engine/commits/main/modules/ecs) +[Contributors](https://github.com/NanoForge-dev/Engine/graphs/contributors) +
## About diff --git a/modules/editor/README.md b/modules/editor/README.md index 33d2699..58eb24d 100644 --- a/modules/editor/README.md +++ b/modules/editor/README.md @@ -1,16 +1,16 @@
-
-

- NanoForge -

-
-

- npm version - npm downloads - Tests status - Last commit - Contributors -

+
+ +[NanoForge](https://github.com/NanoForge-dev) + +
+ +[npm version](https://www.npmjs.com/package/@nanoforge-dev/editor-lib) +[npm downloads](https://www.npmjs.com/package/@nanoforge-dev/editor-lib) +[Tests status](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml) +[Last commit](https://github.com/NanoForge-dev/Engine/commits/main/packages/editor) +[Contributors](https://github.com/NanoForge-dev/Engine/graphs/contributors) +
## About diff --git a/modules/graphics-2d/README.md b/modules/graphics-2d/README.md index 312fb09..6ea57a7 100644 --- a/modules/graphics-2d/README.md +++ b/modules/graphics-2d/README.md @@ -1,16 +1,16 @@
-
-

- NanoForge -

-
-

- npm version - npm downloads - Tests status - Last commit - Contributors -

+
+ +[NanoForge](https://github.com/NanoForge-dev) + +
+ +[npm version](https://www.npmjs.com/package/@nanoforge-dev/graphics-2d) +[npm downloads](https://www.npmjs.com/package/@nanoforge-dev/graphics-2d) +[Tests status](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml) +[Last commit](https://github.com/NanoForge-dev/Engine/commits/main/modules/graphics-2d) +[Contributors](https://github.com/NanoForge-dev/Engine/graphs/contributors) +
## About diff --git a/modules/graphics-3d/README.md b/modules/graphics-3d/README.md index 76aeb60..2d61229 100644 --- a/modules/graphics-3d/README.md +++ b/modules/graphics-3d/README.md @@ -1,16 +1,16 @@
-
-

- NanoForge -

-
-

- npm version - npm downloads - Tests status - Last commit - Contributors -

+
+ +[NanoForge](https://github.com/NanoForge-dev) + +
+ +[npm version](https://www.npmjs.com/package/@nanoforge-dev/graphics-3d) +[npm downloads](https://www.npmjs.com/package/@nanoforge-dev/graphics-3d) +[Tests status](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml) +[Last commit](https://github.com/NanoForge-dev/Engine/commits/main/modules/graphics-3d) +[Contributors](https://github.com/NanoForge-dev/Engine/graphs/contributors) +
## About diff --git a/modules/input/README.md b/modules/input/README.md index d709ed6..dc8efbe 100644 --- a/modules/input/README.md +++ b/modules/input/README.md @@ -1,16 +1,16 @@
-
-

- NanoForge -

-
-

- npm version - npm downloads - Tests status - Last commit - Contributors -

+
+ +[NanoForge](https://github.com/NanoForge-dev) + +
+ +[npm version](https://www.npmjs.com/package/@nanoforge-dev/input) +[npm downloads](https://www.npmjs.com/package/@nanoforge-dev/input) +[Tests status](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml) +[Last commit](https://github.com/NanoForge-dev/Engine/commits/main/modules/input) +[Contributors](https://github.com/NanoForge-dev/Engine/graphs/contributors) +
## About diff --git a/modules/music/README.md b/modules/music/README.md index ee45962..b0f50ee 100644 --- a/modules/music/README.md +++ b/modules/music/README.md @@ -1,16 +1,16 @@
-
-

- NanoForge -

-
-

- npm version - npm downloads - Tests status - Last commit - Contributors -

+
+ +[NanoForge](https://github.com/NanoForge-dev) + +
+ +[npm version](https://www.npmjs.com/package/@nanoforge-dev/music) +[npm downloads](https://www.npmjs.com/package/@nanoforge-dev/music) +[Tests status](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml) +[Last commit](https://github.com/NanoForge-dev/Engine/commits/main/modules/music) +[Contributors](https://github.com/NanoForge-dev/Engine/graphs/contributors) +
## About diff --git a/modules/network/README.md b/modules/network/README.md index 012bc99..d794436 100644 --- a/modules/network/README.md +++ b/modules/network/README.md @@ -1,16 +1,16 @@
-
-

- NanoForge -

-
-

- npm version - npm downloads - Tests status - Last commit - Contributors -

+
+ +[NanoForge](https://github.com/NanoForge-dev) + +
+ +[npm version](https://www.npmjs.com/package/@nanoforge-dev/network) +[npm downloads](https://www.npmjs.com/package/@nanoforge-dev/network) +[Tests status](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml) +[Last commit](https://github.com/NanoForge-dev/Engine/commits/main/modules/network) +[Contributors](https://github.com/NanoForge-dev/Engine/graphs/contributors) +
## About diff --git a/modules/scene/README.md b/modules/scene/README.md index bcb90ab..9820616 100644 --- a/modules/scene/README.md +++ b/modules/scene/README.md @@ -1,16 +1,16 @@
-
-

- NanoForge -

-
-

- npm version - npm downloads - Tests status - Last commit - Contributors -

+
+ +[NanoForge](https://github.com/NanoForge-dev) + +
+ +[npm version](https://www.npmjs.com/package/@nanoforge-dev/scene) +[npm downloads](https://www.npmjs.com/package/@nanoforge-dev/scene) +[Tests status](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml) +[Last commit](https://github.com/NanoForge-dev/Engine/commits/main/modules/scene) +[Contributors](https://github.com/NanoForge-dev/Engine/graphs/contributors) +
## About diff --git a/modules/sound/README.md b/modules/sound/README.md index 68b292d..8b67ea6 100644 --- a/modules/sound/README.md +++ b/modules/sound/README.md @@ -1,16 +1,16 @@
-
-

- NanoForge -

-
-

- npm version - npm downloads - Tests status - Last commit - Contributors -

+
+ +[NanoForge](https://github.com/NanoForge-dev) + +
+ +[npm version](https://www.npmjs.com/package/@nanoforge-dev/sound) +[npm downloads](https://www.npmjs.com/package/@nanoforge-dev/sound) +[Tests status](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml) +[Last commit](https://github.com/NanoForge-dev/Engine/commits/main/modules/sound) +[Contributors](https://github.com/NanoForge-dev/Engine/graphs/contributors) +
## About diff --git a/packages/asset/README.md b/packages/asset/README.md index 64dea97..2dec270 100644 --- a/packages/asset/README.md +++ b/packages/asset/README.md @@ -1,16 +1,16 @@
-
-

- NanoForge -

-
-

- npm version - npm downloads - Tests status - Last commit - Contributors -

+
+ +[NanoForge](https://github.com/NanoForge-dev) + +
+ +[npm version](https://www.npmjs.com/package/@nanoforge-dev/asset-manager) +[npm downloads](https://www.npmjs.com/package/@nanoforge-dev/asset-manager) +[Tests status](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml) +[Last commit](https://github.com/NanoForge-dev/Engine/commits/main/packages/asset-manager) +[Contributors](https://github.com/NanoForge-dev/Engine/graphs/contributors) +
## About diff --git a/packages/common/README.md b/packages/common/README.md index d984da6..68196a9 100644 --- a/packages/common/README.md +++ b/packages/common/README.md @@ -1,16 +1,16 @@
-
-

- NanoForge -

-
-

- npm version - npm downloads - Tests status - Last commit - Contributors -

+
+ +[NanoForge](https://github.com/NanoForge-dev) + +
+ +[npm version](https://www.npmjs.com/package/@nanoforge-dev/common) +[npm downloads](https://www.npmjs.com/package/@nanoforge-dev/common) +[Tests status](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml) +[Last commit](https://github.com/NanoForge-dev/Engine/commits/main/packages/common) +[Contributors](https://github.com/NanoForge-dev/Engine/graphs/contributors) +
## About diff --git a/packages/core/README.md b/packages/core/README.md index 3879aee..3d7ae0a 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -1,16 +1,16 @@
-
-

- NanoForge -

-
-

- npm version - npm downloads - Tests status - Last commit - Contributors -

+
+ +[NanoForge](https://github.com/NanoForge-dev) + +
+ +[npm version](https://www.npmjs.com/package/@nanoforge-dev/core) +[npm downloads](https://www.npmjs.com/package/@nanoforge-dev/core) +[Tests status](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml) +[Last commit](https://github.com/NanoForge-dev/Engine/commits/main/packages/core) +[Contributors](https://github.com/NanoForge-dev/Engine/graphs/contributors) +
## About diff --git a/packages/env/README.md b/packages/env/README.md index ddf0f9b..e066f5f 100644 --- a/packages/env/README.md +++ b/packages/env/README.md @@ -1,16 +1,16 @@
-
-

- NanoForge -

-
-

- npm version - npm downloads - Tests status - Last commit - Contributors -

+
+ +[NanoForge](https://github.com/NanoForge-dev) + +
+ +[npm version](https://www.npmjs.com/package/@nanoforge-dev/env) +[npm downloads](https://www.npmjs.com/package/@nanoforge-dev/env) +[Tests status](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml) +[Last commit](https://github.com/NanoForge-dev/Engine/commits/main/packages/env) +[Contributors](https://github.com/NanoForge-dev/Engine/graphs/contributors) +
## About diff --git a/utils/eslint-config/README.md b/utils/eslint-config/README.md index 187bb97..110596d 100644 --- a/utils/eslint-config/README.md +++ b/utils/eslint-config/README.md @@ -1,16 +1,16 @@
-
-

- NanoForge -

-
-

- npm version - npm downloads - Tests status - Last commit - Contributors -

+
+ +[NanoForge](https://github.com/NanoForge-dev) + +
+ +[npm version](https://www.npmjs.com/package/@nanoforge-dev/utils-eslint-config) +[npm downloads](https://www.npmjs.com/package/@nanoforge-dev/utils-eslint-config) +[Tests status](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml) +[Last commit](https://github.com/NanoForge-dev/Engine/commits/main/utils/eslint-config) +[Contributors](https://github.com/NanoForge-dev/Engine/graphs/contributors) +
## About diff --git a/utils/prettier-config/README.md b/utils/prettier-config/README.md index 59e6bf3..7c4d6fe 100644 --- a/utils/prettier-config/README.md +++ b/utils/prettier-config/README.md @@ -1,16 +1,16 @@
-
-

- NanoForge -

-
-

- npm version - npm downloads - Tests status - Last commit - Contributors -

+
+ +[NanoForge](https://github.com/NanoForge-dev) + +
+ +[npm version](https://www.npmjs.com/package/@nanoforge-dev/utils-prettier-config) +[npm downloads](https://www.npmjs.com/package/@nanoforge-dev/utils-prettier-config) +[Tests status](https://github.com/NanoForge-dev/Engine/actions/workflows/tests.yml) +[Last commit](https://github.com/NanoForge-dev/Engine/commits/main/utils/prettier-config) +[Contributors](https://github.com/NanoForge-dev/Engine/graphs/contributors) +
## About From fb397c2e2db076bf1d425213536b8d34370abf84 Mon Sep 17 00:00:00 2001 From: Exelo Date: Sun, 22 Nov 2026 13:13:52 +0100 Subject: [PATCH 2/2] docs(network): fix the server api anchors and use the nf new ports Point the NetworkPayload and NetworkData links at their shared section, and use TCP 4444 and UDP 4445 in the env examples, as the nf new template does. Closes #527 --- docs/docs/network/index.mdx | 8 ++++---- docs/docs/network/network-peer.mdx | 4 ++-- docs/docs/network/network-server-api.mdx | 6 +++--- modules/network/README.md | 8 ++++---- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/docs/network/index.mdx b/docs/docs/network/index.mdx index 6d29281..702db86 100644 --- a/docs/docs/network/index.mdx +++ b/docs/docs/network/index.mdx @@ -71,10 +71,10 @@ Both libraries read their settings from the environment, validated at `app.init` ```dotenv .env NANOFORGE_CLIENT_SERVER_ADDRESS=127.0.0.1 -NANOFORGE_CLIENT_SERVER_TCP_PORT=4445 -NANOFORGE_CLIENT_SERVER_UDP_PORT=4444 -NANOFORGE_SERVER_LISTENING_TCP_PORT=4445 -NANOFORGE_SERVER_LISTENING_UDP_PORT=4444 +NANOFORGE_CLIENT_SERVER_TCP_PORT=4444 +NANOFORGE_CLIENT_SERVER_UDP_PORT=4445 +NANOFORGE_SERVER_LISTENING_TCP_PORT=4444 +NANOFORGE_SERVER_LISTENING_UDP_PORT=4445 ``` Client variables: diff --git a/docs/docs/network/network-peer.mdx b/docs/docs/network/network-peer.mdx index 9c2c77a..aad80f3 100644 --- a/docs/docs/network/network-peer.mdx +++ b/docs/docs/network/network-peer.mdx @@ -33,8 +33,8 @@ The environment is the same as with a dedicated server. The `nf` CLI removes the ```dotenv NANOFORGE_CLIENT_SERVER_ADDRESS=127.0.0.1 -NANOFORGE_CLIENT_SERVER_TCP_PORT=4445 -NANOFORGE_SERVER_LISTENING_TCP_PORT=4445 +NANOFORGE_CLIENT_SERVER_TCP_PORT=4444 +NANOFORGE_SERVER_LISTENING_TCP_PORT=4444 # STUN for every player; add a TURN server for players behind strict NATs NANOFORGE_ICE_SERVERS=stun:stun.cloudflare.com:3478 diff --git a/docs/docs/network/network-server-api.mdx b/docs/docs/network/network-server-api.mdx index 030d17f..9a42a7d 100644 --- a/docs/docs/network/network-server-api.mdx +++ b/docs/docs/network/network-server-api.mdx @@ -28,7 +28,7 @@ The [server guide](./network-server) has examples. Send a payload to every client reachable on the channel. -Parameter `data`: [`NetworkPayload`](#networkpayload), bytes, a string or any +Parameter `data`: [`NetworkPayload`](#networkpayload-and-networkdata), bytes, a string or any JSON value. Option `channel`: `Channel` to send on. `Channel.ReliableOrdered` by default. @@ -46,7 +46,7 @@ the channel. Throws a `TypeError` when `data` cannot be encoded as JSON Parameter `clientId`: `ClientId` client identifier. -Parameter `data`: [`NetworkPayload`](#networkpayload), bytes, a string or any +Parameter `data`: [`NetworkPayload`](#networkpayload-and-networkdata), bytes, a string or any JSON value. Option `channel`: `Channel` to send on. `Channel.ReliableOrdered` by default. @@ -62,7 +62,7 @@ show up here. Option `channel`: `Channel` to read from. Without it, the packets of every configured channel are merged per client, reliable channels first. -Returns: `Map`, see [NetworkData](#networkdata) +Returns: `Map`, see [NetworkData](#networkpayload-and-networkdata) ### getConnectedClients(options?) diff --git a/modules/network/README.md b/modules/network/README.md index d794436..63dc839 100644 --- a/modules/network/README.md +++ b/modules/network/README.md @@ -37,13 +37,13 @@ Configuration is read from the environment via `@nanoforge-dev/env`. Put the rel ```dotenv # Client SERVER_ADDRESS=127.0.0.1 -SERVER_TCP_PORT=4445 -SERVER_UDP_PORT=4444 +SERVER_TCP_PORT=4444 +SERVER_UDP_PORT=4445 # Server LISTENING_INTERFACE=0.0.0.0 -LISTENING_TCP_PORT=4445 -LISTENING_UDP_PORT=4444 +LISTENING_TCP_PORT=4444 +LISTENING_UDP_PORT=4445 ``` Either the TCP port or the UDP port (or both) must be set on each side. The TCP