You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+93-3Lines changed: 93 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,13 +51,15 @@ The way docs builds work is the following:
51
51
-[The main CI workflow](../.github/workflows/ci3.yml) runs on pull requests and builds the dependencies and the docs, giving you a preview to check that everything is correct. You can also trigger docs CI specifically with the `ci-docs` label on a PR.
52
52
-[The nightly docs workflow](../.github/workflows/nightly-docs-release.yml) runs daily to create versioned documentation for nightly releases, automatically cutting a new version of the docs for the latest nightly tag
53
53
54
-
The `#include_aztec_version` and `#include_code` macros look for the version tag in an environment variable `COMMIT_TAG`, so you can build the docs specifying a version with the following command (e.g. for v3.0.0-devnet.5):
54
+
The preprocessing macros use environment variables to determine version numbers. For nightly builds, set `NIGHTLY_TAG` (or `COMMIT_TAG`for backwards compatibility):
55
55
56
56
```bash
57
-
COMMIT_TAG=v3.0.0-devnet.5 yarn build
57
+
NIGHTLY_TAG=v3.0.0-nightly.20251218 yarn build
58
58
```
59
59
60
-
You can add the aztec version to a docs page without the `v` prefix with `#include_version_without_prefix`, so COMMIT_TAG `v3.0.0-devnet.5` will render as `3.0.0-devnet.5`.
60
+
For other release types, use `RELEASE_TYPE` with the corresponding tag variable (see [RELEASE_TYPE Environment Variable](#release_type-environment-variable) for details).
61
+
62
+
The legacy `#include_aztec_version` macro uses `COMMIT_TAG`, while `#include_version_without_prefix` strips the `v` prefix (e.g., `v3.0.0-devnet.5` renders as `3.0.0-devnet.5`).
61
63
62
64
### How do I change the versions that show in the website
63
65
@@ -318,6 +320,94 @@ This value may be different from the `#include_aztec_version` macro, since the t
318
320
This macro will be replaced inline with the provided devnet version. This value is sourced from the `DEVNET_TAG` environment variable when running `yarn build` (e.g. `DEVNET_TAG=3.0.0-devnet.4 yarn build`). If not specified, it defaults to `3.0.0-devnet.4`.
319
321
This value may be different from both `#include_aztec_version` and `#include_testnet_version` macros, since the devnet version represents a separate development network release.
320
322
323
+
### `#include_mainnet_version`
324
+
325
+
This macro will be replaced inline with the provided mainnet version. This value is sourced from the `MAINNET_TAG` environment variable when running `yarn build` (e.g. `MAINNET_TAG=2.1.9 yarn build`). If not specified, it defaults to `2.1.9`.
326
+
This value is used for mainnet and ignition releases.
327
+
328
+
### `#release_version`
329
+
330
+
This macro is release-type-aware and automatically resolves to the appropriate version based on the `RELEASE_TYPE` environment variable:
331
+
332
+
| RELEASE_TYPE | Resolves to | Example |
333
+
|--------------|-------------|---------|
334
+
| nightly | `NIGHTLY_TAG` (falls back to `COMMIT_TAG`) | `3.0.0-nightly.20251218` |
335
+
| devnet | `DEVNET_TAG` | `3.0.0-devnet.5` |
336
+
| testnet | `TESTNET_TAG` | `2.1.9` |
337
+
| mainnet | `MAINNET_TAG` | `2.1.9` |
338
+
| ignition | `MAINNET_TAG` | `2.1.9` |
339
+
340
+
Usage: `aztecprotocol/aztec:#release_version`
341
+
342
+
### `#release_network`
343
+
344
+
This macro resolves to the network name for use with the `--network` CLI flag:
345
+
346
+
| RELEASE_TYPE | Resolves to |
347
+
|--------------|-------------|
348
+
| nightly | `local-network` |
349
+
| devnet | `devnet` |
350
+
| testnet | `testnet` |
351
+
| mainnet | `mainnet` |
352
+
| ignition | `mainnet` |
353
+
354
+
Usage: `--network #release_network`
355
+
356
+
### `RELEASE_TYPE` Environment Variable
357
+
358
+
The `RELEASE_TYPE` environment variable controls which release type the documentation is being built for. Valid values are:
359
+
360
+
- `nightly` (default) - For nightly developer docs releases
361
+
- `devnet` - For devnet releases
362
+
- `testnet` - For testnet releases
363
+
- `mainnet` - For mainnet releases
364
+
- `ignition` - For ignition releases (treated as mainnet)
The tag `aztec-local:#include_testnet_version` avoids conflicts with the official Docker Hub image and clearly indicates this is a locally-built version.
157
+
The tag `aztec-local:#release_version` avoids conflicts with the official Docker Hub image and clearly indicates this is a locally-built version.
158
158
:::
159
159
160
160
**Build arguments:**
@@ -180,21 +180,21 @@ You should see your image listed:
180
180
181
181
```
182
182
REPOSITORY TAG IMAGE ID CREATED SIZE
183
-
aztec-local #include_testnet_version abc123def456 2 minutes ago 2.5GB
183
+
aztec-local #release_version abc123def456 2 minutes ago 2.5GB
184
184
```
185
185
186
186
### Verify Version
187
187
188
188
```bash
189
-
docker run --rm aztec-local:#include_testnet_version --version
189
+
docker run --rm aztec-local:#release_version --version
190
190
```
191
191
192
-
Should display version #include_testnet_version.
192
+
Should display version #release_version.
193
193
194
194
### Test Basic Functionality
195
195
196
196
```bash
197
-
docker run --rm aztec-local:#include_testnet_version --help
197
+
docker run --rm aztec-local:#release_version --help
198
198
```
199
199
200
200
Should display CLI help information without errors.
@@ -256,7 +256,7 @@ If all checks pass, your image is ready to use.
256
256
257
257
**Solutions**:
258
258
- Ensure you used `--build-arg VERSION=X.Y.Z` when building the release image
259
-
- The version should match the git tag without the 'v' prefix (e.g., `#include_testnet_version` not `v#include_testnet_version`)
259
+
- The version should match the git tag without the 'v' prefix (e.g., `#release_version` not `v#release_version`)
260
260
261
261
## Using Your Custom Build
262
262
@@ -267,7 +267,7 @@ Use your locally-built image with any node setup method. For Docker Compose, upd
267
267
```yaml
268
268
services:
269
269
aztec-node:
270
-
image: "aztec-local:#include_testnet_version"
270
+
image: "aztec-local:#release_version"
271
271
# ... rest of configuration
272
272
```
273
273
@@ -278,7 +278,7 @@ See [Running a Full Node](./running_a_node.md) for complete setup instructions.
278
278
Run the Aztec CLI directly from your custom image:
279
279
280
280
```bash
281
-
docker run --rm aztec-local:#include_testnet_version --version
281
+
docker run --rm aztec-local:#release_version --version
Copy file name to clipboardExpand all lines: docs/docs-network/setup/running_a_node.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ These requirements are subject to change as the network throughput increases.
25
25
26
26
**Before proceeding:** Ensure you've reviewed and completed the [prerequisites](../prerequisites.md).
27
27
28
-
This setup includes only essential settings. The `--network testnet` flag applies network-specific defaults—see the [CLI reference](../reference/cli_reference.md) for all available configuration options.
28
+
This setup includes only essential settings. The `--network #release_network` flag applies network-specific defaults—see the [CLI reference](../reference/cli_reference.md) for all available configuration options.
29
29
30
30
## Setup
31
31
@@ -72,7 +72,7 @@ Create a `docker-compose.yml` file in your `aztec-node` directory:
0 commit comments